AbstractCropping

abstract class AbstractCropping(croppingInternal: Array<IntArray>, name: String) : Layer

Abstract Cropping layer used as the base layer for all the cropping layers.

Constructors

AbstractCropping
Link copied to clipboard
fun AbstractCropping(croppingInternal: Array<IntArray>, name: String)

Functions

build
Link copied to clipboard
open override fun build(tf: Ops, input: Operand<Float>, isTraining: Operand<Boolean>, numberOfLosses: Operand<Float>?): Operand<Float>
open fun build(tf: Ops, input: List<Operand<Float>>, isTraining: Operand<Boolean>, numberOfLosses: Operand<Float>?): Operand<Float>

Extend this function to define variables in the layer and compute layer output.

invoke
Link copied to clipboard
operator fun invoke(vararg layers: Layer): Layer

Important part of functional API. It takes layers as input and saves them to the inboundLayers of the given layer.

Properties

croppingInternal
Link copied to clipboard
val croppingInternal: Array<IntArray>

Cropping size values; currently, they are not used in the implementation of this abstract class and each subclassed layer uses its own copy of the cropping size values.

hasActivation
Link copied to clipboard
open override val hasActivation: Boolean

Returns True, if layer has internal activation function.

inboundLayers
Link copied to clipboard
var inboundLayers: MutableList<Layer>

Returns inbound layers.

name
Link copied to clipboard
var name: String

Layer name. A new name is generated during model compilation when provided name is empty.

outboundLayers
Link copied to clipboard
var outboundLayers: MutableList<Layer>

Returns outbound layers.

outputShape
Link copied to clipboard
lateinit var outputShape: TensorShape

Output data tensor shape.

parentModel
Link copied to clipboard
var parentModel: GraphTrainableModel? = null

Model where this layer is used.

Inheritors

Cropping1D
Link copied to clipboard
Cropping2D
Link copied to clipboard
Cropping3D
Link copied to clipboard