Packages

c

lamp.autograd

ConstantWithoutGrad

case class ConstantWithoutGrad(value: STen) extends Constant with Product with Serializable

A variable whose parent and partial derivatives are empty

Linear Supertypes
Serializable, Product, Equals, Constant, Variable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstantWithoutGrad
  2. Serializable
  3. Product
  4. Equals
  5. Constant
  6. Variable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ConstantWithoutGrad(value: STen)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *[S](other: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  4. def *[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  5. def +[S](other: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  6. def +[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  7. def -[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  8. def /[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def argmax[S](dim: Long, keepDim: Boolean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def assign[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  13. def atan[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  14. def backprop(): Unit

    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.

    Definition Classes
    Variable
  15. def binaryCrossEntropyWithLogitsLoss[S](target: STen, posWeights: Option[STen] = None, reduction: Reduction = Mean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  16. def bmm[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  17. def cast[S](precision: FloatingPointPrecision)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  18. def cat[S](other: Variable, dim: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  19. def choleskyLower[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  20. def choleskySolve[S](factor: Variable, upper: Boolean = false)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  21. def clamp[S](min: Variable, max: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  23. def colSum[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  24. def cos[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  25. def cross[S](other: Variable, dim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  26. def crossEntropy[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  27. def debug[S](fun: (STen, Boolean, Boolean) => Unit)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  28. def detached: Constant

    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.

    Definition Classes
    Variable
  29. def diag[S](diagonal: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  30. def dropout[S](prob: Double, train: Boolean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def euclideanDistance[S](b: Variable, dim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  33. def exp[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  34. def expand[S](shape: List[Long])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  35. def expandAs[S](other: STen)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  36. def flatten[S](startDim: Int, endDim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  37. def flatten[S](startDim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  38. def flatten[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  39. def flattenLastDimensions[S](dims: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  40. def gelu[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  42. def graphMemoryAllocationReport: GraphMemoryAllocationReport
    Definition Classes
    Variable
  43. def hardSwish[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  44. val id: UUID

    Returns unique, stable and random UUID.

    Returns unique, stable and random UUID.

    Definition Classes
    Variable
  45. def indexAdd[S](index: Variable, dim: Int, maxIndex: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  46. def indexAddFromSource[S](index: Variable, dim: Int, source: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  47. def indexFill[S](index: Variable, dim: Int, fillValue: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  48. def indexSelect[S](dim: Long, index: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  49. def inv[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  50. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  51. def l1Loss[S](target: STen, reduction: Reduction = Mean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  52. def leakyRelu[S](negativeSlope: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  53. def log[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  54. def log1p[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  55. def logSoftMax[S](dim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  56. def logdet[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  57. def makeBooleanMask[S](q: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  58. def maskFill[S](mask: Variable, fill: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  59. def maskSelect[S](mask: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  60. def maximum[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  61. def mean[S](dim: List[Int], keepDim: Boolean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  62. def mean[S](dim: List[Int])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  63. def minimum[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  64. def mm[S](other: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  65. def mseLoss[S](target: STen, reduction: Reduction = Mean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. def needsGrad: Boolean

    Returns true if lamp.autograd.Variable.partialDerivative is defined.

    Returns true if lamp.autograd.Variable.partialDerivative is defined.

    Definition Classes
    Variable
  68. def nllLoss[S](target: STen, weights: STen, reduction: Reduction = Mean, ignore: Long = -100L)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  69. def norm2[S](dim: List[Int], keepDim: Boolean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  70. def norm2[S](dim: List[Int])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  71. def normalize[S](dim: List[Int], eps: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  72. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  73. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  74. def oneHot[S](numClasses: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  75. final def op: None

    The parent operation of this value in the computational graph.

    The parent operation of this value in the computational graph. Empty for constants.

    Definition Classes
    ConstantVariable
  76. def options[S](implicit arg0: Sc[S]): STenOptions

    Returns the tensor options of its value.

    Returns the tensor options of its value.

    Definition Classes
    Variable
  77. val partialDerivative: None.type

    The partial derivative, or a placeholder tensor for the partial derivative.

    The partial derivative, or a placeholder tensor for the partial derivative.

    Returns empty iff this Variable needs no gradient computation. Otherwise a placeholder tensor is allocated upfront when the Variable is allocated.

    Definition Classes
    ConstantWithoutGradVariable
  78. def pinv[S](rcond: Double = 1e-5)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  79. def pow[S](exponent: Variable)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  80. def pow[S](const: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  81. def productElementNames: Iterator[String]
    Definition Classes
    Product
  82. def relu[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  83. def repeatInterleave[S](repeats: Variable, dim: Int)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  84. def reshape[S](shape: List[Long])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  85. def rowSum[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  86. def scatterAdd[S](index: Variable, dim: Int, maxIndex: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  87. def select[S](dim: Long, index: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  88. def shape: List[Long]

    Returns the shape of its value.

    Returns the shape of its value.

    Definition Classes
    Variable
  89. def sigmoid[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  90. def sin[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  91. val sizes: List[Long]

    Returns the shape of its value.

    Returns the shape of its value.

    Definition Classes
    Variable
  92. def slice[S](dim: Long, start: Long, end: Long, step: Long)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  93. def softplus[S](beta: Double, threshold: Double)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  94. def squaredFrobenius[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  95. def sum[S](dim: List[Int], keepDim: Boolean)(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  96. def sum[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  97. def swish1[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  98. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  99. def t[S](implicit arg0: Sc[S]): Variable

    Returns a new variable with the first two dimensions transposed.

    Returns a new variable with the first two dimensions transposed.

    Definition Classes
    Variable
  100. def tan[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  101. def tanh[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  102. def toDense[S](implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  103. def toDoubleArray: Array[Double]
    Definition Classes
    Variable
  104. def toLongArray: Array[Long]
    Definition Classes
    Variable
  105. def toString(): String
    Definition Classes
    Variable → AnyRef → Any
  106. def transpose[S](dim1: Int, dim2: Int)(implicit arg0: Sc[S]): Variable

    Returns a new variable with the respective dimensions transposed.

    Returns a new variable with the respective dimensions transposed.

    Definition Classes
    Variable
  107. val value: STen

    The actual tensor value of this Variable.

    The actual tensor value of this Variable.

    Definition Classes
    ConstantWithoutGradVariable
  108. def variance[S](dim: List[Int])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  109. def view[S](shape: List[Long])(implicit arg0: Sc[S]): Variable
    Definition Classes
    Variable
  110. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  111. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  112. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  113. lazy val wengert: Seq[Variable]

    Returns the Wengert list

    Returns the Wengert list

    Definition Classes
    Variable
  114. def withGrad[S](implicit arg0: Sc[S]): ConstantWithGrad

    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.

    Definition Classes
    Variable
  115. def zeroGrad(): Unit

    In place zeros out the partial derivative

    In place zeros out the partial derivative

    Definition Classes
    Variable
  116. def zipBackward(fn: (STen, STen) => Unit): (Variable, (STen, STen) => Unit)

    Returns a pair of this instance and the supplied function

    Returns a pair of this instance and the supplied function

    Definition Classes
    Variable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Constant

Inherited from Variable

Inherited from AnyRef

Inherited from Any

Ungrouped