diff options
Diffstat (limited to 'tensorflow/python/ops/resource_variable_ops.py')
-rw-r--r-- | tensorflow/python/ops/resource_variable_ops.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tensorflow/python/ops/resource_variable_ops.py b/tensorflow/python/ops/resource_variable_ops.py index 75980b7d27..8962fe7e4a 100644 --- a/tensorflow/python/ops/resource_variable_ops.py +++ b/tensorflow/python/ops/resource_variable_ops.py @@ -19,7 +19,6 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -from tensorflow.python.framework import common_shapes from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_shape from tensorflow.python.ops import gen_resource_variable_ops @@ -30,15 +29,6 @@ from tensorflow.python.ops import resources from tensorflow.python.ops.gen_resource_variable_ops import * # pylint: enable=wildcard-import -ops.RegisterShape("VarHandleOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("CreateVariableOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("ReadVariableOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("AssignVariableOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("AssignAddVariableOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("VarIsInitializedOp")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("ResourceGather")(common_shapes.call_cpp_shape_fn) -ops.RegisterShape("ResourceScatterAdd")(common_shapes.call_cpp_shape_fn) - def _register_variable_read(read, collections, trainable): """Helper function to put a read from a variable in the collections.""" |