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 __init__(self, network):
      super(FP16Model, self).__init__()
      self.network = convert_network(network, dtype=torch.half)
  
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 1 to create a new FP16Model object from inherited base classes: nn with example: obj = FP16Model(network)