Giter Club home page Giter Club logo

davian-tensorflow's Introduction

Hi there ๐Ÿ‘‹

stats

davian-tensorflow's People

Contributors

mjc92 avatar yunjey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

davian-tensorflow's Issues

Problem generate model = Convnet()

Hello,

When I get to the part of creating the model:
model = Convnet ()
I get the following error:

`ValueError Traceback (most recent call last)
in ()
----> 1 model = Convnet()

in init(self, learning_rate)
22 correct_pred = tf.equal(pred, self.targets)
23 self.accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))
---> 24 self.loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(out, self.targets))
25 self.train_op = tf.train.AdamOptimizer(self.learning_rate).minimize(self.loss)

~\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\ops\nn_ops.py in sparse_softmax_cross_entropy_with_logits(_sentinel, labels, logits, name)
2010 """
2011 _ensure_xent_args("sparse_softmax_cross_entropy_with_logits", _sentinel,
-> 2012 labels, logits)
2013
2014 # TODO(pcmurray) Raise an error when the label is not an index in

~\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\ops\nn_ops.py in _ensure_xent_args(name, sentinel, labels, logits)
1773 if sentinel is not None:
1774 raise ValueError("Only call %s with "
-> 1775 "named arguments (labels=..., logits=..., ...)" % name)
1776 if labels is None or logits is None:
1777 raise ValueError("Both labels and logits must be provided.")

ValueError: Only call sparse_softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...)`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.