Skip to content

AttributeError: 'module' object has no attribute 'pack' #4

Description

@rasoolims

Hi,

In my first attempt to train a parser with your code, I faced the following problem (my Tf version is 1.3.0):

Traceback (most recent call last):
  File "network.py", line 372, in <module>
    network = Network(model, **cargs)
  File "network.py", line 77, in __init__
    self._ops = self._gen_ops()
  File "network.py", line 302, in _gen_ops
    train_output = self._model(self._trainset)
  File "/proj/mlnlp/rasooli/tools/dozat_parser/Parser/lib/models/parsers/parser.py", line 39, in __call__
    embed_inputs = self.embed_concat(word_inputs, tag_inputs)
  File "/proj/mlnlp/rasooli/tools/dozat_parser/Parser/lib/models/nn.py", line 65, in embed_concat
    noise_shape = tf.pack([tf.shape(word_inputs)[0], tf.shape(word_inputs)[1], 1])
AttributeError: 'module' object has no attribute 'pack'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions