Skip to content
This repository was 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
Imagle wants to merge 1 commit intoycjuan:masterfrom
Imagle:master
Open

use pointer when load ffm model and release model with Explicit method #26
Imagle wants to merge 1 commit intoycjuan:masterfrom
Imagle:master

Conversation

@Imagle
Copy link
Copy Markdown

@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