Post

Replies

Boosts

Views

Activity

Reply to Cannot use XLA accelerator Tensorflow in M1 silicon
Okay, so how do we circumvent the error if we are not using JIT? I installed tensorflow following the instructions here and got the error shown above when running the sample code proposed on the site. The only other install in the conda env is python==3.10.4 import tensorflow as tf cifar = tf.keras.datasets.cifar100 (x_train, y_train), (x_test, y_test) = cifar.load_data() model = tf.keras.applications.ResNet50( include_top=True, weights=None, input_shape=(32, 32, 3), classes=100,) loss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True) model.compile(optimizer="adam", loss=loss_fn, metrics=["accuracy"]) model.fit(x_train, y_train, epochs=5, batch_size=64)
Topic: App & System Services SubTopic: Hardware Tags:
Jan ’23