Database Administration (MOSC)

MOSC Banner

Load ONNX model with ORA-54426 error

Hi

I just downloaded an onnx file from

and tried to load the onnx file into my oracle 23ai database with the following error:

SQL> begin
dbms_vector.load_onnx_model (
directory => 'model_dir',
file_name => 'model.onnx',
model_name => 'E5_SMALL_V2');
end;
/ 2 3 4 5 6 7
begin
*
ERROR at line 1:
ORA-54426: Tensor "input_ids" contains 2 batch dimensions.
ORA-06512: at "SYS.DBMS_VECTOR", line 879
ORA-06512: at "SYS.DBMS_DATA_MINING", line 5767
ORA-06512: at "SYS.DBMS_VECTOR", line 874
ORA-06512: at line 2
Help: https://docs.oracle.com/error-help/db/ora-54426/

SQL>

any idea ?

(PS: I can load embedded model ALL_MINILM_L12_V2 without any error )

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center