pytorch/torch/_library
Yidi Wu 5f63789dd2 [torchbind] fix error message when attr is a real tensor. (#151944)
Summary: Previously, when attr is defined, "if attr" will try to evaluate the data of attr, which is not intendended and we get a ugly error stack if the attr is not evaluable (like a fake tensor) before the callable(attr) check.

Test Plan: Existing tests.

Reviewed By: yushangdi, henryoier

Differential Revision: D73460905

Pull Request resolved: https://github.com/pytorch/pytorch/pull/151944
Approved by: https://github.com/yushangdi
2025-04-23 17:32:11 +00:00
..
__init__.py fix typo in doc and import for torch._library.triton (#144882) 2025-01-17 17:32:12 +00:00
autograd.py [custom_ops][perf] Move expensive pytree traversals of tensors to C++ (#148555) 2025-04-01 18:45:48 +00:00
custom_ops.py Revert "Inductor respects exact strides on custom ops by default (#150511)" 2025-04-09 16:49:48 +00:00
fake_class_registry.py [torchbind] fix error message when attr is a real tensor. (#151944) 2025-04-23 17:32:11 +00:00
fake_impl.py [custom ops] Override fake registration (#150806) 2025-04-12 02:43:47 +00:00
fake_profile.py Rename register_fake_profile to unsafe_generate_fake_kernels (#151797) 2025-04-21 23:08:15 +00:00
infer_schema.py [BE][Ez]: ISC001 Auto concatenate implicit one line strings (#146408) 2025-02-04 19:07:04 +00:00
simple_registry.py
triton.py Typo Errors fixed in multiple files (#148262) 2025-03-09 12:21:40 +00:00
utils.py [custom_ops][perf] Move expensive pytree traversals of tensors to C++ (#148555) 2025-04-01 18:45:48 +00:00