Effacer les filtres
Effacer les filtres

deep network quantizer does not work

2 vues (au cours des 30 derniers jours)
Kaijiun Yang
Kaijiun Yang le 18 Août 2020
Commenté : Ali Al-Saegh le 3 Fév 2021
Hi,
I have istalled the add-on and the required toolbox. However, when I hit "New" in Deep Network Quantizer, I get the error message "Deep Network Quantizer requires a GPU execution environment. How to fix it?
I'm using Matlab 2020a. This is my GPU settings:
>> gpuDevice
ans =
CUDADevice with properties:
Name: 'GeForce GTX 1070'
Index: 1
ComputeCapability: '6.1'
SupportsDouble: 1
DriverVersion: 11
ToolkitVersion: 10.1000
MaxThreadsPerBlock: 1024
MaxShmemPerBlock: 49152
MaxThreadBlockSize: [1024 1024 64]
MaxGridSize: [2.1475e+09 65535 65535]
SIMDWidth: 32
TotalMemory: 8.5899e+09
AvailableMemory: 7.0146e+09
MultiprocessorCount: 16
ClockRateKHz: 1645000
ComputeMode: 'Default'
GPUOverlapsTransfers: 1
KernelExecutionTimeout: 1
CanMapHostMemory: 1
DeviceSupported: 1
DeviceSelected: 1

Réponse acceptée

Raymond Norris
Raymond Norris le 19 Août 2020
Hi Kaijiun,
Looks like you have the right ComputeCapability (6.1). Just a quick check: in addition to the Deep Learning Toolbox Model Quantization Library support package, you also have the GPU Coder Interface for Deep Learning Libraries support package installed as well, is that right?
If so, I would suggest reaching out to Technical Support (support@mathworks.com) to have them troubleshoot this.
Raymond
  2 commentaires
Kaijiun Yang
Kaijiun Yang le 21 Août 2020
Hi, Mr. Norris,
Thanks for your help.
Yes, I have both libraries installed. However, the problem is as I've stated.
I'll write the mail for further help.
Ali Al-Saegh
Ali Al-Saegh le 3 Fév 2021

Connectez-vous pour commenter.

Plus de réponses (1)

ikeuwanuakwa
ikeuwanuakwa le 19 Oct 2020
I have a different problem, this line of code is given error
quantOpts = dlquantizationOptions('MetricFcn', ...
{@(x)hComputeModelAccuracy(x, net, aug_valData)});
calResults = calibrate(quantObj, aug_calData)
valResults = validate(quantObj, aug_valData, quantOpts)
valResults.MetricResults.Result
Error
Function definitions in a script must appear at the end of the file.
Move all statements after the "hComputeModelAccuracy" function definition to before the first local function
definition.

Catégories

En savoir plus sur Get Started with GPU Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by