Suppress a warning message from importNetworkFromPyTorch function.
Ältere Kommentare anzeigen
Hello,
When I use importNetworkFromPyTorch() function to import a Torch neural network to MATLAB, the function always prints a warning message as below:
Warning: Network was imported as an uninitialized dlnetwork. Before using the network, initialize it with formatted dlarray(s):
% Create sample data for the network input at index 1:
dlX1 = dlarray(<dataArray1>, <missingFormat>);
% Initialize the network with formatted data:
net = initialize(net, dlX1);
I know that I need to initialize the imported network before using it, so I do not want to see the warning every time when I use the function.
However, I could not find any options in the function to suppress the printing.
Is there a way to suppress the printing?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Image Data Workflows finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!