Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Colab 教程
登录Google Drive以创建保存colab笔记
进入 Google Drive ;使用账号(google账号)进行登录(翻墙) https://drive.google.com/
创建文件夹及创建新的 Colab 笔记
进入Google Drive后点击新建,创建文件夹
在新建文件夹app下进行colab笔记创建;
更多中存在colab;点击colab
更多当中不存在colab;需点击关联更多应用,搜索colab进行下载安装
直接打开Colaboratory创建colab笔记
从chrome浏览器进入Colaboratory,点击左上角文件,上传和新建笔记
打开笔记后,先点击左下角按钮,后点击左上角按钮,装载 Google 云端硬盘
接下来会出现如下代码,点击运行即可,即登录Google Drive,把笔记保存在云端
出现drive表明已将文件保存
在进行工作时需要先进入对应的目录下面
colab的使用
colab的界面类似jupyter notebook,可以点击+代码来创建代码块,+文本创建md文本块 ,也可以点击下方的<>(代码段)使用第三方库,选择相应的库,点击插入即可
colab也可以进行分享和将代码保存在github上
安装GPU版本的TensorFlow及Pytorch
进入代码执行程序->更改运行时类型->在硬件加速器中选择GPU
安装TensorFlow
检查安装
检查tf版本
检查是否有GPU
查看GPU的信息
安装Pytorch
安装
检查是否安装成功
查看GPU数量
查看GPU容量