sc2bench.transforms.misc
Functions
|
Puts each data field into a tensor or PIL Image with outer dimension batch size. |
Registers a miscellaneous transform class. |
Classes
|
A transform module that adaptively determines the size of padded sample. |
A transform module that replaces target with an empty list. |
|
|
A customized ToTensor module that can be applied to sample and target selectively. |
|
A module to dequantize quantized tensor in FP32. |
|
A module to quantize tensor with its half() function if num_bits=16 (FP16) or Jacob et al.'s method if num_bits=8 (INT8 + one FP32 scale parameter). |