diff options
author | 2016-11-02 15:57:45 -0800 | |
---|---|---|
committer | 2016-11-02 17:10:10 -0700 | |
commit | 9a66842db8568e90bfef7c3c7836c052b776f17c (patch) | |
tree | 678aea429196209d3368dcb5936105efd60acd51 /tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc | |
parent | f9b6d55ffd630082efd088fca927f7d991fdf3fa (diff) |
Adding CPU kernels for tf.scatter_nd(), tf.scatter_nd_update(), tf.scatter_nd_add(), tf.scatter_nd_sub(), tf.scatter_nd_mul() and tf.scatter_nd_div() as well as gradient functions for tf.scatter_nd() and tf.gather_nd()
Change: 138013328
Diffstat (limited to 'tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc')
-rw-r--r-- | tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc b/tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc new file mode 100644 index 0000000000..fe094c5e6b --- /dev/null +++ b/tensorflow/core/kernels/scatter_nd_op_cpu_impl_2.cc @@ -0,0 +1,18 @@ +/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +#define CPU_PROVIDED_IXDIM 2 +#include "tensorflow/core/kernels/scatter_nd_op_cpu_impl.h" +#undef CPU_PROVIDED_IXDIM |