FloatFunctional
- class torch.ao.nn.quantized.FloatFunctional
State collector class for float operations.
The instance of this class can be used instead of the
torch.prefix for some operations. See example usage below.
State collector class for float operations.
The instance of this class can be used instead of the torch. prefix for
some operations. See example usage below.
addExamples:
>>> f_add = FloatFunctional()
>>> a = torch.tensor(3.0)
>>> b = torch.tensor(4.0)
>>> f_add.add(a, b) # Equivalent to ``torch.add(a, b)``
add
cat
mul
add_relu
add_scalar
mul_scalar