Skip to content

Is the output correct?? using python 3.6.4 #2

@WeSunniboy

Description

@WeSunniboy

` body = 'body'.encode('utf8')

title = 'title'.encode('utf8')

tf_example = example_pb2.Example()

tf_example.features.feature['article'].bytes_list.value.extend([body])

tf_example.features.feature['abstract'].bytes_list.value.extend([title])

tf_example_str = tf_example.SerializeToString()

print(tf_example_str)`

Is the output correct?

b'\n,\n\x13\n\x07article\x12\x08\n\x06\n\x04body\n\x15\n\x08abstract\x12\t\n\x07\n\x05title'
thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions