MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / write

Method write

tensorflow/python/ops/tensor_array_ops.py:1069–1084  ·  view source on GitHub ↗

Write `value` into index `index` of the TensorArray. Args: index: 0-D. int32 scalar with the index to write to. value: N-D. Tensor of type `dtype`. The Tensor to write to this index. name: A name for the operation (optional). Returns: A new TensorArray object wit

(self, index, value, name=None)

Source from the content-addressed store, hash-verified

1067 return self._implementation.read(index, name=name)
1068
1069 def write(self, index, value, name=None):
1070 """Write `value` into index `index` of the TensorArray.
1071
1072 Args:
1073 index: 0-D. int32 scalar with the index to write to.
1074 value: N-D. Tensor of type `dtype`. The Tensor to write to this index.
1075 name: A name for the operation (optional).
1076
1077 Returns:
1078 A new TensorArray object with flow that ensures the write occurs.
1079 Use this object all for subsequent operations.
1080
1081 Raises:
1082 ValueError: if there are more writers than specified.
1083 """
1084 return self._implementation.write(index, value, name=name)
1085
1086 def stack(self, name=None):
1087 """Return the values in the TensorArray as a stacked `Tensor`.

Calls

no outgoing calls