Closed SuperFluffy closed 2 years ago
Hello! Thanks for your interest in tract!
At this stage, I need to have a look at a test-case with model and data. Can you provide them as:
You can "check" the test case with
tract model.onnx --input-bundle io.npz run --assert-output-bundle io.npz
NB:
dump
subcommand may be of interesting and run --steps
as well. tract --help
is a good place to start.I need to write a command line cookbook.
I'm closing this as nothing is happening, will reopen if relevant.
I can't get my model, which expects an input of shape
1x51
, to take an array of the same shape. Instead the thread panics. Am I doing something obviously wrong?I am defining a model and load a CSV file, the first row of which I want to feed to the model:
For reference, this is what
println!("{tensor:?}")
gives:However, I am immediately confronted with this error:
I am not quite sure where to start investigating this. When inspecting the model in Python, I see this:
Similarly, looking at the model loaded through tract reveals this:
Here is
RUST_BACKTRACE=1
:EDIT: I have been investigating this. The error comes from
core::ops::array::gather
, specificallyGather::eval_t
:This is the input to
index_axis
:This value of
24
comes directly from the input data (I checked by the first element to23
).Looking at the ONNX graph and eyeballing, this looks like Node 2 with the name
Gather_1.slice
is trying to slice across axis 0 using the first value of Node 1, which happens to be24
?So is the model bad?