-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
combiner receives struct_pb2.ListValue instead of numpy list #686
Comments
Yes that is strange. The code for the standard aggregate is seldon-core/python/seldon_core/seldon_methods.py Lines 214 to 220 in f0a940d
|
Here how to simulate the case:
when you are using the output1,features will be: array([values { |
This issue can be fixed by using seldon_message_to_json() instead of np.array() in this function grpc_datadef_to_array for data_type == "ndarray" |
Can you test on latest 0.4.0 release? |
I am building a seldon deployment inference graph consists of a combiner which receives data from two child models. the models output a numpy list which is received by the combiner as google.protobuf.struct_pb2.ListValue. should it be received at the combiner the same type as it was sent from the model?
Model's output:
[[[211, 267, 320]], [[197, 251, 302]]] >> numpy listcomp2 combiner input:
Received in combiner:
[[values {number_value: 211.0}
values { number_value: 267.0}
values { number_value: 320.0}]
[values { number_value: 197.0}
values { number_value: 251.0}
values { number_value: 302.0}]]
seldon-core verion used in the combiner and model is '0.3.1'
The text was updated successfully, but these errors were encountered: