LogSoftmax
torch.nn.modules.activation.LogSoftmax
final class LogSoftmax[D <: DType](dim: Int)(implicit evidence$1: Default[D]) extends TensorModule[D]
Applies the log(Softmax(x)) function to an n-dimensional input Tensor. The LogSoftmax formulation can be simplified as:
TODO LaTeX
Example:
import torch.*
val m = nn.LogSoftmax(dim = 1)
val input = torch.randn(Seq(2, 3))
val output = m(input)
Attributes
- Source
- LogSoftmax.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Source
- LogSoftmax.scala
Attributes
- Definition Classes
- Source
- LogSoftmax.scala
Inherited methods
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Adds a buffer to the module.
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
- Inherited from:
- TensorModule
- Source
- Module.scala
Concrete fields
Attributes
- Source
- LogSoftmax.scala
In this article