class_docstr: Class for computing the relevance propagation and supplying
  the necessary forward hooks for all layers.
class_docstr_tok: ["Class","for","computing","the","relevance","propagation","and","supplying","the","necessary","forward","hooks","for","all","layers","."]
code: def conv_nd_fwd_hook(
      self, m, in_tensor: torch.Tensor, out_tensor: torch.Tensor
  ):
      setattr(m, "in_tensor", in_tensor[0])
      setattr(m, "out_shape", list(out_tensor.size()))
      return
  
imports: import torch
  import torch.nn
  import numpy
  import torch.nn.functional
label_desc: Use image node_id 14 for calling the RelevancePropagator obj's underlying member method code with example usage: obj.conv_nd_fwd_hook(m, in_tensor, out_tensor) without return types