tutoriais:conda
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutoriais:conda [2024-04-16 18:54] – [Tensorflow] gnann | tutoriais:conda [2024-04-16 19:32] – 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 44: | Line 42: | ||
# python do sistema | # python do sistema | ||
conda install pytorch-gpu | conda install pytorch-gpu | ||
+ | </ | ||
+ | |||
+ | <code python> | ||
+ | import torch | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
</ | </ |
tutoriais/conda.txt · Last modified: 2024-04-16 19:33 by gnann