Dragon API Dragon v0.3.0 Python Identity¶ class dragon.vm.torch.nn.Identity( *args, **kwargs)[source]¶ Apply the identity transformation. \[y = x \] Examples: m = torch.nn.Identity(1, unused_arg=2) x = torch.ones(2, 2) y = m(x) __init__¶ Identity.__init__( *args, **kwargs)[source]¶ Create an Identity module.