daanet icon indicating copy to clipboard operation
daanet copied to clipboard

ValueError: You can only pass an initializer function

Open parksunwoo opened this issue 6 years ago • 0 comments

I'm interested in dual ask-answer model too much. I weired error in below

File "/Users/sunu/IdeaProjects/QAZeroToAll/daanet/daanet/basic.py", line 169, in _embed trainable=True) File "/Users/sunu/IdeaProjects/QAZeroToAll/daanet/nlp/nn.py", line 91, in get_var regularizer=regularizer_fn, **kwargs) ... ValueError: You can only pass an initializer function that expects no arguments to its callable when the shape is not fully defined. The given initializer function expects the following args ['shape', 'dtype', 'partition_info']

I wondered why daanet / basic.py only use the get_var () method in self.char_emb

parksunwoo avatar Jan 26 '19 04:01 parksunwoo