Shortcuts

Identity

class continual.Identity(*args, **kwargs)[source]

A placeholder identity operator that is argument-insensitive.

Parameters:
  • args – any argument (unused)

  • kwargs – any keyword argument (unused)

Return type:

Lambda

Shape:
  • Input: ()(*), where * means any number of dimensions.

  • Output: ()(*), same shape as the input.

Examples:

m = co.Identity(54, unused_argument1=0.1, unused_argument2=False)
input = torch.randn(128, 20)
output = m(input)
assert output.size() == torch.Size([128, 20])
Read the Docs v: latest
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.