Coder Social home page Coder Social logo

Please document API changes about prettytensor HOT 6 CLOSED

google avatar google commented on September 26, 2024
Please document API changes

from prettytensor.

Comments (6)

puri3ume avatar puri3ume commented on September 26, 2024

I was trying to work on pretty tensor from your tutorials. I did change the softmax classifier function parameter from class_count to num_classes. but still its not working.
with pt.defaults_scope(activation_fn=tf.nn.relu): y_pred, loss = x_pretty.\ conv2d(kernel=5, depth=16, name='layer_conv1').\ max_pool(kernel=2, stride=2).\ conv2d(kernel=5, depth=36, name='layer_conv2').\ max_pool(kernel=2, stride=2).\ flatten().\ fully_connected(size=128, name='layer_fc1').\ softmax_classifier(num_classes=10, labels=y_true)

Its giving me the following issue:
image

from prettytensor.

Hvass-Labs avatar Hvass-Labs commented on September 26, 2024

@puri3ume Thanks for reporting this. It looks like it is issue #41 that is the problem. I'm just waiting for the fix to PrettyTensor so I can update the tutorials.

from prettytensor.

eiderman avatar eiderman commented on September 26, 2024

Sorry about the many API changes. I plan to have a more regular release cycle during this time of rapid TF changes and hopefully that will help fix things.

I've tried to document most of it here:
https://github.com/google/prettytensor/blob/master/CHANGELIST.md

from prettytensor.

eiderman avatar eiderman commented on September 26, 2024

@puri3ume, are you using the latest version? I've updated this recently and scalar_summary should no longer be called anywhere. If an update doesn't fix it, please create a new bug so that I can track it separately.

from prettytensor.

puri3ume avatar puri3ume commented on September 26, 2024

Thanks @eiderman @Hvass-Labs . It worked after update and num_class change in softmax .

from prettytensor.

Hvass-Labs avatar Hvass-Labs commented on September 26, 2024

Thanks for the quick update, I appreciate it!

The deprecation warnings are now gone and I have updated all my tutorials.

Tiny note: You forgot to update pt.__version__ :-)

from prettytensor.

Related Issues (20)

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.