parameters: (network)
return_statement: return nn.Sequential(tofp16(), BN_convert_float(network.half()))
docstring: Convert model to half precision in a batchnorm-safe way.
docstring_summary: Convert model to half precision in a batchnorm-safe way.
docstring_tokens: Convert model to half precision in a batchnorm - safe way .
function: def network_to_half(network):
      """
      Convert model to half precision in a batchnorm-safe way.
      """
      return nn.Sequential(tofp16(), BN_convert_float(network.half()))
function_tokens: def network_to_half ( network ) : return nn . Sequential ( tofp16 ( ) , BN_convert_float ( network . half ( ) ) )