pytorch/test/cpp
ydwu4 c77352b5cc Add torch._library.register_fake_class to fakify torchBind class (#122622)
This PR only adds abstract class registration logic without touching existing tests so they still trace with real script object. The added tests are only for registration APIs and test error messages.

Our design is that the abstract implementation should be in Python. This is much better in terms of usability. But this also has implications for custom op that takes script object as input, which is detailed later in this stack.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/122622
Approved by: https://github.com/zou3519
ghstack dependencies: #122619, #122620, #122621
2024-04-02 23:52:17 +00:00
..
aot_inductor [AOTInductor] Add tensor_constantX to pass constant buffer update's check (#122562) (#122690) 2024-03-26 23:25:15 +00:00
api include scheduler_on_plateau in optim.h (#121722) 2024-03-27 19:45:25 +00:00
c10d [C10D] Fix pointToPoint op Flight Recording (#120270) 2024-02-29 01:03:31 +00:00
common
dist_autograd Remove unneeded linking in CMake targets (#109192) 2023-09-15 19:43:25 +00:00
jit Add torch._library.register_fake_class to fakify torchBind class (#122622) 2024-04-02 23:52:17 +00:00
lazy test_lazy: skip HashTest.Scalar (#112747) 2023-11-16 01:22:58 +00:00
lite_interpreter_runtime [2/N] Cleanup header inclusions in torch_cpu by iwyu (#109964) 2023-11-19 20:56:32 +00:00
monitor
profiler [c10] Move profiler clock to libc10 for timestamps (#111972) 2023-10-27 16:18:40 +00:00
rpc Fix typo under test directory (#111304) 2023-10-16 23:06:06 +00:00
tensorexpr [ROCm] remove HCC references (#111975) 2023-10-26 02:39:10 +00:00
__init__.py