ActivationsWrapperModule

class ActivationsWrapperModule<T : DType, V>(activationHandler: (Tensor<T, V>) -> Tensor<T, V>, val name: String) : Module<T, V> (source)

Constructors

Link copied to clipboard
constructor(activationHandler: (Tensor<T, V>) -> Tensor<T, V>, name: String)

Properties

Link copied to clipboard
open override val modules: List<Module<T, V>>
Link copied to clipboard
open override val name: String

Human-readable name of the node, typically the module's name.

Functions

Link copied to clipboard
open override fun forward(input: Tensor<T, V>, ctx: ExecutionContext): Tensor<T, V>