Class LogSigmoidImpl#
Defined inFile activation.h
Inheritance Relationships#
Base Type#
publictorch::nn::Cloneable<LogSigmoidImpl>(Template Class Cloneable)
Class Documentation#
- classLogSigmoidImpl:publictorch::nn::Cloneable<LogSigmoidImpl>#
Applies theLogSigmoid function element-wise.
Seehttps://pytorch.org/docs/main/nn.html#torch.nn.LogSigmoid to learn about the exact behavior of this module.
Public Functions
- Tensorforward(constTensor&input)#
- virtualvoidreset()override#
reset()must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules.
- virtualvoidpretty_print(std::ostream&stream)constoverride#
Pretty prints the
LogSigmoidmodule into the givenstream.
- Tensorforward(constTensor&input)#