Skip to content

Commit

Permalink
Fix ut 1.15up3 (intel#846)
Browse files Browse the repository at this point in the history
* fix mixed precision not support tf1.15UP3
  • Loading branch information
VincyZhang authored Apr 15, 2022
1 parent 8f39331 commit df472f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/helloworld/tf_example3/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
intel-tensorflow==1.15.2
https://storage.googleapis.com/intel-optimized-tensorflow/intel_tensorflow-1.15.0up3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
tf_slim
1 change: 1 addition & 0 deletions test/test_bf16_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def test_do_transform(self):
self.assertEqual(new_relu2.attr["T"].type, dtypes.bfloat16)
self.assertTrue("relu2_BF16toFP32" in new_conv3.input)


@unittest.skipIf(tf.version.VERSION > '2.5.0', " Skip test_bf16_fallback case for tf 2.6.0 and above.")
def test_bf16_fallback(self):
os.environ['FORCE_BF16'] = '1'
Expand Down

0 comments on commit df472f4

Please sign in to comment.