nyu-dl / dl4mt-tutorial

BSD 3-Clause "New" or "Revised" License
618 stars 249 forks source link

the value of TensorType(float32, 3D) #76

Closed hanyaqian closed 7 years ago

hanyaqian commented 7 years ago

Hi How can i print the value of emb and emb_shifted in 365 lines of lm.py? so i can clearly know what hanppened. I find the .eval() and theano.pp() do not work. this is also a bit stupid question. Thanks!

orhanf commented 7 years ago

Hi @hanyaqian, this is more related with theano, but easiest way is, returning emb and emb_shifted from build_model, and compile the theano function with these additional variables.

hanyaqian commented 7 years ago

@orhanf , I will try it, thank you very much!