Open
Description
Is it possible to perform type checking for tensors with grad enabled? I myself am not sure of all the cases necessary to test against to confirm this as I don't fully understand how runtime type checking operates.
class _AutoGradTensorDetail(TensorDetail):
def check(self, tensor: torch.Tensor) -> bool:
return tensor.requires_grad()
Metadata
Metadata
Assignees
Labels
No labels