Specifies the dtype and shape of every input to a module.
Arguments
InputSpec(shape, dtype)
- shape
- Shape tuple, expected shape of the input.
- dtype
- Expected torch.dtype of the input.
Specifies the dtype and shape of every input to a module.
InputSpec(shape, dtype)