(prefix, bsz_per_host, seq_len, bi_data, suffix,
                    mask_alpha=5, mask_beta=1, reuse_len=None, uncased=False,
                    fixed_num_predict=None)
return file_name
docs.
docs.
docs .
def format_filename(prefix, bsz_per_host, seq_len, bi_data, suffix,
                    mask_alpha=5, mask_beta=1, reuse_len=None, uncased=False,
                    fixed_num_predict=None):
  """docs."""
  if reuse_len is None:
    reuse_len_str = ""
  else:
    reuse_len_str = "reuse-{}.".format(reuse_len)
  if not uncased:
    uncased_str = ""
  else:
    uncased_str = "uncased."
  if bi_data:
    bi_data_str = "bi"
  else:
    bi_data_str = "uni"
  if fixed_num_predict is not None:
    fnp_str = "fnp-{}.".format(fixed_num_predict)
  else:
    fnp_str = ""

  #file_name = "{}.bsz-{}.seqlen-{}.{}{}{}.alpha-{}.beta-{}.{}{}".format(
  #    prefix, bsz_per_host, seq_len, reuse_len_str, uncased_str, bi_data_str,
  #    mask_alpha, mask_beta, fnp_str, suffix)
  file_name = "{}.seqlen-{}.{}{}{}.alpha-{}.beta-{}.{}{}".format(
      prefix, seq_len, reuse_len_str, uncased_str, bi_data_str,
      mask_alpha, mask_beta, fnp_str, suffix)
  # print("#####file_name:",file_name)

  return file_name
def format_filename ( prefix , bsz_per_host , seq_len , bi_data , suffix , mask_alpha = 5 , mask_beta = 1 , reuse_len = None , uncased = False , fixed_num_predict = None ) : if reuse_len is None : reuse_len_str = "" else : reuse_len_str = "reuse-{}." . format ( reuse_len ) if not uncased : uncased_str = "" else : uncased_str = "uncased." if bi_data : bi_data_str = "bi" else : bi_data_str = "uni" if fixed_num_predict is not None : fnp_str = "fnp-{}." . format ( fixed_num_predict ) else : fnp_str = "" #file_name = "{}.bsz-{}.seqlen-{}.{}{}{}.alpha-{}.beta-{}.{}{}".format( #    prefix, bsz_per_host, seq_len, reuse_len_str, uncased_str, bi_data_str, #    mask_alpha, mask_beta, fnp_str, suffix) file_name = "{}.seqlen-{}.{}{}{}.alpha-{}.beta-{}.{}{}" . format ( prefix , seq_len , reuse_len_str , uncased_str , bi_data_str , mask_alpha , mask_beta , fnp_str , suffix ) # print("#####file_name:",file_name) return file_name