当前位置:网站首页>pytorch指定GPU
pytorch指定GPU
2022-08-09 07:09:00 【代码的路】
1直接终端中设定:
CUDA_VISIBLE_DEVICES=1 python main.py
2 python代码中设定:
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0,1"
学习更多编程知识,请关注我的公众号:
边栏推荐
猜你喜欢
Unity first lesson
ByteDance Interview Questions: Mirror Binary Tree 2020
DSP+ARM+FPGA高速PCIE/千兆网口信号仿真介绍
【Template】Tree Chain Segmentation P3384
Altium designer software commonly used the most complete package library, including schematic library, PCB library and 3D model library
子路由及路由出口配置
Quectel EC20 4G module dial related
细谈VR全景:数字营销时代的宠儿
jmeter并发数量以及压力机的一些限制
虚拟机网卡报错:Bringing up interface eth0: Error: No suitable device found: no device found for connection
随机推荐
Colors that Tkinter can choose from
P1505 [National Training Team] Tourism Tree Chain Breakdown
AD picture PCB tutorial 20 minutes clear label shop operation process, copper network
HDU - 3183 A Magic Lamp 线段树
MUI无法滚动?完美解决
更改Jupyter Notebook默认打开目录
Change Jupyter Notebook default open directory
vim 程序编辑器的基本操作(积累)
Thread Pool Summary
MUV LUV EXTRA 2019CCPC秦皇岛站J题 KMP
【Template】Tree Chain Segmentation P3384
Lottie系列二:高级属性
Lottie系列三 :原理分析
【Reprint】Deep Learning (deep learning) study notes arrangement
找出数组中不重复的值php
MongDb query method
灵活好用的sql monitoring 脚本 part7
当酷雷曼VR直播遇上视频号,会摩擦出怎样的火花?
SIGINT, SIGKILL, SIGTERM signal difference, summary of various signals
makefile记录