Identity

class Identity<I> : Operation<I, I>

Identity operation which does nothing.

Constructors

Identity
Link copied to clipboard
fun Identity()

Functions

apply
Link copied to clipboard
open override fun apply(input: I): I

Performs preprocessing operation on the input.

getOutputShape
Link copied to clipboard
open override fun getOutputShape(inputShape: TensorShape): TensorShape

Returns shape of the output of the operation having input of shape inputShape.