Files
docker-stacks/tests/by_image/tensorflow-notebook/units/unit_tensorflow.py
Ayaz Salikhov 90224a7a99 Install latest tensorflow using pip (#2263)
* Install latest tensorflow using pip

* Allow tensorflow test to warn

* Fix another way
2025-04-13 12:11:40 +01:00

14 lines
348 B
Python

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import os
import sys
if "NVIDIA_VISIBLE_DEVICES" in os.environ:
print("Not running this test in GPU mode")
sys.exit(0)
import tensorflow as tf
print(tf.constant("Hello, TensorFlow"))
print(tf.reduce_sum(tf.random.normal([1000, 1000])))