nn_identity: Identity module

Description Usage Arguments Examples

Description

A placeholder identity operator that is argument-insensitive.

Usage

1

Arguments

...

any arguments (unused)

Examples

1
2
3
4
5
6
7
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())

}

Example output



torch documentation built on Oct. 7, 2021, 9:22 a.m.