Skip to content

Commit 2ba1b7b

Browse files
committed
Use correct version command for TensorFlow
1 parent 42bff0d commit 2ba1b7b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/tensorflow-usage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- name: Test EESSI
1717
run: |
1818
# TensorFlow module is loaded via .envrc
19-
python -m tensorflow -c "print(tensorflow.VERSION)"
19+
python -c "import tensorflow; print(tensorflow.__version__)"
2020
shell: bash
2121
- name: Test caching effect of EESSI
2222
run: |
23-
python -m tensorflow -c "print(tensorflow.VERSION)"
23+
python -c "import tensorflow; print(tensorflow.__version__)"
2424
shell: bash
2525
- name: Test module load
2626
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Test EESSI
8181
run: |
8282
module load TensorFlow
83-
python -m tensorflow -c "print(tensorflow.VERSION)"
83+
python -c "import tensorflow; print(tensorflow.__version__)"
8484
shell: bash
8585
```
8686
where the `tensorflow` python module was only available to run after the loading the necessary environment module `TensorFlow`. Note that I have not given the version of `TensorFlow` which means the latest available version will be loaded.

0 commit comments

Comments
 (0)