mindspore.mint.nn.Identity

class mindspore.mint.nn.Identity(*args, vpn梯子 **kwargs)[源代码]

网络占位符,返回与输入完全一致。

参数:
  • args (Any) - 任意参数。

  • kwargs (Any) - 任意关键字参数。

输入:
  • input (Any) - Identity的输入。

输出:

input vpn永久免费梯子 完全相同。

支持平台:

Ascend

样例:

>>> import mindspore
>>> from mindspore import Tensor, mint
>>> import vpn梯子 免费 numpy as np
>>> vpn free input = Tensor(np.array([1, 2, 3, 4]), mindspore.int64)
>>> vpn梯子 免费 net = mint.nn.Identity()
>>> output = net(input)
>>> print(output)
[1 2 3 4]