class_docstr: Calculates integral of the input tensor.
  
  Args:
      image: the input tensor with shape :math:`(B,C,H,W)`.
  
  Returns:
      Integral tensor for the input tensor with shape :math:`(B,C,H,W)`.
  
  Shape:
      - Input: :math:`(B, C, H, W)`
      - Output: :math:`(B, C, H, W)`
  
  Examples:
      >>> input = torch.ones(3, 5)
      >>> dim = (-2, -1)
      >>> output = IntegralTensor(dim)(input)
      >>> output
      tensor([[ 1.,  2.,  3.,  4.,  5.],
              [ 2.,  4.,  6.,  8., 10.],
              [ 3.,  6.,  9., 12., 15.]])
class_docstr_tok: ["Calculates","integral","of","the","input","tensor",".","Args",":","image",":","the","input","tensor","with","shape",":","math",":","`","(","B",",","C",",","H",",","W",")","`",".","Returns",":","Integral","tensor","for","the","input","tensor","with","shape",":","math",":","`","(","B",",","C",",","H",",","W",")","`",".","Shape",":","-","Input",":",":","math",":","`","(","B",",","C",",","H",",","W",")","`","-","Output",":",":","math",":","`","(","B",",","C",",","H",",","W",")","`","Examples",":",">",">",">","input","=","torch.ones","(","3",",","5",")",">",">",">","dim","=","(","-2",",","-1",")",">",">",">","output","=","IntegralTensor","(","dim",")","(","input",")",">",">",">","output","tensor","(","[","[","1.",",","2.",",","3.",",","4.",",","5",".","]",",","[","2.",",","4.",",","6.",",","8.",",","10",".","]",",","[","3.",",","6.",",","9.",",","12.",",","15",".","]","]",")"]
code: def forward(self, input: Tensor) -> Tensor:
      return integral_tensor(input, self.dim)
  
file_path: kornia/kornia/enhance/integral.py
imports: from typing import Optional, Tuple
  from kornia.core import Module, Tensor
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SHAPE
label_desc: Use image node_id 2 for calling the IntegralTensor obj's underlying member method code with example usage: obj.forward(input) and returns: integral_tensor