Post

Replies

Boosts

Views

Activity

Reply to Getting a Check failed: IsAligned() ptr on tensorflow-metal for the deepdream demo
Getting the same error when working with 64-bit float variables. Minimal example: import tensorflow as tf DTYPE = "float64" def mre(): P = tf.Variable(tf.ones(shape=(), dtype=DTYPE)) delta = tf.ones(dtype=DTYPE, shape=P.shape) print(f"{P.numpy()=}") print(f"{P.dtype=}") P.assign_add(delta) # crashes here print(P.numpy()) if __name__ == "__main__": mre() Environment: Python 3.11.7 tensorflow 2.15.0 tensorflow-estimator 2.15.0 tensorflow-io-gcs-filesystem 0.36.0 tensorflow-macos 2.15.0 tensorflow-metal 1.1.0 Chip: M3 Pro OS: 14.4.1 (23E224)
Apr ’24