Skip to content

Error on loading graph (Slice) #124

Open
@dstarkenburg

Description

@dstarkenburg

Hello!

Im trying to parse one of the files I have been working on adding compatibility for, and I am getting a strange error on Slice.

using Flux
using ONNX
using Umlaut
using ProtoBuf

function onnxtoumlaut(file_name::String, input_array::Array)
    onnxfile = ONNX.load(file_name, input_array)
    return onnxfile
end

function onnxtojuliafunc(file::String, input_array::Array)
    onnxfile = onnxtoumlaut(file, input_array)
    final_function= compile(onnxfile)
    return final_function
end

my_func = onnxtojuliafunc("14_ieee_ml4acopf.onnx", ones(Float, 22, 1))

this code throws this error

Image

and here is the view from Roder's netron app

Image

here is the ONNX file https://github.com/AI4OPT/ml4acopf_benchmark/tree/main/onnx

am I missing something about the shapes of my dummy input or has Slice not been implemented for the latest version of ONNX?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions