Effacer les filtres
Effacer les filtres

how to pass the variable to the categoryNames in GPU coder?

1 vue (au cours des 30 derniers jours)
Liwei
Liwei le 27 Juin 2022
Modifié(e) : Liwei le 27 Juin 2022
In the main.cu file, I defined a array below. I wanted to pass a variable index to replace 0. Can you suggest how to do it?
coder::categorical out;
coder::categorical* labels_data;
labels_data = &out;
int *indx = (int*)calloc(sizeof(int),3);
targetFunction(inImg.data, &out,indx);
emxArray_char_T_1x6 label = labels_data->categoryNames.data[0].f1;

Réponses (0)

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by