class_docstr: CompositeTensorGradient based on `T.values` and `T.with_values`.
class_docstr_tok: ["CompositeTensorGradient","based","on","`","T.values","`","and","`","T.with_values","`","."]
code: def replace_gradient_components(self, value, component_grads):
      return value.with_values(component_grads)
  
file_path: tensorflow-upstream/tensorflow/python/framework/composite_tensor_gradient.py
imports: import abc
  import sys
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the WithValuesCompositeTensorGradient obj's underlying member method code with example usage: obj.replace_gradient_components(value, component_grads) and returns: value