From 3986d0e353e446474be9383b88ec356ef8b192b9 Mon Sep 17 00:00:00 2001 From: frreiss Date: Thu, 23 May 2019 17:22:44 -0700 Subject: [PATCH] Remove dead code --- tensorflow/python/eager/wrap_function.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tensorflow/python/eager/wrap_function.py b/tensorflow/python/eager/wrap_function.py index d23c812e738..ef731fae4a9 100644 --- a/tensorflow/python/eager/wrap_function.py +++ b/tensorflow/python/eager/wrap_function.py @@ -192,24 +192,6 @@ def _lift_unlifted_variables(graph, variable_holder): mutable_collection[index] = lifted_variables.get(current, current) -def _lift_sparse_tensor(orig_sparse_tensor, lift_map): - """ - Args: - orig_sparse_tensor: SparseTensors object whose underlying dense Tensors - reside in a different graph - lift_map: Map (as returned by `lift_to_graph`) from tensors in the other - graph to tensors in the current graph. - Returns: - A new copy of `orig_sparse_tensor` whose underlying dense tensors are in - the current graph - """ - return sparse_tensor.SparseTensor( - indices=lift_map[orig_sparse_tensor.indices], - values=lift_map[orig_sparse_tensor.values], - dense_shape=lift_map[orig_sparse_tensor.dense_shape] - ) - - # TODO(allenl): make this trackable class WrappedFunction(function.ConcreteFunction): """Wraps a tf V1 piece of code in a function."""