write_sequence_record

opennmt.inputters.write_sequence_record(vector, writer)[source]

Writes a sequence vector as a TFRecord.

Parameters
  • vector – A 2D Numpy float array of shape \([T, D]\).

  • writer – A tf.io.TFRecordWriter.