Skip to content

KeyError: 'SimpleMLCreateModelResource' #2212

Open
@rwst

Description

@rwst

Ask a Question

Question

I'm trying to convert a TF Random Forest model. Has this been done?

Further information

I'm getting the following error, what does it mean? I'm willing to put work into missing functionality.

ralf@ark:~/models> /opt/python311/bin/python3 -m tf2onnx.convert --saved-model RF-EXP.arch/ --output RF-EXP.onnx
2023-07-31 18:24:48.336799: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-07-31 18:24:48.379378: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-07-31 18:24:48.379799: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-07-31 18:24:48.958780: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
<frozen runpy>:128: RuntimeWarning: 'tf2onnx.convert' found in sys.modules after import of package 'tf2onnx', but prior to execution of 'tf2onnx.convert'; this may result in unpredictable behaviour
2023-07-31 18:24:49,989 - WARNING - '--tag' not specified for saved_model. Using --tag serve
Traceback (most recent call last):
  File "/home/ralf/.local/lib/python3.11/site-packages/tensorflow/python/framework/ops.py", line 4215, in _get_op_def
    return self._op_def_cache[type]
           ~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'SimpleMLCreateModelResource'

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending on user responseWaiting for more information or validation from userquestionAn issue, pull request, or discussion needs more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions