System Information
-
MacOS version: 13.4
-
TensorFlow (macos) version: tf-nightly==2.14.0.dev20230616
-
TensorFlow-Metal Plugin Version: 1.0.1
Problem Description
I'm trying to compute the CTC Loss using TensorFlow's tf.nn.ctc_loss
on M1 Mac, but an error is thrown indicating that no OpKernel was registered to support the CTCLossV2 operation. However, when using the CPU or even tf.keras.backend.ctc_batch_cost
, it works fine. The error stack trace is as follows:
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Detected at node CTCLossV2 defined at (most recent call last):
<stack traces unavailable>
No OpKernel was registered to support Op 'CTCLossV2' used by {{node CTCLossV2}} with these attrs: [ctc_merge_repeated=true, preprocess_collapse_repeated=false, ignore_longer_outputs_than_inputs=false]
Registered devices: [CPU, GPU]
Registered kernels:
<no registered kernels>
[[CTCLossV2]]
[[ctc_loss_func/PartitionedCall]] [Op:__inference_train_function_13095]