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

NameError: name 'norm_sum' is not defined #3

Open
matthew-mcateer opened this issue Jan 23, 2020 · 1 comment
Open

NameError: name 'norm_sum' is not defined #3

matthew-mcateer opened this issue Jan 23, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@matthew-mcateer
Copy link
Collaborator

When running the notebook FFNNBidding.ipynb, the last cell returns the following error:

WARNING:tensorflow:From /content/utils.py:89: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-8-66fff74d63d6> in <module>()
     16 session = tf.Session(graph=graph)
     17 with graph.as_default():
---> 18     train_step, metrics = model_fn(hparams)
     19     session.run(tf.global_variables_initializer())
     20 

<ipython-input-7-0106af30ba7a> in model_fn(hparams)
     36     accuracy = tf.reduce_mean(tf.cast(correct, tf.float32))
     37 
---> 38     full_loss = loss + (hparams.alpha * norm_sum)
     39 
     40     train_step = tf.train.AdamOptimizer(hparams.learning_rate).minimize(full_loss)

NameError: name 'norm_sum' is not defined
@matthew-mcateer matthew-mcateer added the bug Something isn't working label Jan 23, 2020
@unconst
Copy link
Owner

unconst commented Jan 23, 2020

These other tests need a lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants