dbdb99f9b37d131710a89b80ed24cf2c97d065d3,magenta/models/sketch_rnn/sketch_rnn_train.py,,load_env,#Any#Any#,71

Before Change


  Loads environment for inference mode, used in jupyter notebook.
  model_params = sketch_rnn_model.get_default_hparams()
  with tf.gfile.Open(os.path.join(model_dir, "model_config.json"), "r") as f:
    model_config = json.load(f)
    model_params.update(model_config)
  return load_dataset(data_dir, model_params, inference_mode=True)


def load_model(model_dir):

After Change


  Loads environment for inference mode, used in jupyter notebook.
  model_params = sketch_rnn_model.get_default_hparams()
  with tf.gfile.Open(os.path.join(model_dir, "model_config.json"), "r") as f:
    model_params.parse_json(f.read())
  return load_dataset(data_dir, model_params, inference_mode=True)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/magenta
Commit Name: dbdb99f9b37d131710a89b80ed24cf2c97d065d3
Time: 2017-06-15
Author: francescodelduchetto@gmail.com
File Name: magenta/models/sketch_rnn/sketch_rnn_train.py
Class Name:
Method Name: load_env


Project Name: tensorflow/magenta
Commit Name: dbdb99f9b37d131710a89b80ed24cf2c97d065d3
Time: 2017-06-15
Author: francescodelduchetto@gmail.com
File Name: magenta/models/sketch_rnn/sketch_rnn_train.py
Class Name:
Method Name: load_model


Project Name: graphbrain/graphbrain
Commit Name: b354803b038659359816213443108cf0ee18f74a
Time: 2020-01-08
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name: TxtParser
Method Name: input_file