Skip to content

Commit

Permalink
Merge pull request #19 from LoicGrobol/dynet-params
Browse files Browse the repository at this point in the history
Explicitly set dynet mem and seed
  • Loading branch information
mdelhoneux authored Mar 25, 2020
2 parents 78c0255 + c7d4c42 commit 9c6a7e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uuparser/parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from optparse import OptionParser, OptionGroup
from uuparser.options_manager import OptionsManager
import pickle, os, time, sys, copy, itertools, re, random
import dynet_config
from shutil import copyfile

from uuparser import utils
Expand Down Expand Up @@ -272,6 +273,7 @@ def main():

# really important to do this before anything else to make experiments reproducible
utils.set_seeds(options)
dynet_config.set(mem=options.dynet_mem, random_seed=options.dynet_seed)

om = OptionsManager(options)
experiments = om.create_experiment_list(options) # list of namedtuples
Expand Down

0 comments on commit 9c6a7e9

Please sign in to comment.