• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3package tensorflow;
4option cc_enable_arenas = true;
5option java_outer_classname = "ResourceHandle";
6option java_multiple_files = true;
7option java_package = "org.tensorflow.framework";
8option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framework";
9
10// Protocol buffer representing a handle to a tensorflow resource. Handles are
11// not valid across executions, but can be serialized back and forth from within
12// a single run.
13message ResourceHandleProto {
14  // Unique name for the device containing the resource.
15  string device = 1;
16
17  // Container in which this resource is placed.
18  string container = 2;
19
20  // Unique name of this resource.
21  string name = 3;
22
23  // Hash code for the type of the resource. Is only valid in the same device
24  // and in the same execution.
25  uint64 hash_code = 4;
26
27  // For debug-only, the name of the type pointed to by this handle, if
28  // available.
29  string maybe_type_name = 5;
30};
31