Internal helper for _make_class_factory.
(mixin_class, fmt, attr_name, base_class)
| 2421 | |
| 2422 | |
| 2423 | def _picklable_class_constructor(mixin_class, fmt, attr_name, base_class): |
| 2424 | """Internal helper for _make_class_factory.""" |
| 2425 | factory = _make_class_factory(mixin_class, fmt, attr_name) |
| 2426 | cls = factory(base_class) |
| 2427 | return cls.__new__(cls) |
| 2428 | |
| 2429 | |
| 2430 | def _is_torch_array(x): |
nothing calls this directly
no test coverage detected
searching dependent graphs…