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 ...