Packages

case class Conv2D(scope: Scope, input: Variable, weight: Variable, bias: Variable, stride: Long, padding: Long, dilation: Long, groups: Long) extends Op with Product with Serializable

2D convolution

input

batch x in_channels x height x width

weight

out_channels x in_channels x kernel_size x kernel_size

bias

out_channels

returns

Variable with Tensor of size batch x out_channels x L' (length depends on stride/padding/dilation)

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

Instance Constructors

  1. new Conv2D(scope: Scope, input: Variable, weight: Variable, bias: Variable, stride: Long, padding: Long, dilation: Long, groups: Long)

    input

    batch x in_channels x height x width

    weight

    out_channels x in_channels x kernel_size x kernel_size

    bias

    out_channels

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. val batchSize: Long
  6. val bias: Variable
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val dilation: Long
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val groups: Long
  13. val imageHeight: Long
  14. val imageWidth: Long
  15. val input: Variable
  16. val inputChannels: Long
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val kernelSize: Long
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val outChannels: Long
  23. val padding: Long
  24. val params: List[(Variable, (STen, STen) ⇒ Unit)]

    Implementation of the backward pass

    Implementation of the backward pass

    A list of input variables paired up with an anonymous function computing the respective partial derivative. With the notation in the documentation of the trait lamp.autograd.Op: dy/dw2 => dy/dw2 * dw2/dw1. The first argument of the anonymous function is the incoming partial derivative (dy/dw2), the second argument is the output tensor into which the result (dy/dw2 * dw2/dw1) is accumulated (added).

    If the operation does not support computing the partial derivative for some of its arguments, then do not include that argument in this list.

    Definition Classes
    Conv2DOp
    See also

    The documentation on the trait lamp.autograd.Op for more details and example.

  25. val scope: Scope
  26. val stride: Long
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. val value: Variable

    The value of this operation

    The value of this operation

    Definition Classes
    Conv2DOp
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  32. val weight: Variable

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Op

Inherited from AnyRef

Inherited from Any

Ungrouped