Files
MTCNN-FaceNet-light/src/pBox.cpp
ChrisKong 729eecac2e 整理代码结构
整理代码结构

Co-Authored-By: Chris Kong <609027949@qq.com>
2019-12-28 17:48:50 +08:00

34 lines
733 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;
}