-
Notifications
You must be signed in to change notification settings - Fork 765
运行Faq
neiltian edited this page Mar 23, 2021
·
8 revisions
TNN支持在linux和windows上编译和运行
TNNTest的运行参数-pr设为LOW
cv::Mat cv_mat;
MatType mat_type = N8UC4; // if cv_mat.channels() == 3, then mat_type = N8UC3.
DimsVector dims = {1, cv_mat.channels(), cv_mat.rows, cv_mat.cols};
auto tnn_mat = new TNN::Mat(DeviceType, mat_type, dims, (void *)cv_mat.ptr);