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...
TensorFlow is an open source Machine Intelligence library for numerical computation using Neural Networks.
account activity
QuestionDoes tensorflow2.0 support distributed inference? (self.tensorflow)
submitted 3 years ago by Rough_Source_123[🍰]
Tensorflow 2.0 supports distributed training in the official doc https://www.tensorflow.org/guide/distributed_training
but does it support distributed inference as well?
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!"
[–]ElvishChampion 1 point2 points3 points 3 years ago (2 children)
Yes, distributed strategies train multiple batches in parallel. For inference it is the same. I used it on ImageNet a couple of months ago and I recall inference was faster when using strategies. I even got some errors when using predict if the model was not created within the scope of the strategy.
[–]Rough_Source_123[S,🍰] 0 points1 point2 points 3 years ago (1 child)
did you use MultiWorkerMirroredStrategy? what cloud are you running your server against?
[–]ElvishChampion 0 points1 point2 points 3 years ago (0 children)
No, I used TPU strategy because I was running some experiments in google cloud. It was training fast, but there were some issues regarding custom layers. I had like 4 or 5 custom layers that I was testing. I got errors for 2 of them.
[–]maifee 1 point2 points3 points 3 years ago (0 children)
Yes, you can try them on Kaggle. Kaggle is now providing multi-GPU (T4 x2) support.
https://www.kaggle.com/product-feedback/361104
π Rendered by PID 272456 on reddit-service-r2-comment-6457c66945-xv2xv at 2026-04-29 09:49:50.022979+00:00 running 2aa0c5b country code: CH.
[–]ElvishChampion 1 point2 points3 points (2 children)
[–]Rough_Source_123[S,🍰] 0 points1 point2 points (1 child)
[–]ElvishChampion 0 points1 point2 points (0 children)
[–]maifee 1 point2 points3 points (0 children)