asyml / asyml/texar

ImportError: No module named 'texar.tf'

Open
#279 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
2.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

There is an error when using tx.modules.TransformerEncoder to pass hparams!How to deal with it?

Traceback (most recent call last):
File "/home/twjing/PycharmProjects/infilling/Text_Infilling-master/seq2seq.py", line 34, in
import seq2seq_hyperparams
File "/home/twjing/PycharmProjects/infilling/Text_Infilling-master/seq2seq_hyperparams.py", line 10, in
from texar.tf.modules import default_transformer_poswise_net_hparams
ImportError: No module named 'texar.tf'

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the imports in seq2seq.py and seq2seq_hyperparams.py, especially the texar.tf.modules import and the TransformerEncoder hparams usage. Reproduce the ImportError in the reported environment and check the installed Texar package and version. Done means the import works and TransformerEncoder can receive the requested hparams without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.