-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
Description
When I create a model with 2 outputs:
var model = new Model(new BaseLayer[] { mainInput }, new BaseLayer[] { ph, vh });
and I want to use predict:
var outputs = model.Predict(input);
var tmp = outputs[0];
I have and exception when trying to access the first element in outputs:
Python.Runtime.PythonException : 'TypeError : list indices must be integers or slices, not tuple'
The outputs.str value is:
[array([[0.04858182, 0.02549346, 0.04383887, 0.07485574, 0.08390558,
0.01660796, 0.02462194, 0.02408224, 0.08508438, 0.0349065 ,
0.03103675, 0.10075846, 0.01927384, 0.02810584, 0.06927238,
0.01279816, 0.02566949, 0.1094867 , 0.0269268 , 0.02743391,
0.04374657, 0.04351271]], dtype=float32), array([[0.49687997]], dtype=float32)]
I suppose there is a bug because of the "array" keyword in that string?
Or maybe I so something wrong here?
PS: When I create a model with only one output, I have no problem to access the data with predict