Skip to content

Latest commit

 

History

History
80 lines (62 loc) · 1.75 KB

File metadata and controls

80 lines (62 loc) · 1.75 KB

description: Create an expression from a 1D tensor of serialized protos.

s2t.create_expression_from_proto

View source on GitHub

Create an expression from a 1D tensor of serialized protos.

s2t.create_expression_from_proto(
    tensor_of_protos: tf.Tensor,
    desc: descriptor.Descriptor,
    message_format: str = 'binary'
) -> s2t.Expression

Args

`tensor_of_protos` 1D tensor of serialized protos.
`desc` a descriptor of protos in tensor of protos.
`message_format` Indicates the format of the protocol buffer: is one of 'text' or 'binary'.

Returns

An expression.