Packages

case class AddGate() extends Product with Serializable

Perform Add for vectors.

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

Instance Constructors

  1. new AddGate()

Value Members

  1. def backward(x: VectoD, y: VectoD, dz: VectoD): (VectoD, VectoD)

    Calculate derivative according to the input 'x' and 'y'.

    Calculate derivative according to the input 'x' and 'y'.

    x

    vector x for operation add

    y

    vector y for operation add

    dz

    dl/dz where l is the loss

  2. def forward(x: VectoD, y: VectoD): VectoD

    Perform add with vector 'x' and Vector 'y'.

    Perform add with vector 'x' and Vector 'y'.

    x

    vector x for operation add

    y

    vector y for operation add