Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training data is never used #9

Open
GuanxiongLiu opened this issue Aug 2, 2017 · 1 comment
Open

Training data is never used #9

GuanxiongLiu opened this issue Aug 2, 2017 · 1 comment

Comments

@GuanxiongLiu
Copy link

Below is line 40 and line 45 in model.py. The is_training variable is always set to False without changing based on config.

`

self.is_training = tf.placeholder_with_default(
    tf.constant(False, dtype=tf.bool),
    shape=(), name='is_training'
)

self.enc_inputs, self.dec_targets, self.enc_seq_length, self.dec_seq_length, self.mask = 
    smart_cond(
        self.is_training,
        lambda: (inputs['train'], labels['train'], enc_seq_length['train'],
                 dec_seq_length['train'], mask['train']),
        lambda: (inputs['test'], labels['test'], enc_seq_length['test'],
                 dec_seq_length['test'], mask['test'])
    )

`

@GuanxiongLiu
Copy link
Author

Here is my temp fix in model.py. It could run with training command but I never let it finish.

`

is_training = False if config.is_train == 'False' else True
self.is_training = tf.placeholder_with_default(
    tf.constant(is_training, dtype=tf.bool),
    shape=(), name='is_training'
)

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant