| syntax = "proto2"; |
| |
| package tensorflow.core.function.trace_type.default_types; |
| |
| import "tensorflow/core/function/trace_type/serialization.proto"; |
| |
| // Represents a serialized Literal type. |
| message SerializedLiteral { |
| oneof value { |
| bool bool_value = 1; |
| int64 int_value = 2; |
| double float_value = 3; // Python "float" is double precision. |
| string str_value = 4; |
| } |
| } |
| |
| // Represents a serialized Tuple type. |
| message SerializedTuple { |
| repeated tensorflow.core.function.trace_type.serialization.SerializedTraceType |
| components = 1; |
| } |
| |
| // Represents a serialized List type. |
| message SerializedList { |
| optional SerializedTuple components_tuple = 1; |
| } |
| |
| // Represents a serialized Dict type. |
| message SerializedDict { |
| repeated SerializedLiteral keys = 1; |
| repeated tensorflow.core.function.trace_type.serialization.SerializedTraceType |
| values = 2; |
| } |
| |
| // Represents a serialized Reference type. |
| message SerializedReference { |
| optional SerializedLiteral identifier = 1; |
| optional tensorflow.core.function.trace_type.serialization.SerializedTraceType |
| base = 2; |
| } |