[Solved] Keep getting a SyntaxError message in Tensorflow [closed]

That print statement will give you an error in Python 3.X because it is no longer a statement, it is a function call. print(‘{0} {1} {2} {3}’.format(step, sess.run(cost), sess.run(W), sess.run(b))) See the python documentation or here for more information. EDIT: As per late comments above, try changing xrange() to range(), since xrange does not exist … Read more

[Solved] tensorflow: Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found

I got the same error today. In previous version of tf, I need to install a Nvidia toolkit to get the file. Here is the right toolkit for the cudart64_110.dll file: https://developer.nvidia.com/cuda-11.3.0-download-archive Then just follow the installation guide. If you need more help or it doesnt work, just write it. solved tensorflow: Could not load … Read more

[Solved] Race Condition when reading from generator

I think you need to do something like this # Print out predictions y = regressor.predict(input_fn=lambda: input_fn(prediction_set)) # .predict() returns an iterator; convert to a list and print predictions predictions = list(itertools.islice(y, 6)) print(“Predictions: {}”.format(str(predictions))) I found it from the boston tutorial: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/input_fn/boston.py 0 solved Race Condition when reading from generator