If a Optimizer has state, then learningRate can NOT been shared, such as Adam, so you will need:
Returns a Case that accepts a Double Layer and a INDArray Layer.
Returns a Case that accepts a Double Layer and a INDArray Layer.
The returned Case
is used by the polymorphic function *,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts a Double Layer and a INDArray Layer.
Returns a Case that accepts a Double Layer and a INDArray Layer.
The returned Case
is used by the polymorphic function +,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts a Double Layer and a INDArray Layer.
Returns a Case that accepts a Double Layer and a INDArray Layer.
The returned Case
is used by the polymorphic function -,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts a Double Layer and a INDArray Layer.
Returns a Case that accepts a Double Layer and a INDArray Layer.
The returned Case
is used by the polymorphic function /,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts a INDArray Layer and a Double Layer.
Returns a Case that accepts a INDArray Layer and a Double Layer.
The returned Case
is used by the polymorphic function *,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts two INDArray Layers.
Returns a Case that accepts two INDArray Layers.
The returned Case
is used by the polymorphic function *,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDArray @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Case that accepts a INDArray Layer and a Double Layer.
Returns a Case that accepts a INDArray Layer and a Double Layer.
The returned Case
is used by the polymorphic function +,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts two INDArray Layers.
Returns a Case that accepts two INDArray Layers.
The returned Case
is used by the polymorphic function +,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDarray @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Case that accepts a INDArray Layer and a Double Layer.
Returns a Case that accepts a INDArray Layer and a Double Layer.
The returned Case
is used by the polymorphic function -,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts two INDArray Layers.
Returns a Case that accepts two INDArray Layers.
The returned Case
is used by the polymorphic function -,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDarray @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Case that accepts a INDArray Layer and a Double Layer.
Returns a Case that accepts a INDArray Layer and a Double Layer.
The returned Case
is used by the polymorphic function /,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Case that accepts two INDArray Layers.
Returns a Case that accepts two INDArray Layers.
The returned Case
is used by the polymorphic function /,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDArray @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherINDArrayLayer) }
If you write something like this:
Returns a Case that accepts INDArray Layers for the polymorphic function abs
import com.thoughtworks.deeplearning.DifferentiableINDArray.`abs(INDArray)` import com.thoughtworks.deeplearning.Symbolic def absNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.abs(indArrayLayer) }
Importing this method will enable abs for INDArray layers or any value able to convert to a INDArray layer
Calculates the 2D convolution
Calculates the 2D convolution
4 dimensions INDArray input
4 dimensions INDArray weight
1 dimension bias
the kernel/filter width and height
the stride width and height
the padding width and height
convolution result
Returns a Case that accepts INDArray Layers.
Returns a Case that accepts INDArray Layers.
The returned Case
is used by the polymorphic function exp,
which is called in MathOps.
import com.thoughtworks.deeplearning.DifferentiableINDArray.`exp(INDArray)` import com.thoughtworks.deeplearning.Symbolic def expNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.exp(indArrayLayer) }
Importing this method will enable exp for INDArray layers or any value able to convert to a INDArray layer
Returns a Case that accepts INDArray Layers for the polymorphic function log
import com.thoughtworks.deeplearning.DifferentiableINDArray.`log(INDArray)` import com.thoughtworks.deeplearning.Symbolic def logNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.log(indArrayLayer) }
Importing this method will enable log for INDArray layers or any value able to convert to a INDArray layer
Returns a Case that accepts a INDArray Layer and a Double Layer for the polymorphic function max
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathFunctions.max(inputINDArrayLayer,anotherDoubleLayer) }
Implicitly converts any layer to INDArrayLayerOps, which enables common methods for INDArray layers.
Implicitly converts any layer to INDArrayLayerOps, which enables common methods for INDArray layers.
import com.thoughtworks.deeplearning.DifferentiableINDArray._
A namespace of common operators for INDArray layers.
After importing
DifferentiableINDArray._
,You will able to use MathFunctions,like
You will able to use MathMethods,like
You will able to use INDArrayLayerOps,like
You will able to use some methods like conv2d