File: run_tests.m

package info (click to toggle)
caffe 1.0.0%2Bgit20180821.99bd997-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,288 kB
  • sloc: cpp: 61,586; python: 5,783; makefile: 599; sh: 559
file content (20 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function results = run_tests()
% results = run_tests()
%   run all tests in this caffe matlab wrapper package

% use CPU for testing
caffe.set_mode_cpu();

% reset caffe before testing
caffe.reset_all();

% put all test cases here
results = [...
  run(caffe.test.test_net) ...
  run(caffe.test.test_solver) ...
  run(caffe.test.test_io) ];

% reset caffe after testing
caffe.reset_all();

end