Source code for megengine.module.identity
# -*- coding: utf-8 -*-
from ..functional.tensor import copy
from .module import Module
[docs]class Identity(Module):
r"""A placeholder identity operator that will ignore any argument."""
def forward(self, x):
return copy(x)