Skip to content

converted to tensorflow2 using upgrade#15

Open
nirnayroy wants to merge 1 commit into
JiahuiYu:masterfrom
nirnayroy:master
Open

converted to tensorflow2 using upgrade#15
nirnayroy wants to merge 1 commit into
JiahuiYu:masterfrom
nirnayroy:master

Conversation

@nirnayroy

Copy link
Copy Markdown

@jhagege jhagege mentioned this pull request Nov 18, 2020
Comment thread neuralgym/ops/layers.py
"""
with tf.variable_scope(name):
with tf.compat.v1.variable_scope(name):
return tf.contrib.layers.flatten(x)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AttributeError: module 'tensorflow' has no attribute 'contrib'

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

Successfully merging this pull request may close these issues.

2 participants