parameters: (hparams)
docstring: Gets the thm_embedding of '' for histdependent experiments.
docstring_summary: Gets the thm_embedding of '' for histdependent experiments.
docstring_tokens: Gets the thm_embedding of for histdependent experiments .
function: def get_empty_string_thm_emb(hparams):
    """Gets the thm_embedding of '' for histdependent experiments."""
    filepath = os.path.join(hparams.dataset_dir, hparams.thm_asmpt_list_file)
    for serialized_example in tf.compat.v1.io.tf_record_iterator(filepath):
      example = tf.train.Example()
      example.ParseFromString(serialized_example)
      thm_embedding = example.features.feature['thm_embedding'].float_list.value
      # First record belongs to the empty string, return
      return np.array(thm_embedding, dtype=np.float32)
function_tokens: def get_empty_string_thm_emb ( hparams ) : filepath = os . path . join ( hparams . dataset_dir , hparams . thm_asmpt_list_file ) for serialized_example in tf . compat . v1 . io . tf_record_iterator ( filepath ) : example = tf . train . Example ( ) example . ParseFromString ( serialized_example ) thm_embedding = example . features . feature [ 'thm_embedding' ] . float_list . value # First record belongs to the empty string, return return np . array ( thm_embedding , dtype = np . float32 )