def deserialize_trained(self, input_file):
    """Restore the current value of all trainable relations from a file.

    Args:
      input_file: Filename string or FileLike object.
    """
    relation_dict = io.read_sparse_matrix_dict(input_file)
    for name, relation in relation_dict.items():
      self.set_initial_value(name, relation)
Restore the current value of all trainable relations from a file.

    Args:
      input_file: Filename string or FileLike object.
    
language/nql/nql/__init__.py