class_docstr: Basic unit containing Conv3D + BatchNorm + non-linearity.
class_docstr_tok: ["Basic","unit","containing","Conv3D","+","BatchNorm","+","non-linearity","."]
docstr: Get the zero padding number.
docstr_tok: ["Get","the","zero","padding","number","."]
code: def compute_pad(self, dim, s):
      """Get the zero padding number."""
  
      if s % self._stride[dim] == 0:
          return max(self._kernel_shape[dim] - self._stride[dim], 0)
      else:
          return max(
              self._kernel_shape[dim] - (s % self._stride[dim]), 0
          )
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch.hub import load_state_dict_from_url
label_desc: Use image node_id 2 for calling the Unit3D obj's underlying member method code with example usage: obj.compute_pad(dim, s) and returns: max, max