Skip to content
This repository was archived by the owner on Aug 3, 2019. It is now read-only.
This repository was archived by the owner on Aug 3, 2019. It is now read-only.

run_model() missing 1 required positional argument: 'inputs' #18

@hauhsu

Description

@hauhsu

I was trying to run the example in README, but there is an error:

Traceback (most recent call last):
  File "./plaidml-test.py", line 18, in <module>
    output = onnx_plaidml.backend.run_model(model, [data])
  File "/home/hsu.hau/.virtualenvs/ml/lib/python3.5/site-packages/onnx_plaidml/backend.py", line 166, in run_model
    return super(PlaidMLBackend, cls).run_model(model, device=device, **kwargs)
TypeError: run_model() missing 1 required positional argument: 'inputs'

And I have to modify the code onnx_plaidml/backend.py to avoid this error:

166c166
<         return super(PlaidMLBackend, cls).run_model(model, inputs, device=device, **kwargs)
---
>         return super(PlaidMLBackend, cls).run_model(model, device=device, **kwargs)

Is that a bug or I did something wrong?
Thanks!

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