class_docstr: `nn.Module` wrapping a `torch.autograd.Function`.
class_docstr_tok: ["`","nn.Module","`","wrapping","a","`","torch.autograd.Function","`","."]
docstr: Wraps the provided function `func`.
  
  :param func: the `torch.autograd.Function` to be wrapped.
docstr_tok: ["Wraps","the","provided","function","`","func","`",".",":","param","func",":","the","`","torch.autograd.Function","`","to","be","wrapped","."]
code: def __init__(self, func):
      """Wraps the provided function `func`.
  
      :param func: the `torch.autograd.Function` to be wrapped.
      """
      super(FunctionWrapper, self).__init__()
      self.func = func
  
file_path: advertorch/advertorch/bpda.py
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new FunctionWrapper object from inherited base classes: nn with example: obj = FunctionWrapper(func)