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

compatible to tensorflow v1.4.0 #1

Open
neuhzhj2012 opened this issue Jan 24, 2018 · 0 comments
Open

compatible to tensorflow v1.4.0 #1

neuhzhj2012 opened this issue Jan 24, 2018 · 0 comments

Comments

@neuhzhj2012
Copy link

neuhzhj2012 commented Jan 24, 2018

modify two tensorflow functions:
------label_split = tf.split( 1, 2, self.y_ )
+++label_split = tf.split( self.y_, 2, 1 )
------score_split = tf.split( 1, 2, self.score_ )
+++score_split = tf.split( self.score_, 2, 1 )

----total += tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits( score_split[i] ,label_split[i] ))
+++total += tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits= score_split[i] ,labels= label_split[i] ))

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