Skip to content

Automatically cast numpy objects #338

@vishalbollu

Description

@vishalbollu

Description

Cast numpy objects to expected types when possible, throw user friendly error messages otherwise.

Motivation

ONNX type mismatch errors are not user friendly.

prediction failed: Method run failed due to: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type. Actual: (N11onnxruntime11NonOnnxTypeIdEE) , expected: (N11onnxruntime11NonOnnxTypeIfEE)

Test cases

  • iris sklearn should not need to do the cast
  • imagenet should not need tolist()

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions