aitune.torch.module.exact_sample_metadata
aitune.torch.module.exact_sample_metadata
Exact sample metadata for matching tensor shapes.
Module Contents
Classes
API
Bases: SampleMetadata
Contrary to SampleMetadata, ExactSampleMetadata requires exact tensor shapes to match.
This is useful for recording inputs and bucketing data by tensor shapes. This class has only one factory function: from_inputs and defines equality and hash based on locator and tensor shapes.
Equality operator.
Compute hash of sample metadata.
staticmethod
Create ExactSampleMetadata from inputs keyed by forward parameter name.