message: Allow alpha to be a numpy array when calling leaky_relu
diff: @@ -1609,6 +1609,8 @@ def leaky_relu(features, alpha=0.2, name=None):
  if features.dtype.is_integer:
  features = math_ops.to_float(features)
  if compat.forward_compatible(2018, 11, 1):
  + if isinstance(alpha, np.ndarray):
  + alpha = np.asscalar(alpha)
  return gen_nn_ops.leaky_relu(features, alpha=alpha, name=name)
  alpha = ops.convert_to_tensor(alpha, dtype=features.dtype, name="alpha")
  return math_ops.maximum(alpha * features, features, name=name)
  