TensorMetadata
- class torch.fx.passes.shape_prop.TensorMetadata(shape, dtype, requires_grad, stride, memory_format, is_quantized, qparams)
A structure containing pertinent information about a tensor within a PyTorch program.
A structure containing pertinent information about a tensor within a PyTorch program.
Backwards-compatibility for this API is guaranteed.
Return number of occurrences of value.
Alias for field number 1
Return first index of value.
Raises ValueError if the value is not present.
Alias for field number 5
Alias for field number 4
Alias for field number 2
Alias for field number 0