torch.nn.Identity
new Identity(..._args: unknown[])
A placeholder identity operator that is argument-insensitive. This module does nothing and can be used as a placeholder when a module is not needed but the API requires one.
Examples
const identity = new Identity();
const x = torch.randn([2, 3]);
const output = identity.forward(x); // Returns same tensor