File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,13 @@ static void write_mean(MEX_ARGS) {
504
504
mxFree (mean_proto_file);
505
505
}
506
506
507
+ // Usage: caffe_('version')
508
+ static void version (MEX_ARGS) {
509
+ mxCHECK (nrhs == 0 , " Usage: caffe_('version')" );
510
+ // Return version string
511
+ plhs[0 ] = mxCreateString (AS_STRING (CAFFE_VERSION));
512
+ }
513
+
507
514
/* * -----------------------------------------------------------------
508
515
** Available commands.
509
516
**/
@@ -542,6 +549,7 @@ static handler_registry handlers[] = {
542
549
{ " reset" , reset },
543
550
{ " read_mean" , read_mean },
544
551
{ " write_mean" , write_mean },
552
+ { " version" , version },
545
553
// The end.
546
554
{ " END" , NULL },
547
555
};
Original file line number Diff line number Diff line change
1
+ function version_str = version()
2
+ % version()
3
+ % show Caffe's version.
4
+
5
+ version_str = caffe_(' version' );
6
+
7
+ end
You can’t perform that action at this time.
0 commit comments