Searched refs:tf2 (Results 1 – 25 of 109) sorted by relevance
12345
23 from tensorflow.python import tf239 self.assertFalse(tf2.enabled())43 self.assertTrue(tf2.enabled())47 self.assertFalse(tf2.enabled())52 self.assertFalse(tf2.enabled())56 self.assertFalse(tf2.enabled())60 self.assertTrue(tf2.enabled())65 self.assertTrue(tf2.enabled())69 self.assertTrue(tf2.enabled())73 self.assertFalse(tf2.enabled())[all …]
27 from tensorflow.python import tf269 if tf_api_version == 1 and tf2.enabled():71 elif tf_api_version == 2 and not tf2.enabled():
23 from tensorflow.python import tf226 if tf2.enabled():
26 from tensorflow.python import tf2216 if not tf2.enabled():221 if not tf2.enabled():264 if not tf2.enabled():280 if not tf2.enabled():347 if not tf2.enabled():361 if not tf2.enabled():400 if not tf2.enabled():414 if not tf2.enabled():455 if not tf2.enabled():[all …]
25 from tensorflow.python import tf250 if not tf2.enabled():55 if not tf2.enabled():87 if tf2.enabled():167 if not tf2.enabled():
23 from tensorflow.python import tf249 mode = ['eager'] if tf2.enabled() else ['graph', 'eager']
24 from tensorflow.python import tf257 if tf2.enabled():92 if tf2.enabled():110 if tf2.enabled():129 if tf2.enabled():148 if tf2.enabled():162 if tf2.enabled():
26 from tensorflow.python import tf291 if LOCAL.ALL_OBJECTS and LOCAL.GENERATED_WITH_V2 == tf2.enabled():97 LOCAL.GENERATED_WITH_V2 = tf2.enabled()106 if tf2.enabled():135 if tf2.enabled():
22 from tensorflow.python import tf231 if tf2.enabled():
48 file(REMOVE "${OUTPUT}.tf1" "${OUTPUT}.tf2")82 "out=${OUTPUT}.tf2" "${OUTPUT}.tf1"86 message(FATAL_ERROR "Failed to generate ${OUTPUT}.tf2")90 file(RENAME "${OUTPUT}.tf2" "${OUTPUT}")
24 from tensorflow.python import tf246 if LOCAL.ALL_OBJECTS and LOCAL.GENERATED_WITH_V2 == tf2.enabled():52 LOCAL.GENERATED_WITH_V2 = tf2.enabled()80 if tf2.enabled():
24 from tensorflow.python import tf2 # pylint: disable=g-import-not-at-top33 self.assertTrue(tf2.enabled())
25 from tensorflow.python import tf2 # pylint: disable=g-import-not-at-top34 self.assertTrue(tf2.enabled())
21 from tensorflow.python import tf258 tf2.enable()93 tf2.disable()
27 from tensorflow.python import tf242 if tf2.enabled():68 if tf2.enabled():80 if tf2.enabled():92 if tf2.enabled():103 if tf2.enabled():116 if tf2.enabled():
22 from tensorflow.python import tf279 if tf2.enabled():100 if tf2.enabled():
20 from tensorflow.python import tf274 if tf2.enabled():
22 from tensorflow.python import tf257 if tf2.enabled():
16 "//tensorflow/python:tf2",34 "//tensorflow/python:tf2",
25 from tensorflow.python import tf2122 if tf2.enabled():141 if tf2.enabled():
26 from tensorflow.python import tf257 if tf2.enabled():
25 from tensorflow.python import tf242 if tf2.enabled():82 if tf2.enabled():
22 from tensorflow.python import tf234 if tf2.enabled():
23 from tensorflow.python import tf2130 default_format = 'tf' if tf2.enabled() else 'h5'
23 from tensorflow.python import tf291 tf2.disable()145 tf2.enable()