class_docstr: Convert model to half precision in a batchnorm-safe way.
class_docstr_tok: ["Convert","model","to","half","precision","in","a","batchnorm-safe","way","."]
code: def forward(self, *inputs):
      inputs = tuple(t.half() for t in inputs)
      return self.network(*inputs)
  
imports: import torch
  import torch.nn
  from torch.autograd import Variable
  from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 2 for calling the FP16Model obj's underlying member method code with example usage: obj.forward() and returns: self