Post

Replies

Boosts

Views

Activity

Reply to Tensorflow on M1 Macbook Pro, error when model fit executes
I have the same error. I used minconda and still get the error. It occurs in the model.fit. Everything before that looks normal until I run model.fit and get so many warning then error messages OT_FOUND: could not find registered platform with id: 0x282f9b6f0 2022-12-10 23:22:22.325619: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:418 : NOT_FOUND: could not find registered platform with id: 0x282f9b6f0 NotFoundError Traceback (most recent call last) Cell In[27], line 13 11 loss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True) 12 model.compile(optimizer="adam", loss=loss_fn, metrics=["accuracy"]) ---> 13 model.fit(x_train, y_train, epochs=5, batch_size=64) File ~/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/keras/utils/traceback_utils.py:70, in filter_traceback..error_handler(*args, **kwargs) 67 filtered_tb = _process_traceback_frames(e.traceback) 68 # To get the full stack trace, call: 69 # tf.debugging.disable_traceback_filtering() ---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tb File ~/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/python/eager/execute.py:52, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name) 50 try: 51 ctx.ensure_initialized() ---> 52 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, 53 inputs, attrs, num_outputs) 54 except core._NotOkStatusException as e: 55 if name is not None: NotFoundError: Graph execution error: Node: 'StatefulPartitionedCall_212' could not find registered platform with id: 0x282f9b6f0 [[{{node StatefulPartitionedCall_212}}]] [Op:__inference_train_function_25966]
Dec ’22