Keep 2 sets of API Goldens (goldens/v1 and goldens/v2).
PiperOrigin-RevId: 207781405
This commit is contained in:
parent
9b84c91b68
commit
ff8f6371d9
@ -584,6 +584,7 @@ exports_files(
|
||||
gen_api_init_files(
|
||||
name = "tensorflow_python_api_gen",
|
||||
srcs = ["api_template.__init__.py"],
|
||||
api_version = 1,
|
||||
root_init_template = "api_template.__init__.py",
|
||||
)
|
||||
|
||||
|
@ -7,6 +7,11 @@ package(
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
filegroup(
|
||||
name = "api_golden",
|
||||
srcs = glob(["*.pbtxt"]),
|
||||
name = "api_golden_v1",
|
||||
srcs = glob(["v1/*.pbtxt"]),
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "api_golden_v2",
|
||||
srcs = glob(["v1/*.pbtxt"]),
|
||||
)
|
||||
|
@ -0,0 +1,24 @@
|
||||
path: "tensorflow.ConfigProto.Experimental"
|
||||
tf_proto {
|
||||
descriptor {
|
||||
name: "Experimental"
|
||||
field {
|
||||
name: "collective_group_leader"
|
||||
number: 1
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_STRING
|
||||
}
|
||||
field {
|
||||
name: "client_handles_error_formatting"
|
||||
number: 2
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "executor_type"
|
||||
number: 3
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_STRING
|
||||
}
|
||||
}
|
||||
}
|
148
tensorflow/tools/api/golden/v1/tensorflow.-config-proto.pbtxt
Normal file
148
tensorflow/tools/api/golden/v1/tensorflow.-config-proto.pbtxt
Normal file
@ -0,0 +1,148 @@
|
||||
path: "tensorflow.ConfigProto"
|
||||
tf_proto {
|
||||
descriptor {
|
||||
name: "ConfigProto"
|
||||
field {
|
||||
name: "device_count"
|
||||
number: 1
|
||||
label: LABEL_REPEATED
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.ConfigProto.DeviceCountEntry"
|
||||
}
|
||||
field {
|
||||
name: "intra_op_parallelism_threads"
|
||||
number: 2
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_INT32
|
||||
}
|
||||
field {
|
||||
name: "inter_op_parallelism_threads"
|
||||
number: 5
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_INT32
|
||||
}
|
||||
field {
|
||||
name: "use_per_session_threads"
|
||||
number: 9
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "session_inter_op_thread_pool"
|
||||
number: 12
|
||||
label: LABEL_REPEATED
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.ThreadPoolOptionProto"
|
||||
}
|
||||
field {
|
||||
name: "placement_period"
|
||||
number: 3
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_INT32
|
||||
}
|
||||
field {
|
||||
name: "device_filters"
|
||||
number: 4
|
||||
label: LABEL_REPEATED
|
||||
type: TYPE_STRING
|
||||
}
|
||||
field {
|
||||
name: "gpu_options"
|
||||
number: 6
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.GPUOptions"
|
||||
}
|
||||
field {
|
||||
name: "allow_soft_placement"
|
||||
number: 7
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "log_device_placement"
|
||||
number: 8
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "graph_options"
|
||||
number: 10
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.GraphOptions"
|
||||
}
|
||||
field {
|
||||
name: "operation_timeout_in_ms"
|
||||
number: 11
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_INT64
|
||||
}
|
||||
field {
|
||||
name: "rpc_options"
|
||||
number: 13
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.RPCOptions"
|
||||
}
|
||||
field {
|
||||
name: "cluster_def"
|
||||
number: 14
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.ClusterDef"
|
||||
}
|
||||
field {
|
||||
name: "isolate_session_state"
|
||||
number: 15
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "experimental"
|
||||
number: 16
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_MESSAGE
|
||||
type_name: ".tensorflow.ConfigProto.Experimental"
|
||||
}
|
||||
nested_type {
|
||||
name: "DeviceCountEntry"
|
||||
field {
|
||||
name: "key"
|
||||
number: 1
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_STRING
|
||||
}
|
||||
field {
|
||||
name: "value"
|
||||
number: 2
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_INT32
|
||||
}
|
||||
options {
|
||||
map_entry: true
|
||||
}
|
||||
}
|
||||
nested_type {
|
||||
name: "Experimental"
|
||||
field {
|
||||
name: "collective_group_leader"
|
||||
number: 1
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_STRING
|
||||
}
|
||||
field {
|
||||
name: "client_handles_error_formatting"
|
||||
number: 2
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_BOOL
|
||||
}
|
||||
field {
|
||||
name: "executor_type"
|
||||
number: 3
|
||||
label: LABEL_OPTIONAL
|
||||
type: TYPE_STRING
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
path: "tensorflow.data.Iterator"
|
||||
tf_class {
|
||||
is_instance: "<class \'tensorflow.python.data.ops.iterator_ops.Iterator\'>"
|
||||
is_instance: "<class \'tensorflow.python.training.checkpointable.base.CheckpointableBase\'>"
|
||||
is_instance: "<type \'object\'>"
|
||||
member {
|
||||
name: "initializer"
|
||||
mtype: "<type \'property\'>"
|
||||
}
|
||||
member {
|
||||
name: "output_classes"
|
||||
mtype: "<type \'property\'>"
|
||||
}
|
||||
member {
|
||||
name: "output_shapes"
|
||||
mtype: "<type \'property\'>"
|
||||
}
|
||||
member {
|
||||
name: "output_types"
|
||||
mtype: "<type \'property\'>"
|
||||
}
|
||||
member_method {
|
||||
name: "__init__"
|
||||
argspec: "args=[\'self\', \'iterator_resource\', \'initializer\', \'output_types\', \'output_shapes\', \'output_classes\'], varargs=None, keywords=None, defaults=None"
|
||||
}
|
||||
member_method {
|
||||
name: "from_string_handle"
|
||||
argspec: "args=[\'string_handle\', \'output_types\', \'output_shapes\', \'output_classes\'], varargs=None, keywords=None, defaults=[\'None\', \'None\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "from_structure"
|
||||
argspec: "args=[\'output_types\', \'output_shapes\', \'shared_name\', \'output_classes\'], varargs=None, keywords=None, defaults=[\'None\', \'None\', \'None\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "get_next"
|
||||
argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "make_initializer"
|
||||
argspec: "args=[\'self\', \'dataset\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "
|
||||
}
|
||||
member_method {
|
||||
name: "string_handle"
|
||||
argspec: "args=[\'self\', \'name\'], varargs=None, keywords=None, defaults=[\'None\'], "
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user