I have a class Net allocated using std::shared_ptr< Net < float> > net_;
Then it gets the instance withnet_.reset(new Net("../endtoend_train.prototxt", TRAIN));`
At the end of the program, do I need to delete net_ object or should I do net_.reset();?
Or shared_ptr delete by itself at the end.
Aucun commentaire:
Enregistrer un commentaire