Skip to content

Commit e6b301e

Browse files
authored
RHAIENG-287, #2600: fix two out of the three failing TF ROCm tests (#2603)
1 parent df4a808 commit e6b301e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter/rocm/tensorflow/ubi9-python-3.12/test/test_notebook.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
4646
"\n",
4747
" def test_tensorflow_version(self):\n",
48-
" expected_major_minor = get_expected_version(\"ROCm-TensorFlow\")\n",
48+
" expected_major_minor = get_expected_version(\"TensorFlow-ROCm\")\n",
4949
" actual_major_minor = get_major_minor(tf.__version__)\n",
5050
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
5151
"\n",
@@ -68,7 +68,7 @@
6868
" tf.keras.layers.Dense(10)\n",
6969
" ])\n",
7070
" predictions = model(x_train[:1]).numpy()\n",
71-
" assert predictions\n",
71+
" assert predictions is not None and len(predictions) > 0\n",
7272
" tf.nn.softmax(predictions).numpy()\n",
7373
" loss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)\n",
7474
" loss_fn(y_train[:1], predictions).numpy()\n",

0 commit comments

Comments
 (0)