tutoriais:conda
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutoriais:conda [2024-04-16 19:01] – old revision restored (2024-04-16 18:54) gnann | tutoriais:conda [2024-04-16 19:33] (current) – [Torch] gnann | ||
---|---|---|---|
Line 25: | Line 25: | ||
===== Tensorflow ===== | ===== Tensorflow ===== | ||
<code bash> | <code bash> | ||
- | # python=3.9 | + | # DISCLAIMER: versão 2.4 ! |
- | conda install tensorflow-gpu numpy=1.23.4 | + | conda install tensorflow-gpu numpy=1.23 |
</ | </ | ||
<code python> | <code python> | ||
import tensorflow as tf | import tensorflow as tf | ||
- | sys_details | + | cuda_version |
- | cuda_version = sys_details[" | + | gpu = tf.test.gpu_device_name() |
- | gpu = tf.config.list_physical_devices(' | + | |
- | print(" | + | print(" |
- | print(gpu) | + | |
print(" | print(" | ||
</ | </ | ||
Line 43: | Line 41: | ||
<code bash> | <code bash> | ||
# python do sistema | # python do sistema | ||
- | conda install pytorch-gpu | + | conda install |
</ | </ | ||
+ | |||
+ | <code python> | ||
+ | import torch | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | https:// |
tutoriais/conda.1713304887.txt.gz · Last modified: 2024-04-16 19:01 by gnann