Source code for catalyst.contrib.modules.common
import torch.nn as nn
[docs]class Lambda(nn.Module):
def __init__(self, lambda_fn):
super().__init__()
self.lambda_fn = lambda_fn
import torch.nn as nn
[docs]class Lambda(nn.Module):
def __init__(self, lambda_fn):
super().__init__()
self.lambda_fn = lambda_fn