class_docstr: Implements the tf.Variable API but backed by a tf.Tensor.
class_docstr_tok: ["Implements","the","tf.Variable","API","but","backed","by","a","tf.Tensor","."]
code: def __init__(self, value, trainable, name=None):
      # NOTE: Intentionally not calling super ctor.
      self.initial_tensor_value = value
      self.tensor_value = value
      self._trainable = trainable
      self._name = name
      self._shape = value.shape
      self._dtype = value.dtype
      self._device = value.device
  
imports: import collections
  import functools
  import itertools
  import threading
  import contextlib
  from sonnet.src.functional import utils
  import tensorflow
label_desc: Use image node_id 1 to create a new TensorVariable object from inherited base classes: tf with example: obj = TensorVariable(value, trainable, name)