Package org.jetbrains.kotlinx.dl.api.core.layer.merge

Types

AbstractMerge
Link copied to clipboard
abstract class AbstractMerge(layerTypeName: String, name: String) : Layer

Layer that adds a list of inputs.

Add
Link copied to clipboard
class Add(name: String) : AbstractMerge

Layer that adds a list of inputs.

Average
Link copied to clipboard
class Average(name: String) : AbstractMerge

Layer that averages a list of inputs element-wise.

Concatenate
Link copied to clipboard
class Concatenate(axis: Int, name: String) : AbstractMerge, NoGradients

Layer that concatenates a list of inputs.

Dot
Link copied to clipboard
class Dot(axis: IntArray, normalize: Boolean, name: String) : AbstractMerge

Layer that computes a dot product between samples in two tensors.

Maximum
Link copied to clipboard
class Maximum(name: String) : AbstractMerge

Layer that computes the maximum (element-wise) a list of inputs.

Minimum
Link copied to clipboard
class Minimum(name: String) : AbstractMerge

Layer that computes the minimum (element-wise) a list of inputs.

Multiply
Link copied to clipboard
class Multiply(name: String) : AbstractMerge

Layer that multiplies (element-wise) a list of inputs.

Subtract
Link copied to clipboard
class Subtract(name: String) : AbstractMerge

Layer that subtracts inputs, following from the previous.

Functions

batchDot
Link copied to clipboard
fun batchDot(scope: Scope?, x: Operand<Float>, y: Operand<Float>, axis: IntArray): Operand<Float>

Batchwise dot product.

l2Normalize
Link copied to clipboard
fun l2Normalize(scope: Scope?, x: Operand<Float>, axis: IntArray?): Operand<Float>

Normalizes a tensor wrt the L2 norm alongside the specified axis.