Azure / InferenceSchema

Schema decoration for inference code
MIT License
37 stars 13 forks source link

How to deal with multiple input args? #16

Open IvoMerchiers opened 4 years ago

IvoMerchiers commented 4 years ago

Is it possible to provide multiple input args to a function? So something similar to

@input_schema('foo', StandardPythonParameterType('foo))
@input_schema('bar', StandardPythonParameterType('bar'))
@output_schema( StandardPythonParameterType(True))
def run(foo, bar):
    ...

The examples don't mention this, and I haven't been able to get it to work by myself.

trangevi commented 4 years ago

It should support stacking as you have it in your example, I believe. What's the issue you're running into when trying that?

dashesy commented 4 years ago

Yeah I cannot get this to work either. Actually it works in local service, but not on the deployed Aci service. I do not know what is the difference, same code behaves differently