When creating a TypeAdapter for a parent class with extra="allow", then calling type_adapter.dump_python or type_adapter.dump_json on a subclass, the subclass's fields are ignored despite extra="allow ...
You call torch.add with your Tensor subclass object (whose underlying TensorImpl has the Python dispatch key set) This dispatches to __torch_function__, where you can immediately override the behavior ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する