()
return Fn('ToFloat', lambda x: x.astype(np.float32))
Returns a layer that changes the dtype of a tensor to `float32`.
Returns a layer that changes the dtype of a tensor to `float32`.
Returns a layer that changes the dtype of a tensor to float32 .
def ToFloat():
  """Returns a layer that changes the dtype of a tensor to `float32`."""
  return Fn('ToFloat', lambda x: x.astype(np.float32))
def ToFloat ( ) : return Fn ( 'ToFloat' , lambda x : x . astype ( np . float32 ) )