Skip to content

Commit

Permalink
Allow loading without a ptr parameter so that we don't break emc work…
Browse files Browse the repository at this point in the history
…flow
  • Loading branch information
XapaJIaMnu committed Mar 19, 2021
1 parent a03c245 commit 7da6392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/translator/TranslationModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class TranslationModel : public AbstractTranslationModel {
*/
/**
* @param config Marian yml config file in the form of a string
* @param model_memory byte array (aligned to 64!!!) that contains the bytes of a model.bin.
* @param model_memory optional byte array (aligned to 64!!!) that contains the bytes of a model.bin.
*/
TranslationModel(const std::string &config, const void * model_memory);
TranslationModel(const std::string &config, const void * model_memory = nullptr);

~TranslationModel();

Expand Down

0 comments on commit 7da6392

Please sign in to comment.