Source code for torchrl.utils.nop

[docs]class Nop: """A NOP class. Give it anything."""
[docs] def nop(self, *args, **kwargs): pass
def __getattr__(self, _): return self.nop