Files
MTCNN-FaceNet-light/src/pBox.cpp
ChrisKong 9951985c6b create project
create project
2019-12-25 09:36:38 +08:00

33 lines
732 B
C++
Executable File

#include"pBox.h"
void freepBox(struct pBox *pbox) {
if (pbox->pdata == NULL)cout << "pbox is NULL!" << endl;
else
free(pbox->pdata);
pbox->pdata = NULL;
delete pbox;
}
void freepRelu(struct pRelu *prelu) {
if (prelu->pdata == NULL)cout << "prelu is NULL!" << endl;
else
free(prelu->pdata);
prelu->pdata = NULL;
delete prelu;
}
void freeWeight(struct Weight *weight) {
if (weight->pdata == NULL)cout << "weight is NULL!" << endl;
else
free(weight->pdata);
weight->pdata = NULL;
delete weight;
}
void freeBN(struct BN *bn) {
if (bn->pdata == NULL)cout << "weight is NULL!" << endl;
else
free(bn->pdata);
bn->pdata = NULL;
delete bn;
}