Skip to content
Snippets Groups Projects
Commit 8cff0bf8 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by tensorflow-copybara
Browse files

Remove tf.contrib dependency.

PiperOrigin-RevId: 272968768
parent 4628e766
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ py_binary(
"//tensorflow_federated",
"//tensorflow_federated/python/research/utils:training_loops",
"//tensorflow_federated/python/research/utils:utils_impl",
"//tensorflow_federated/python/tensorflow_libs:nest",
],
)
......
......@@ -31,8 +31,8 @@ from tensorboard.plugins.hparams import api as hp
from tensorflow_federated.python.research.baselines.emnist import models
from tensorflow_federated.python.research.utils import training_loops
from tensorflow_federated.python.research.utils import utils_impl
from tensorflow_federated.python.tensorflow_libs import nest as nest_fork
nest = tf.contrib.framework.nest
with utils_impl.record_new_flags() as hparam_flags:
# Metadata
......@@ -160,7 +160,7 @@ class MetricsHook(object):
zip(['loss', 'sparse_categorical_accuracy'], eval_metrics))
flat_metrics = collections.OrderedDict(
nest.flatten_with_joined_string_paths(metrics))
nest_fork.flatten_with_joined_string_paths(metrics))
# Use a DataFrame just to get nice formatting.
df = pd.DataFrame.from_dict(flat_metrics, orient='index', columns=['value'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment