ReshapeOperation

class ReshapeOperation<T : DType, V>(parameters: Map<String, Any> = emptyMap()) : BaseOperation(source)

Shape operations

Constructors

Link copied to clipboard
constructor(parameters: Map<String, Any> = emptyMap())

Functions

Link copied to clipboard
open override fun clone(newParameters: Map<String, Any>): Operation

Clone this operation with potentially different parameters

Link copied to clipboard
open override fun <T2 : DType, V2> execute(inputs: List<Tensor<T2, V2>>): List<Tensor<T2, V2>>

Execute this operation with the given inputs

Link copied to clipboard
open override fun inferOutputs(inputs: List<TensorSpec>): List<TensorSpec>

Infer the output tensor specifications from input specifications

Link copied to clipboard
open override fun validateInputs(inputs: List<TensorSpec>): ValidationResult

Validate that the given inputs are compatible with this operation