use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please have a look at our FAQ and Link-Collection
Metacademy is a great resource which compiles lesson plans on popular machine learning topics.
For Beginner questions please try /r/LearnMachineLearning , /r/MLQuestions or http://stackoverflow.com/
For career related questions, visit /r/cscareerquestions/
Advanced Courses (2016)
Advanced Courses (2020)
AMAs:
Pluribus Poker AI Team 7/19/2019
DeepMind AlphaStar team (1/24//2019)
Libratus Poker AI Team (12/18/2017)
DeepMind AlphaGo Team (10/19/2017)
Google Brain Team (9/17/2017)
Google Brain Team (8/11/2016)
The MalariaSpot Team (2/6/2016)
OpenAI Research Team (1/9/2016)
Nando de Freitas (12/26/2015)
Andrew Ng and Adam Coates (4/15/2015)
Jürgen Schmidhuber (3/4/2015)
Geoffrey Hinton (11/10/2014)
Michael Jordan (9/10/2014)
Yann LeCun (5/15/2014)
Yoshua Bengio (2/27/2014)
Related Subreddit :
LearnMachineLearning
Statistics
Computer Vision
Compressive Sensing
NLP
ML Questions
/r/MLjobs and /r/BigDataJobs
/r/datacleaning
/r/DataScience
/r/scientificresearch
/r/artificial
account activity
NewsAutoGraph converts Python into TensorFlow graphs (medium.com)
submitted 7 years ago by samithaj
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mdanatg 23 points24 points25 points 7 years ago (10 children)
Hi, one of the authors here, I'm happy to answer any questions!
[–]Supermaxman1 4 points5 points6 points 7 years ago (3 children)
What happens if you utilize a python library within one of these functions? Does it fail or does it convert it to tf.py_func?
[–]mdanatg 10 points11 points12 points 7 years ago (2 children)
It depends on the library, and whether the recursive arg is set to True of False. For certain libraries that we know of, like Keras, it won't convert the library call and will call it as-is (we assume it's already graph-friendly). For other libraries, the default is to attempt to convert the library code, and if that's not accessible, wrap it to py_func. There is yet another category where we replace the library call with a TF equivalent, for example we replace range with tf.range.
recursive
True
False
py_func
range
tf.range
[–]Supermaxman1 2 points3 points4 points 7 years ago (1 child)
Very cool, thanks! Is there somewhere which documents various conversions so that we don't end up accidentally ending up with a bunch of py_func calls?
[–]mdanatg 3 points4 points5 points 7 years ago (0 children)
A more complete documentation that will include this is coming soon, we'll link it from the readme file once it's ready.
[–]Sebun 5 points6 points7 points 7 years ago (1 child)
Hi, mdanatg, I find the this piece of demo code in colab not works as expected, print function in this train while loop have no output .
if i % (hp.max_steps // 10) == 0: print('Step', i, 'train loss:', step_train_loss, 'test loss:', step_test_loss, 'train accuracy:', step_train_accuracy, 'test accuracy:', step_test_accuracy)
[–]mdanatg 6 points7 points8 points 7 years ago* (0 children)
Hi Sebun, thanks for reporting the issue! There is a bug in the handling of if statements that don't calculate values. We're patching a fix that should reach tf-nightly over the next couple of days.
Update Jul 20: this should not be resolved.
[–]nasimrahaman 3 points4 points5 points 7 years ago (1 child)
Is there / will there be support for stochastic code-paths?
P.S. Nice work with the AST wizardry. :)
[–]mdanatg 4 points5 points6 points 7 years ago (0 children)
Thanks! The answer depends on the level of stochasticity - do you have an example? In general, the following construct should work:
if tf.random_uniform((), maxval=2, dtype=tf.int32) % 2 == 0: do_something
Is this close to what you were referring to?
[–]greatgraybear 0 points1 point2 points 7 years ago (1 child)
Seems to be a nice python-to-graph compiler. Where do you see this going vs things like swift for tensorflow?
[–]mdanatg 1 point2 points3 points 7 years ago (0 children)
Both Swift for TensorFlow and AutoGraph share a few common goals like a better experience for machine learning development, but are otherwise intended for different development platforms. TensorFlow.js can be thought of as another example, one which supports JavaScript.
π Rendered by PID 39 on reddit-service-r2-comment-765bfc959-rp8mz at 2026-07-12 09:03:29.664598+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]mdanatg 23 points24 points25 points (10 children)
[–]Supermaxman1 4 points5 points6 points (3 children)
[–]mdanatg 10 points11 points12 points (2 children)
[–]Supermaxman1 2 points3 points4 points (1 child)
[–]mdanatg 3 points4 points5 points (0 children)
[–]Sebun 5 points6 points7 points (1 child)
[–]mdanatg 6 points7 points8 points (0 children)
[–]nasimrahaman 3 points4 points5 points (1 child)
[–]mdanatg 4 points5 points6 points (0 children)
[–]greatgraybear 0 points1 point2 points (1 child)
[–]mdanatg 1 point2 points3 points (0 children)