package tensorflow

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AssetFileDef

meta_graph.proto:285

An asset file def for a single file or a set of sharded files with the same name.

Used in: MetaGraphDef

message AttrValue

attr_value.proto:16

Protocol buffer representing the value for an attr used to configure an Op. Comment indicates the corresponding attr type. Only the field matching the attr type may be filled.

Used in: FunctionDef, NameAttrList, NodeDef, OpDef.AttrDef

message AttrValue.ListValue

attr_value.proto:18

LINT.IfChange

Used in: AttrValue

message BytesList

feature.proto:65

Containers to hold repeated fundamental values.

Used in: Feature

message CollectionDef

meta_graph.proto:147

CollectionDef should cover most collections. To add a user-defined collection, do one of the following: 1. For simple data types, such as string, int, float: tf.add_to_collection("your_collection_name", your_simple_value) strings will be stored as bytes_list. 2. For Protobuf types, there are three ways to add them: 1) tf.add_to_collection("your_collection_name", your_proto.SerializeToString()) collection_def { key: "user_defined_bytes_collection" value { bytes_list { value: "queue_name: \"test_queue\"\n" } } } or 2) tf.add_to_collection("your_collection_name", str(your_proto)) collection_def { key: "user_defined_string_collection" value { bytes_list { value: "\n\ntest_queue" } } } or 3) any_buf = any_pb2.Any() tf.add_to_collection("your_collection_name", any_buf.Pack(your_proto)) collection_def { key: "user_defined_any_collection" value { any_list { value { type_url: "type.googleapis.com/tensorflow.QueueRunnerDef" value: "\n\ntest_queue" } } } } 3. For Python objects, implement to_proto() and from_proto(), and register them in the following manner: ops.register_proto_function("your_collection_name", proto_type, to_proto=YourPythonObject.to_proto, from_proto=YourPythonObject.from_proto) These functions will be invoked to serialize and de-serialize the collection. For example, ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES, proto_type=variable_pb2.VariableDef, to_proto=Variable.to_proto, from_proto=Variable.from_proto)

Used in: MetaGraphDef

message CollectionDef.AnyList

meta_graph.proto:190

AnyList is used for collecting Any protos.

Used in: CollectionDef

message CollectionDef.BytesList

meta_graph.proto:175

