message: handling lists and tuples
diff: @@ -4541,7 +4541,10 @@ def relu(x, alpha=0., max_value=None, threshold=0):
  Returns:
  A tensor.
  """
  -
  + if isinstance(x, tf.Tensor) or isinstance(x, np.ndarray):
  + dtype = x.dtype
  + else:
  + dtype = floatx()
  if alpha != 0.:
  if max_value is None and threshold == 0:
  return nn.leaky_relu(x, alpha=alpha)
  @@ -4555,7 +4558,7 @@ def relu(x, alpha=0., max_value=None, threshold=0):
  if threshold != 0:
  # computes x for x > threshold else 0
  - x = x * math_ops.cast(math_ops.greater(x, threshold), x.dtype)
  + x = x * math_ops.cast(math_ops.greater(x, threshold), dtype=dtype)
  elif max_value == 6:
  # if no threshold, then can use nn.relu6 native TF op for performance
  x = nn.relu6(x)
  