/** Convert the given URI for a model to the file path */
g_autofree gchar *name = g_strdup (parts[MODEL_PART_IDX_NAME]);
guint version = strtoul (parts[MODEL_PART_IDX_VERSION], NULL, 10);
- g_auto (GStrv) stringfied_json;
+ g_auto (GStrv) stringfied_json = NULL;
GError *err;
gint rcode;
endif
if pytorch_support_is_available
- extensions += [['pytorch', 'torch', nnstreamer_filter_torch_deps, 'pytorch_lenet5.pt', 'pytorch']]
+ if cxx.get_id() == 'gcc'
+ extensions += [['pytorch', 'torch', nnstreamer_filter_torch_deps, 'pytorch_lenet5.pt', 'pytorch']]
+ else # Compilers is not gcc
+ warning('There are a few headers (Array.h and reverse_iterator.h) that require gcc for license issues. Disabling pytorch subplugin build')
+ endif
endif
if caffe2_support_is_available
]
toplevel_deps = [
glib_dep,
- gobject_dep
+ gobject_dep,
+ declare_dependency(compile_args : '-Wno-unused-but-set-variable')
]
toplevel = executable('nnstreamer-parser', toplevel_srcs,
dependencies: toplevel_deps,