What are the advantages of using tf.train.SequenceExample over tf.train.Example for variable length features?

后端 未结 2 1326
我在风中等你
我在风中等你 2020-12-31 17:09

Recently I read this guide on undocumented featuers in TensorFlow, as I needed to pass variable length sequences as input. However, I found the protocol for tf.train.S

2条回答
  •  长发绾君心
    2020-12-31 18:12

    The link you provided lists some benefits. You can see how parse_single_sequence_example is used here https://github.com/tensorflow/magenta/blob/master/magenta/common/sequence_example_lib.py

    If you managed to get the data into your model with Example, it should be fine. SequenceExample just gives a little more structure to your data and some utilities for working with it.

提交回复
热议问题