Hi Fred,
I tried with different versions of Theano 0.8.2 , Theano 0.9.0 , And the
latest release. All are giving exact same error.
Traceback (most recent call last):
File "python/train.py", line 163, in <module>
train_tagger(args)
File "python/train.py", line 85, in train_tagger
model = BiLSTMTaggerModel(data, config=config)
File
"/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/tagger.py",
line 67, in __init__
self.is_train)
File
"/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
line 248, in connect
return LSTMLayer.connect(self, inputs, mask, is_train)
File
"/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
line 167, in connect
self.recurrent_dropout_layer.generate_mask([batch_size,
self.hidden_dim], is_train)
File
"/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
line 472, in generate_mask
dtype=floatX)
File
"/home/holmes/intel/intelpython2/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1392, in binomial
x = self.uniform(size=size, dtype=dtype, nstreams=nstreams)
File
"/home/holmes/intel/intelpython2/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
line 1357, in uniform
node_rstate = float32_shared_constructor(rstates)
NameError: global name 'float32_shared_constructor' is not defined
Thanks and regards,
Rakesh
On Thursday, February 1, 2018 at 9:16:49 PM UTC+5:30, nouiz wrote:
>
> Which version of Theano do you use? Updating Theano could help.
>
> Fred
>
> On Thu, Feb 1, 2018 at 1:38 AM Rakesh Malviya <[email protected]
> <javascript:>> wrote:
>
>> Hi,
>>
>> I am running theano code from following repo
>> https://github.com/luheng/deep_srl
>>
>> I am getting following error:
>> Traceback (most recent call last):
>> File "python/train.py", line 163, in <module>
>> train_tagger(args)
>> File "python/train.py", line 85, in train_tagger
>> model = BiLSTMTaggerModel(data, config=config)
>> File
>> "/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/tagger.py",
>>
>> line 67, in __init__
>> self.is_train)
>> File
>> "/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
>>
>> line 248, in connect
>> return LSTMLayer.connect(self, inputs, mask, is_train)
>> File
>> "/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
>>
>> line 167, in connect
>> self.recurrent_dropout_layer.generate_mask([batch_size,
>> self.hidden_dim], is_train)
>> File
>> "/home/holmes/rakesh_work/deepSRL/deep_srl/python/neural_srl/theano/layer.py",
>>
>> line 472, in generate_mask
>> dtype=floatX)
>> File
>> "/home/holmes/intel/intelpython2/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
>>
>> line 1392, in binomial
>> x = self.uniform(size=size, dtype=dtype, nstreams=nstreams)
>> File
>> "/home/holmes/intel/intelpython2/lib/python2.7/site-packages/theano/sandbox/rng_mrg.py",
>>
>> line 1357, in uniform
>> node_rstate = float32_shared_constructor(rstates)
>> NameError: global name 'float32_shared_constructor' is not defined
>>
>> I searched for similar issues in github and this group but no sucess.
>> Please let me know if we can solve this ?
>>
>> Thanks and regards,
>> Rakesh Malviya
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "theano-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.