A value of a tensor valued function, a vertex in the computational graph.
A Variable may be constant, i.e. depends on no other Variables. Constant variables may or may not need their partial derivatives computed.
- Companion:
- object
Value members
Abstract methods
The parent operation of this value in the computational graph. Empty for constants.
The parent operation of this value in the computational graph. Empty for constants.
Concrete methods
Runs the backpropagation algorithm starting from this value
Runs the backpropagation algorithm starting from this value
Only meaningful if this is scalar i.e. the number of elements in the value tensor is 1.
Returns an other Variable wrapping the same value tensor, without any
parent and with needsGrad=false
.
Returns an other Variable wrapping the same value tensor, without any
parent and with needsGrad=false
.
Returns true if lamp.autograd.Variable.partialDerivative is defined.
Returns true if lamp.autograd.Variable.partialDerivative is defined.
Returns a new variable with the first two dimensions transposed.
Returns a new variable with the first two dimensions transposed.
Returns a new variable with the respective dimensions transposed.
Returns a new variable with the respective dimensions transposed.
Returns an other Variable wrapping the same value tensor, without any
parent and with needsGrad=true
.
Returns an other Variable wrapping the same value tensor, without any
parent and with needsGrad=true
.