Post

Replies

Boosts

Views

Activity

Reply to Install Tensorflow on Mac m1
I updated numpy. This code runs fine on Debian. Here it latest error: 2023-03-21 12:44:36.438409: 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: 0x127460260 2023-03-21 12:44:36.438442: 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: 0x127460260 --------------------------------------------------------------------------- NotFoundError Traceback (most recent call last) Cell In[1], line 124 116 # Train and eval the model 117 model.compile( 118 optimizer=tf.keras.optimizers.Adam(learning_rate=3e-5, epsilon=1e-08), 119 loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True), 120 metrics=['acc'], 121 ) --> 124 model.fit( 125 train_dataset, 126 epochs=EPOCHS, 127 steps_per_epoch=train_size, 128 validation_data=test_dataset, 129 validation_steps=test_size 130 ) 133 loss, eval_accuracy = model.evaluate(test_dataset) 134 print("Loss: {}\t Test Accuracy: {}".format(loss, eval_accuracy)) File ~/miniconda3/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70, in filter_traceback.<locals>.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 ~/miniconda3/lib/python3.10/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: Detected at node 'StatefulPartitionedCall_102' defined at (most recent call last): File "/Users/walkerrowe/miniconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/walkerrowe/miniconda3/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals)
Mar ’23