BytesList is used for collecting strings and serialized protobufs. For example: collection_def { key: "trainable_variables" value { bytes_list { value: "\n\017conv1/weights:0\022\024conv1/weights/Assign \032\024conv1/weights/read:0" value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032 \023conv1/biases/read:0" } } }

Used in: CollectionDef

message CollectionDef.FloatList

meta_graph.proto:185

FloatList is used for collecting float values.

Used in: CollectionDef

message CollectionDef.Int64List

meta_graph.proto:180

Int64List is used for collecting int, int64 and long values.

Used in: CollectionDef

message CollectionDef.NodeList

meta_graph.proto:158

NodeList is used for collecting nodes in graph. For example collection_def { key: "summaries" value { node_list { value: "input_producer/ScalarSummary:0" value: "shuffle_batch/ScalarSummary:0" value: "ImageSummary:0" } }

Used in: CollectionDef

enum DataType

types.proto:10

LINT.IfChange

Used in: AttrValue, AttrValue.ListValue, OpDef.ArgDef, TensorInfo, TensorProto

message Example

example.proto:88

Used in: serving.ExampleList, serving.ExampleListWithContext

message Feature

feature.proto:76

Containers for non-sequential data.

Used in: FeatureList, Features

message FeatureList

feature.proto:98

Containers for sequential data. A FeatureList contains lists of Features. These may hold zero or more Feature values. FeatureLists are organized into categories by name. The FeatureLists message contains the mapping from name to FeatureList.

Used in: FeatureLists

message FeatureLists

feature.proto:102

Used in: SequenceExample

message Features

feature.proto:85

Used in: Example, SequenceExample

message FloatList

feature.proto:68

Used in: Feature

message FunctionDef

function.proto:25

A function can be instantiated when the runtime can bind every attr with a value. When a GraphDef has a call to a function, it must have binding for every attr defined in the signature. TODO(zhifengc): * device spec, etc.

Used in: FunctionDefLibrary

message FunctionDefLibrary

function.proto:14

A library is a set of named functions.

Used in: GraphDef

message GradientDef

function.proto:98

GradientDef defines the gradient function of a function defined in a function library. A gradient function g (specified by gradient_func) for a function f (specified by function_name) must follow the following: The function 'f' must be a numerical function which takes N inputs and produces M outputs. Its gradient function 'g', which is a function taking N + M inputs and produces N outputs. I.e. if we have (y1, y2, ..., y_M) = f(x1, x2, ..., x_N), then, g is (dL/dx1, dL/dx2, ..., dL/dx_N) = g(x1, x2, ..., x_N, dL/dy1, dL/dy2, ..., dL/dy_M), where L is a scalar-value function of (x1, x2, ..., xN) (e.g., the loss function). dL/dx_i is the partial derivative of L with respect to x_i.

Used in: FunctionDefLibrary

message GraphDef

graph.proto:14

Represents the graph of operations

Used in: MetaGraphDef

message Int64List

feature.proto:71

Used in: Feature

message MetaGraphDef

meta_graph.proto:31

NOTE: This protocol buffer is evolving, and will go through revisions in the coming months. Protocol buffer containing the following which are necessary to restart training, run inference. It can be used to serialize/de-serialize memory objects necessary for running computation in a graph when crossing the process boundary. It can be used for long term storage of graphs, cross-language execution of graphs, etc. MetaInfoDef GraphDef SaverDef CollectionDef TensorInfo SignatureDef

message MetaGraphDef.MetaInfoDef

meta_graph.proto:34

Meta information regarding the graph to be exported. To be used by users of this protocol buffer to encode information regarding their meta graph.

Used in: MetaGraphDef

message NameAttrList

attr_value.proto:59

A list of attr names and their values. The whole list is attached with a string name. E.g., MatMul[T=float].

Used in: AttrValue, AttrValue.ListValue

message NodeDef

node_def.proto:11

Used in: FunctionDef, GraphDef

message OpDef

op_def.proto:14

Defines an operation. A NodeDef in a GraphDef specifies an Op by using the "op" field which should match the name of a OpDef.

Used in: FunctionDef, OpList

message OpDef.ArgDef

op_def.proto:20

For describing inputs and outputs.

Used in: OpDef

message OpDef.AttrDef

op_def.proto:59

Description of the graph-construction-time configuration of this Op. That is to say, this describes the attr fields that will be specified in the NodeDef.

Used in: OpDef

message OpDeprecation

op_def.proto:146

Information about version-dependent deprecation of an op

Used in: OpDef

message OpList

op_def.proto:155

A collection of OpDefs

Used in: MetaGraphDef.MetaInfoDef

message ResourceHandle

resource_handle.proto:12

Protocol buffer representing a handle to a tensorflow resource. Handles are not valid across executions, but can be serialized back and forth from within a single run.

Used in: TensorProto

message SaverDef

saver.proto:10

Protocol buffer representing the configuration of a Saver.

Used in: MetaGraphDef

enum SaverDef.CheckpointFormatVersion

saver.proto:37

A version number that identifies a different on-disk checkpoint format. Usually, each subclass of BaseSaverBuilder works with a particular version/format. However, it is possible that the same builder may be upgraded to support a newer checkpoint format in the future.

Used in: SaverDef

message SequenceExample

example.proto:292

message SignatureDef

meta_graph.proto:267

SignatureDef defines the signature of a computation supported by a TensorFlow graph. For example, a model with two loss computations, sharing a single input, might have the following signature_def map. Note that across the two SignatureDefs "loss_A" and "loss_B", the input key, output key, and method_name are identical, and will be used by system(s) that implement or rely upon this particular loss method. The output tensor names differ, demonstrating how different outputs can exist for the same method. signature_def { key: "loss_A" value { inputs { key: "input" value { name: "input:0" dtype: DT_STRING tensor_shape: ... } } outputs { key: "loss_output" value { name: "loss_output_A:0" dtype: DT_FLOAT tensor_shape: ... } } } ... method_name: "some/package/compute_loss" } signature_def { key: "loss_B" value { inputs { key: "input" value { name: "input:0" dtype: DT_STRING tensor_shape: ... } } outputs { key: "loss_output" value { name: "loss_output_B:0" dtype: DT_FLOAT tensor_shape: ... } } } ... method_name: "some/package/compute_loss" }

Used in: MetaGraphDef, serving.SignatureDefMap

message TensorInfo

meta_graph.proto:204

Information about a Tensor necessary for feeding or retrieval.

Used in: AssetFileDef, SignatureDef

message TensorProto

tensor.proto:14

Protocol buffer representing a tensor.

Used in: AttrValue, AttrValue.ListValue, serving.PredictRequest, serving.PredictResponse

message TensorShapeProto

tensor_shape.proto:12

Dimensions of a tensor.

Used in: AttrValue, AttrValue.ListValue, TensorInfo, TensorProto

message TensorShapeProto.Dim

tensor_shape.proto:14

One dimension of the tensor.

Used in: TensorShapeProto

message VersionDef

versions.proto:22

Version information for a piece of serialized data There are different types of versions for each type of data (GraphDef, etc.), but they all have the same common shape described here. Each consumer has "consumer" and "min_producer" versions (specified elsewhere). A consumer is allowed to consume this data if producer >= min_producer consumer >= min_consumer consumer not in bad_consumers

Used in: GraphDef