def METHOD_NAME(tensor):
  if tensor.dtype == dtypes.string:
    return tensor_forest_ops.reinterpret_string_to_float(tensor)
  elif tensor.dtype.is_integer:
    return math_ops.cast(tensor, dtypes.float32)
  else:
    return tensor