File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4848import json
4949from enum import Enum
5050
51- import tensorflow as tf
51+ import tensorflow . compat . v1 as tf
5252from tensorflow .contrib import framework
5353from tensorflow .contrib import layers
54- gfile = tf .gfile # Aliase needed for mock.
54+ # gfile = tf.gfile # Aliase needed for mock.
5555
5656VANISHED = 0.0
5757NUM_OUTPUTS = 'num_outputs'
@@ -514,7 +514,7 @@ def decorator_from_parameterization_file(
514514 Returns:
515515 An ConfigurableOps instance with the parameterization from `filename`.
516516 """
517- with gfile .Open (filename , 'r' ) as f :
517+ with tf . gfile .Open (filename , 'r' ) as f :
518518 parameterization = json .loads (f .read ())
519519 return ConfigurableOps (
520520 parameterization = parameterization , fallback_rule = fallback_rule )
You can’t perform that action at this time.
0 commit comments