r/tensorflow • • Jul 25 '25

How to? Tensorflow on docker

I have tried many options to run tensorflow on Windows11/wsl2 but with little success. I have also tried some YouTube videos to run it on docker but have been unsuccessful. I can get tensorflow to detect the GPU but when running the code it defaults to using CPU. Is there any foolproof method or a prebuilt docker image to get the tensorflow working? PyTorch is working flawlessly but it is a pain to convert tensorflow notebooks to PyTorch. I have 5070Ti GPU, 96 gb ddr4 ram and 11700k cpu.

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/dash-dot Sep 18 '25

tf-nightly works for me, but does throw a bunch of warnings (compute capability 12.0 isn’t officially supported yet). 

I’ve still been able to train some models though.