tutoriais:conda
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutoriais:conda [2022-09-27 13:20] – [Como instalar uma versão específica do Python] gnann | tutoriais:conda [2024-04-16 19:33] (current) – [Torch] gnann | ||
---|---|---|---|
Line 22: | Line 22: | ||
conda deactivate | conda deactivate | ||
</ | </ | ||
+ | |||
+ | ===== Tensorflow ===== | ||
+ | <code bash> | ||
+ | # DISCLAIMER: versão 2.4 ! | ||
+ | conda install tensorflow-gpu numpy=1.23 | ||
+ | </ | ||
+ | |||
+ | <code python> | ||
+ | import tensorflow as tf | ||
+ | cuda_version = tf.sysconfig.get_build_info()[" | ||
+ | gpu = tf.test.gpu_device_name() | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | ===== Torch ===== | ||
+ | <code bash> | ||
+ | # python do sistema | ||
+ | conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia | ||
+ | </ | ||
+ | |||
+ | <code python> | ||
+ | import torch | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | https:// |
tutoriais/conda.1664295629.txt.gz · Last modified: 2022-09-27 13:20 by gnann