资源简介
CIFAR-10图像资源,可用于初学者进行深度学习的训练,挺有用的,亲测
代码片段和文件信息
function tf = isGPUCompatible(errorForPascal)
% isGPUCompatible Check if the currently selected GPU is compatible
% tf = isGPUCompatible() will return true if the currently
% selected GPU device can be used with the Convolutional Neural Network
% feature which requires an NVIDIA GPU with compute capability 3.0
% Copyright 2016 The MathWorks Inc.
if(canUsePCT() && parallel.gpu.GPUDevice.isAvailable())
gpuInfo = gpuDevice();
tf = iComputeCapabilityIsGreaterThanOrEqualToThree(gpuInfo);
else
tf = false;
end
end
function tf = iComputeCapabilityIsGreaterThanOrEqualToThree(gpuInfo)
tf = str2double(gpuInfo.ComputeCapability) >= 3.0;
end
function tf = iComputeCapabilityIsLessThanSix(gpuInfo)
tf = str2double(gpuInfo.ComputeCapability) < 6.0;
end
function ok = canUsePCT()
%canUsePCT Check that Parallel Computing Toolbox is installed and licensed
% Checking for installation is expensive so only do it once
persistent pctInstalled;
if isempty(pctInstalled)
pctInstalled = exist(‘gpuArray‘ ‘file‘) == 2;
end
% Check the license every time as it may have changed
pctLicensed = license(‘test‘ ‘Distrib_Computing_Toolbox‘);
% Now see if everything is OK with the hardware
ok = pctInstalled && pctLicensed;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2017-02-24 04:42 bugreport\attachment_1439741_16b_win64_2017-01-26.txt
文件 60715008 2017-02-24 04:42 bin\win64\cudnn64_4.dll
文件 1249 2017-02-24 04:42 toolbox\nnet\cnn\+nnet\+internal\+cnngpu\isGPUCompatible.m
文件 1245 2017-02-24 04:42 toolbox\vision\vision\+vision\+internal\requiresCUDAComputeCapability30.m
文件 14612 2017-03-23 18:39 bugreport\license.txt
- 上一篇:head first 软件开发.pdf
- 下一篇:Hba
se权威指南(中文版)
评论
共有 条评论