While trying to create model, it gives an error like 'TypeError: Outputs must be theano Variable or Out instances. Received convolution2d_4_W of type <class 'theano.tensor.sharedvar.TensorSharedVariable'>'
TypeError Traceback (most recent call last)
in ()
----> 1 model = ml_net_model( img_rows=480,img_cols=640,downsampling_factor_product=10)
9 frames
/usr/local/lib/python3.7/dist-packages/theano/compile/function/pfunc.py in rebuild_collect_shared(outputs, inputs, replace, updates, rebuild_strict, copy_inputs_over, no_default_updates)
225 raise TypeError(
226 "Outputs must be theano Variable or "
--> 227 "Out instances. Received " + str(v) + " of type " + str(type(v))
228 )
229 # computed_list.append(cloned_v)
TypeError: Outputs must be theano Variable or Out instances. Received convolution2d_4_W of type
Can someone help me in fixing this issue??
While trying to create model, it gives an error like 'TypeError: Outputs must be theano Variable or Out instances. Received convolution2d_4_W of type <class 'theano.tensor.sharedvar.TensorSharedVariable'>'
TypeError Traceback (most recent call last)