maix::nn::F
maix.nn.F module
This is
maix::nn::F
module of MaixCDK.
All of these elements are in namespacemaix::nn::F
.For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!
Module
No module
Enum
Variable
Function
softmax
Softmax, only support 1D tensor, multi-dimension tensor will be treated as 1D tensor
item | description |
---|---|
param | tensor: input tensor replace: change input tensor data directly, if not, will create a new tensor |
throw | If arg error, will raise err.Exception error |
return | output tensor, if arg replace is true, return the arg tensor's address. If not replace, return a new object, so In C++, you should delete it manually in this case! |
C++ defination code:
tensor::Tensor *softmax(tensor::Tensor *tensor, bool replace)