brevitas
brevitas copied to clipboard
softmax
Hi,
Is softmax supported? how to use it in my python code? Is there any document about sofmax in Brevitas?
AKAIK there is no quantized softmax layer but you can use it from torch it's just a mathematical layer.
@MohamedA95 ,
Thank you!
To use torch.nn.Softmax()
in code is not difficult, my question is:
the output of the upper layer(qnn.QuantLinear
) is quantized data, could it be passed to torch.nn.Softmax()
directly?
Hi @ardeal yes it could be passed directly.