-
-
Notifications
You must be signed in to change notification settings - Fork 39
TensorType detail: grad_enabled #21
Copy link
Copy link
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()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels