message: Allows the gradient multiplier tensors to be non-constant.
diff: @@ -244,7 +244,6 @@ from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  -from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  @@ -354,11 +353,11 @@ def multiply_gradients(grads_and_vars, gradient_multipliers):
  raise ValueError('Requested multiple of `None` gradient.')
  if isinstance(grad, ops.IndexedSlices):
  - tmp = grad.values * constant_op.constant(
  + tmp = grad.values * ops.convert_to_tensor(
  gradient_multipliers[key], dtype=grad.dtype)
  grad = ops.IndexedSlices(tmp, grad.indices, grad.dense_shape)
  else:
  - grad *= constant_op.constant(
  + grad *= ops.convert_to_tensor(
  gradient_multipliers[key], dtype=grad.dtype)
  multiplied_grads_and_vars.append((grad, var))
  return multiplied_grads_and_vars
  