Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

use pointer when load ffm model and release model with Explicit method #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Imagle
Copy link

@Imagle Imagle commented Jan 17, 2018

  1. Release model(W) not in destructor method.
  2. Not to use ffm_load_model, because this method return a object which is local variables, when it returned, it will call destructor(~ffm_model()), and W will be freed.
  3. Add a new method(ffm_load_model_ptr) which return a pointer to the model.
  4. Add a new class method of ffm_model--release, which is used to free model in explicit way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant