nn_identity: Identity module

nn_identityR Documentation

Identity module

Description

A placeholder identity operator that is argument-insensitive.

Usage

nn_identity(...)

Arguments

...

any arguments (unused)

Examples

if (torch_is_installed()) {
m <- nn_identity(54, unused_argument1 = 0.1, unused_argument2 = FALSE)
input <- torch_randn(128, 20)
output <- m(input)
print(output$size())
}

torch documentation built on May 29, 2024, 9:54 a.m.