Packages

final case class GradientDef(functionName: String = "", gradientFunc: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[GradientDef] with Product with Serializable

GradientDef defines the gradient function of a function defined in a function library.

A gradient function g (specified by gradient_func) for a function f (specified by function_name) must follow the following:

The function 'f' must be a numerical function which takes N inputs and produces M outputs. Its gradient function 'g', which is a function taking N + M inputs and produces N outputs.

I.e. if we have (y1, y2, ..., y_M) = f(x1, x2, ..., x_N), then, g is (dL/dx1, dL/dx2, ..., dL/dx_N) = g(x1, x2, ..., x_N, dL/dy1, dL/dy2, ..., dL/dy_M), where L is a scalar-value function of (x1, x2, ..., xN) (e.g., the loss function). dL/dx_i is the partial derivative of L with respect to x_i.

functionName

The function name.

gradientFunc

The gradient function's name.

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[GradientDef], GeneratedMessage, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GradientDef
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GradientDef(functionName: String = "", gradientFunc: String = "", unknownFields: UnknownFieldSet = ...)

    functionName

    The function name.

    gradientFunc

    The gradient function's name.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def companion: GradientDef.type
    Definition Classes
    GradientDef → GeneratedMessage
  7. def discardUnknownFields: GradientDef
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. val functionName: String
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    GradientDef → GeneratedMessage
  12. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    GradientDef → GeneratedMessage
  13. val gradientFunc: String
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def serializedSize: Int
    Definition Classes
    GradientDef → GeneratedMessage
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  21. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  22. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  23. def toProtoString: String
    Definition Classes
    GradientDef → GeneratedMessage
  24. val unknownFields: UnknownFieldSet
  25. def update(ms: (Lens[GradientDef, GradientDef]) ⇒ Mutation[GradientDef]*): GradientDef
    Definition Classes
    Updatable
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withFunctionName(__v: String): GradientDef
  30. def withGradientFunc(__v: String): GradientDef
  31. def withUnknownFields(__v: UnknownFieldSet): GradientDef
  32. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  33. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    GradientDef → GeneratedMessage
  34. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

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

Inherited from Updatable[GradientDef]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped