aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/ops/state_ops.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-10-28 17:45:51 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-28 19:05:47 -0700
commit3bb585a7b3592763ef5c6b11a897c1a8ff99ea81 (patch)
treecb42e1ad1b959a707aac85935a80e5abfe656c51 /tensorflow/core/ops/state_ops.cc
parent64081c872e7c617e4378135c634ffd1a24162103 (diff)
Automated rollback of change 137564676
Change: 137576487
Diffstat (limited to 'tensorflow/core/ops/state_ops.cc')
-rw-r--r--tensorflow/core/ops/state_ops.cc235
1 files changed, 0 insertions, 235 deletions
diff --git a/tensorflow/core/ops/state_ops.cc b/tensorflow/core/ops/state_ops.cc
index 9339b9b821..b9ac8b16ff 100644
--- a/tensorflow/core/ops/state_ops.cc
+++ b/tensorflow/core/ops/state_ops.cc
@@ -445,241 +445,6 @@ use_locking: If True, the operation will be protected by a lock;
otherwise the behavior is undefined, but may exhibit less contention.
)doc");
-REGISTER_OP("ScatterNdUpdate")
- .Input("ref: Ref(T)")
- .Input("indices: Tindices")
- .Input("updates: T")
- .Output("output_ref: Ref(T)")
- .Attr("T: type")
- .Attr("Tindices: {int32, int64}")
- .Attr("use_locking: bool = true")
- .Doc(
- R"doc(Applies sparse `updates` to individual values or slices within a given variable according to `indices`.
-
-`ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`.
-
-`indices` must be integer tensor, containing indices into `ref`.
-It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`.
-
-The innermost dimension of `indices` (with length `K`) corresponds to
-indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
-dimension of `ref`.
-
-`updates` is `Tensor` of rank `Q-1+P-K` with shape:
-
-```
-[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].
-```
-
-For example, say we want to update 4 scattered elements to a rank-1 tensor to 8 elements. In Python, that update would look like this:
-
- ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8])
- indices = tf.constant([[4], [3], [1] ,[7]])
- updates = tf.constant([9, 10, 11, 12])
- update = tf.scatter_nd_update(ref, indices, updates)
- with tf.Session() as sess:
- print sess.run(update)
-
-The resulting update to ref would look like this:
-
- [1, 11, 3, 10, 9, 6, 7, 12]
-
-See [tf.scatter_nd](#scatter_nd) for more details about how to make updates to slices.
-
-ref: A mutable Tensor. Should be from a Variable node.
-indices: A Tensor. Must be one of the following types: int32, int64. A tensor of indices into ref.
-updates: A Tensor. Must have the same type as ref. A tensor of updated values to add to ref.
-use_locking: An optional bool. Defaults to True. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
-output_ref: Same as ref. Returned as a convenience for operations that want to use the updated values after the update is done.)doc");
-
-REGISTER_OP("ScatterNdAdd")
- .Input("ref: Ref(T)")
- .Input("indices: Tindices")
- .Input("updates: T")
- .Output("output_ref: Ref(T)")
- .Attr("T: numbertype")
- .Attr("Tindices: {int32, int64}")
- .Attr("use_locking: bool = false")
- .Doc(
- R"doc(Applies sparse addition between `updates` and individual values or slices within a given variable according to `indices`.
-
-`ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`.
-
-`indices` must be integer tensor, containing indices into `ref`.
-It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`.
-
-The innermost dimension of `indices` (with length `K`) corresponds to
-indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
-dimension of `ref`.
-
-`updates` is `Tensor` of rank `Q-1+P-K` with shape:
-
-```
-[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].
-```
-
-For example, say we want to add 4 scattered elements to a rank-1 tensor to 8 elements. In Python, that addition would look like this:
-
- ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8])
- indices = tf.constant([[4], [3], [1], [7]])
- updates = tf.constant([9, 10, 11, 12])
- add = tf.scatter_nd_add(ref, indices, updates)
- with tf.Session() as sess:
- print sess.run(add)
-
-The resulting update to ref would look like this:
-
- [1, 13, 3, 14, 14, 6, 7, 20]
-
-See [tf.scatter_nd](#scatter_nd) for more details about how to make updates to slices.
-
-ref: A mutable Tensor. Should be from a Variable node.
-indices: A Tensor. Must be one of the following types: int32, int64. A tensor of indices into ref.
-updates: A Tensor. Must have the same type as ref. A tensor of updated values to add to ref.
-use_locking: An optional bool. Defaults to True. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
-output_ref: Same as ref. Returned as a convenience for operations that want to use the updated values after the update is done.)doc");
-
-REGISTER_OP("ScatterNdSub")
- .Input("ref: Ref(T)")
- .Input("indices: Tindices")
- .Input("updates: T")
- .Output("output_ref: Ref(T)")
- .Attr("T: numbertype")
- .Attr("Tindices: {int32, int64}")
- .Attr("use_locking: bool = false")
- .Doc(
- R"doc(Applies sparse subtraction between `updates` and individual values or slices within a given variable according to `indices`.
-
-`ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`.
-
-`indices` must be integer tensor, containing indices into `ref`.
-It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`.
-
-The innermost dimension of `indices` (with length `K`) corresponds to
-indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
-dimension of `ref`.
-
-`updates` is `Tensor` of rank `Q-1+P-K` with shape:
-
-```
-[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].
-```
-
-For example, say we want to subtract 4 scattered elements from a rank-1 tensor with 8 elements. In Python, that subtraction would look like this:
-
- ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8])
- indices = tf.constant([[4], [3], [1], [7]])
- updates = tf.constant([9, 10, 11, 12])
- sub = tf.scatter_nd_sub(ref, indices, updates)
- with tf.Session() as sess:
- print sess.run(sub)
-
-The resulting update to ref would look like this:
-
- [1, -9, 3, -6, -4, 6, 7, -4]
-
-See [tf.scatter_nd](#scatter_nd) for more details about how to make updates to slices.
-
-ref: A mutable Tensor. Should be from a Variable node.
-indices: A Tensor. Must be one of the following types: int32, int64. A tensor of indices into ref.
-updates: A Tensor. Must have the same type as ref. A tensor of updated values to subtract from ref.
-use_locking: An optional bool. Defaults to True. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
-output_ref: Same as ref. Returned as a convenience for operations that want to use the updated values after the update is done.)doc");
-
-REGISTER_OP("ScatterNdMul")
- .Input("ref: Ref(T)")
- .Input("indices: Tindices")
- .Input("updates: T")
- .Output("output_ref: Ref(T)")
- .Attr("T: numbertype")
- .Attr("Tindices: {int32, int64}")
- .Attr("use_locking: bool = false")
- .Doc(
- R"doc(Applies sparse subtraction between `updates` and individual values or slices within a given variable according to `indices`.
-
-`ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`.
-
-`indices` must be integer tensor, containing indices into `ref`.
-It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`.
-
-The innermost dimension of `indices` (with length `K`) corresponds to
-indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
-dimension of `ref`.
-
-`updates` is `Tensor` of rank `Q-1+P-K` with shape:
-
-```
-[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].
-```
-
-For example, say we want to multiply 4 scattered elements with a rank-1 tensor with 8 elements. In Python, that multiplication would look like this:
-
- ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8])
- indices = tf.constant([[4], [3], [1], [7]])
- updates = tf.constant([9, 10, 11, 12])
- sub = tf.scatter_nd_mul(ref, indices, updates)
- with tf.Session() as sess:
- print sess.run(sub)
-
-The resulting update to ref would look like this:
-
- [1, 22, 3, 40, 45, 6, 7, 96]
-
-See [tf.scatter_nd](#scatter_nd) for more details about how to make updates to slices.
-
-ref: A mutable Tensor. Should be from a Variable node.
-indices: A Tensor. Must be one of the following types: int32, int64. A tensor of indices into ref.
-updates: A Tensor. Must have the same type as ref. A tensor of updated values to subtract from ref.
-use_locking: An optional bool. Defaults to True. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
-output_ref: Same as ref. Returned as a convenience for operations that want to use the updated values after the update is done.)doc");
-
-REGISTER_OP("ScatterNdDiv")
- .Input("ref: Ref(T)")
- .Input("indices: Tindices")
- .Input("updates: T")
- .Output("output_ref: Ref(T)")
- .Attr("T: numbertype")
- .Attr("Tindices: {int32, int64}")
- .Attr("use_locking: bool = false")
- .Doc(
- R"doc(Applies sparse subtraction between `updates` and individual values or slices within a given variable according to `indices`.
-
-`ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`.
-
-`indices` must be integer tensor, containing indices into `ref`.
-It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`.
-
-The innermost dimension of `indices` (with length `K`) corresponds to
-indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
-dimension of `ref`.
-
-`updates` is `Tensor` of rank `Q-1+P-K` with shape:
-
-```
-[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].
-```
-
-For example, say we want to divide a rank-1 tensor with 8 elements by 4 scattered elements. In Python, that division would look like this:
-
- ref = tf.Variable([10, 20, 30, 40, 50, 60, 70, 80])
- indices = tf.constant([[4], [3], [1], [7]])
- updates = tf.constant([2, 3, 4, 5])
- sub = tf.scatter_nd_div(ref, indices, updates)
- with tf.Session() as sess:
- print sess.run(sub)
-
-The resulting update to ref would look like this:
-
- [10, 5, 30, 13, 25, 60, 70, 16]
-
-See [tf.scatter_nd](#scatter_nd) for more details about how to make updates to slices.
-
-ref: A mutable Tensor. Should be from a Variable node.
-indices: A Tensor. Must be one of the following types: int32, int64. A tensor of indices into ref.
-updates: A Tensor. Must have the same type as ref. A tensor of updated values to subtract from ref.
-use_locking: An optional bool. Defaults to True. If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.
-output_ref: Same as ref. Returned as a convenience for operations that want to use the updated values after the update is done.)doc");
-
REGISTER_OP("CountUpTo")
.Input("ref: Ref(T)")
.Output("output: T")