diff options
author | 2016-11-01 15:39:55 -0800 | |
---|---|---|
committer | 2016-11-01 16:48:13 -0700 | |
commit | 2939f53ea2d5dc9de018d9ad64a3ac03d03d4925 (patch) | |
tree | 9cee20d757b657779cf2f54a323ec5b57f8229f1 /tensorflow/python/ops/string_ops.py | |
parent | 0a170e45d6374ab04073542d2a34af8c984afe2f (diff) |
Move SparseTensor into its own framework.py, add get_shape().
Change: 137887950
Diffstat (limited to 'tensorflow/python/ops/string_ops.py')
-rw-r--r-- | tensorflow/python/ops/string_ops.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/ops/string_ops.py b/tensorflow/python/ops/string_ops.py index c3eef9813c..830134da9f 100644 --- a/tensorflow/python/ops/string_ops.py +++ b/tensorflow/python/ops/string_ops.py @@ -50,6 +50,7 @@ import six from tensorflow.python.framework import common_shapes from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops +from tensorflow.python.framework import sparse_tensor # pylint: disable=unused-import from tensorflow.python.ops import gen_string_ops @@ -107,7 +108,7 @@ def string_split(source, delimiter=" "): # pylint: disable=invalid-name indices.set_shape([None, 2]) values.set_shape([None]) shape.set_shape([2]) - return ops.SparseTensor(indices, values, shape) + return sparse_tensor.SparseTensor(indices, values, shape) ops.NotDifferentiable("StringToHashBucket") |