diff options
author | 2016-11-14 10:36:07 -0800 | |
---|---|---|
committer | 2016-11-14 10:44:25 -0800 | |
commit | 897c3e2dd650b71d96bd0886cea17474a2d229fb (patch) | |
tree | af610cd3906c3204655113df2df67843afd83544 /tensorflow/python/framework/test_ops_2.cc | |
parent | baa64c39edc0854e9ba5ca1e3d16ac633de6056e (diff) |
Make the python default for shape fn be call_cpp_shape_fn.
Remove explicit RegisterShape calls that used call_cpp_shape_fn without
input_tensors_needed arguments.
Remove requirement that C++ shape functions be specified.
Change: 139089667
Diffstat (limited to 'tensorflow/python/framework/test_ops_2.cc')
-rw-r--r-- | tensorflow/python/framework/test_ops_2.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tensorflow/python/framework/test_ops_2.cc b/tensorflow/python/framework/test_ops_2.cc new file mode 100644 index 0000000000..f4e3952bdf --- /dev/null +++ b/tensorflow/python/framework/test_ops_2.cc @@ -0,0 +1,25 @@ +/* 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. +==============================================================================*/ + +#include "tensorflow/core/framework/op.h" + +// Unlike test_ops.cc, these are built with the "require_shapes" option in the +// BUILD file. + +namespace tensorflow { + +REGISTER_OP("ShapelessOp"); + +} // end namespace tensorflow |