class_docstr: Module to create a lambda function as Module.
  
  Args:
      fcn: a pointer to any function.
  
  Example:
      >>> import torch
      >>> import kornia as K
      >>> fcn = Lambda(lambda x: K.geometry.resize(x, (32, 16)))
      >>> fcn(torch.rand(1, 4, 64, 32)).shape
      torch.Size([1, 4, 32, 16])
class_docstr_tok: ["Module","to","create","a","lambda","function","as","Module",".","Args",":","fcn",":","a","pointer","to","any","function",".","Example",":",">",">",">","import","torch",">",">",">","import","kornia","as","K",">",">",">","fcn","=","Lambda","(","lambda","x",":","K.geometry.resize","(","x",",","(","32",",","16",")",")",")",">",">",">","fcn","(","torch.rand","(","1",",","4",",","64",",","32",")",")",".shape","torch.Size","(","[","1",",","4",",","32",",","16","]",")"]
code: def __init__(self, fcn: Callable[..., Any]) -> None:
      super().__init__()
      self.fcn = fcn
  
file_path: kornia/kornia/x/utils.py
imports: from dataclasses import dataclass, field
  from enum import Enum
  from typing import Any, Callable, Dict, Tuple
  from kornia.core import Module, Tensor
  from kornia.metrics.average_meter import AverageMeter
label_desc: Use image node_id 1 to create a new Lambda object from inherited base classes: Module with example: obj = Lambda(fcn)