-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working torch.jit.script() and torch.compile() support (#44)
* test and quick fix for zero batch * trigger uniform 1d in test * satisfy linter Signed-off-by: Mario Geiger <[email protected]> * from typing import * determine math_dtype earlier * warning with pip commands * remove unused argument * changelog * list of inputs * add Fixed subtite * changelog * add test for torch.jit.script * fix * remove keyword-only and import in the forward * low lvl script tests * TensorProduct working with script() Signed-off-by: Boris Fomitchev <[email protected]> * add 4 operands tests * Unit tests run Signed-off-by: Boris Fomitchev <[email protected]> * Restoring debug logging Signed-off-by: Boris Fomitchev <[email protected]> * Parameterized script test Signed-off-by: Boris Fomitchev <[email protected]> * Fixed transpose for script(), script_test successful Signed-off-by: Boris Fomitchev <[email protected]> * Fixed input mutation Signed-off-by: Boris Fomitchev <[email protected]> * Fixed tests Signed-off-by: Boris Fomitchev <[email protected]> * format with black * format with black * fix tests * fix missing parenthesis * fix tests: increase torch._dynamo.config.cache_size_limit * fix docstring tests * replace == by is * clean use_fallback conditions * fix * fix * Export test added, scripting fallback attempt Signed-off-by: Boris Fomitchev <[email protected]> * enable tests on cpu * fix tests * fix ruff * fix * fix docstring tests * add -x to tests * Working around torch_tensorrt bugs Signed-off-by: Boris Fomitchev <[email protected]> * Fixing utils.py import Signed-off-by: Boris Fomitchev <[email protected]> * Adding utils.py Signed-off-by: Boris Fomitchev <[email protected]> * Style Signed-off-by: Boris Fomitchev <[email protected]> * import nvidia_sphinx_theme * spherical harmonics module * fix tests * test SymmetricContraction export * Fixed symmetric_contraction test Signed-off-by: Boris Fomitchev <[email protected]> * add device info * fix sh * fix * skip * torch._dynamo.config.cache_size_limit = 100 * fix test * Script compatibility for fallback Signed-off-by: Boris Fomitchev <[email protected]> * style Signed-off-by: Boris Fomitchev <[email protected]> * Trying to make trace() work Signed-off-by: Boris Fomitchev <[email protected]> * Restoring integer cast Signed-off-by: Boris Fomitchev <[email protected]> * Skipping failing tests Signed-off-by: Boris Fomitchev <[email protected]> * disabling cast for fallback Signed-off-by: Boris Fomitchev <[email protected]> * optimize_fallback=use_fallback * Fixing the reinterpret cast Signed-off-by: Boris Fomitchev <[email protected]> * Fixing clone() Signed-off-by: Boris Fomitchev <[email protected]> * delete broadcast_shapes * delete _reshape * rename * Using alternative disable type change fixture Signed-off-by: Boris Fomitchev <[email protected]> * Restored assert Signed-off-by: Boris Fomitchev <[email protected]> * try fix test * simplify symmetric_tensor_product_test to make test run faster * try to fix some tests * Fixing disable_type_conv Signed-off-by: Boris Fomitchev <[email protected]> * try fix * fix strange bug * Script fixes for uniform Signed-off-by: Boris Fomitchev <[email protected]> * add test_script_tensor_product * Moving all export tests, disabling torch_trt for now Signed-off-by: Boris Fomitchev <[email protected]> * more strict input shapes * add back @pytest.mark.parametrize("mode", export_modes) * fix * Fixing noconv bug Signed-off-by: Boris Fomitchev <[email protected]> * Really fixing noconv Signed-off-by: Boris Fomitchev <[email protected]> * fix linear * fix rotations * fix tpfc * fix tpcw * less test * remove unused mode in tensor_product_test * typo * disable export * Reduced export test modes list Signed-off-by: Boris Fomitchev <[email protected]> * Added unit tests to operations and the rest of the primitives Signed-off-by: Boris Fomitchev <[email protected]> * Fixing script() for non-internal weights Signed-off-by: Boris Fomitchev <[email protected]> * skip GPU tests when running on CPU * Fix: if use_fallback is None and cuda is not available => use fallback --------- Signed-off-by: Mario Geiger <[email protected]> Signed-off-by: Boris Fomitchev <[email protected]> Co-authored-by: Mario Geiger <[email protected]> Co-authored-by: Mario Geiger <[email protected]>
- Loading branch information
1 parent
163f5f1
commit dc2b096
Showing
38 changed files
with
994 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.