aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/op_def_library.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-01-05 14:05:27 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2016-01-05 14:05:27 -0800
commit1c579361cd1e088dd5e05a394b1561a73e3667ba (patch)
treeec464b9ac18113dc052744b6714eebbc7c6cc34d /tensorflow/python/ops/op_def_library.py
parent208350a6092f9faa473daf8b6eb6a80e9f9518f1 (diff)
Added 'logging' import to control_flow_ops which is used in the file but not imported.
Change: 110842260
Diffstat (limited to 'tensorflow/python/ops/op_def_library.py')
-rw-r--r--tensorflow/python/ops/op_def_library.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tensorflow/python/ops/op_def_library.py b/tensorflow/python/ops/op_def_library.py
index 149bfe712a..94d874f067 100644
--- a/tensorflow/python/ops/op_def_library.py
+++ b/tensorflow/python/ops/op_def_library.py
@@ -376,16 +376,14 @@ class OpDefLibrary(object):
try:
if not input_arg.is_ref and dtype:
dtype = dtypes.as_dtype(dtype).base_dtype
- values = ops.convert_n_to_tensor_or_indexed_slices(
- values, name=input_arg.name,
- dtype=dtype if dtype else None,
+ values = ops.convert_n_to_tensor(
+ values, name=input_arg.name, dtype=dtype if dtype else None,
as_ref=input_arg.is_ref)
except (TypeError, ValueError):
assert dtype is not None, "Should not fail if dtype is None"
assert input_arg.number_attr, "Should be number_attr case"
# What types does the conversion function think values have?
- values = ops.convert_n_to_tensor_or_indexed_slices(
- values, as_ref=input_arg.is_ref)
+ values = ops.convert_n_to_tensor(values, as_ref=input_arg.is_ref)
observed = ", ".join(v.dtype.base_dtype.name for v in values)
prefix = (
@@ -659,8 +657,7 @@ class OpDefLibrary(object):
input_types=input_types, attrs=attr_protos,
op_def=op_def)
outputs = op.outputs
- return _Restructure(ops.convert_n_to_tensor_or_indexed_slices(outputs),
- output_structure)
+ return _Restructure(ops.convert_n_to_tensor(outputs), output_structure)
else:
return g.create_op(op_type_name, inputs, output_types, name=scope,
input_types=input_types, attrs=attr_protos,