tensorflow-ruby 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +18 -0
- data/LICENSE.txt +22 -0
- data/README.md +104 -0
- data/lib/datasets/download_manager.rb +49 -0
- data/lib/datasets/images/mnist.rb +54 -0
- data/lib/datasets/resource.rb +19 -0
- data/lib/tensorflow-ruby.rb +182 -0
- data/lib/tensorflow.rb +1 -0
- data/lib/tensorflow/batchable_type_spec.rb +4 -0
- data/lib/tensorflow/core/framework/allocation_description_pb.rb +21 -0
- data/lib/tensorflow/core/framework/api_def_pb.rb +59 -0
- data/lib/tensorflow/core/framework/attr_value_pb.rb +46 -0
- data/lib/tensorflow/core/framework/cost_graph_pb.rb +49 -0
- data/lib/tensorflow/core/framework/device_attributes_pb.rb +37 -0
- data/lib/tensorflow/core/framework/function_pb.rb +38 -0
- data/lib/tensorflow/core/framework/graph_pb.rb +22 -0
- data/lib/tensorflow/core/framework/graph_transfer_info_pb.rb +73 -0
- data/lib/tensorflow/core/framework/kernel_def_pb.rb +31 -0
- data/lib/tensorflow/core/framework/log_memory_pb.rb +53 -0
- data/lib/tensorflow/core/framework/node_def_pb.rb +27 -0
- data/lib/tensorflow/core/framework/op_def_pb.rb +58 -0
- data/lib/tensorflow/core/framework/reader_base_pb.rb +19 -0
- data/lib/tensorflow/core/framework/remote_fused_graph_execute_info_pb.rb +30 -0
- data/lib/tensorflow/core/framework/resource_handle_pb.rb +28 -0
- data/lib/tensorflow/core/framework/step_stats_pb.rb +72 -0
- data/lib/tensorflow/core/framework/summary_pb.rb +71 -0
- data/lib/tensorflow/core/framework/tensor_description_pb.rb +21 -0
- data/lib/tensorflow/core/framework/tensor_pb.rb +41 -0
- data/lib/tensorflow/core/framework/tensor_shape_pb.rb +22 -0
- data/lib/tensorflow/core/framework/tensor_slice_pb.rb +23 -0
- data/lib/tensorflow/core/framework/types_pb.rb +62 -0
- data/lib/tensorflow/core/framework/variable_pb.rb +45 -0
- data/lib/tensorflow/core/framework/versions_pb.rb +18 -0
- data/lib/tensorflow/core/lib/core/error_codes_pb.rb +35 -0
- data/lib/tensorflow/core/protobuf/cluster_pb.rb +21 -0
- data/lib/tensorflow/core/protobuf/config_pb.rb +180 -0
- data/lib/tensorflow/core/protobuf/control_flow_pb.rb +48 -0
- data/lib/tensorflow/core/protobuf/conv_autotuning_pb.rb +29 -0
- data/lib/tensorflow/core/protobuf/critical_section_pb.rb +21 -0
- data/lib/tensorflow/core/protobuf/debug_pb.rb +38 -0
- data/lib/tensorflow/core/protobuf/device_properties_pb.rb +33 -0
- data/lib/tensorflow/core/protobuf/eager_service_pb.rb +112 -0
- data/lib/tensorflow/core/protobuf/graph_debug_info_pb.rb +29 -0
- data/lib/tensorflow/core/protobuf/master_pb.rb +123 -0
- data/lib/tensorflow/core/protobuf/master_service_pb.rb +15 -0
- data/lib/tensorflow/core/protobuf/meta_graph_pb.rb +95 -0
- data/lib/tensorflow/core/protobuf/named_tensor_pb.rb +18 -0
- data/lib/tensorflow/core/protobuf/queue_runner_pb.rb +21 -0
- data/lib/tensorflow/core/protobuf/replay_log_pb.rb +48 -0
- data/lib/tensorflow/core/protobuf/rewriter_config_pb.rb +81 -0
- data/lib/tensorflow/core/protobuf/saved_model_pb.rb +18 -0
- data/lib/tensorflow/core/protobuf/saved_object_graph_pb.rb +87 -0
- data/lib/tensorflow/core/protobuf/saver_pb.rb +28 -0
- data/lib/tensorflow/core/protobuf/struct_pb.rb +81 -0
- data/lib/tensorflow/core/protobuf/tensor_bundle_pb.rb +37 -0
- data/lib/tensorflow/core/protobuf/tensorflow_server_pb.rb +22 -0
- data/lib/tensorflow/core/protobuf/trace_events_pb.rb +39 -0
- data/lib/tensorflow/core/protobuf/trackable_object_graph_pb.rb +40 -0
- data/lib/tensorflow/core/protobuf/transport_options_pb.rb +16 -0
- data/lib/tensorflow/core/protobuf/verifier_config_pb.rb +23 -0
- data/lib/tensorflow/core/protobuf/worker_pb.rb +246 -0
- data/lib/tensorflow/core/protobuf/worker_service_pb.rb +15 -0
- data/lib/tensorflow/core/util/event_pb.rb +93 -0
- data/lib/tensorflow/core/util/memmapped_file_system_pb.rb +22 -0
- data/lib/tensorflow/core/util/saved_tensor_slice_pb.rb +40 -0
- data/lib/tensorflow/data/batch_dataset.rb +18 -0
- data/lib/tensorflow/data/dataset.rb +106 -0
- data/lib/tensorflow/data/fixed_length_record_dataset.rb +27 -0
- data/lib/tensorflow/data/iterator.rb +76 -0
- data/lib/tensorflow/data/map_dataset.rb +17 -0
- data/lib/tensorflow/data/repeat_dataset.rb +16 -0
- data/lib/tensorflow/data/shuffle_dataset.rb +23 -0
- data/lib/tensorflow/data/tensor_dataset.rb +19 -0
- data/lib/tensorflow/data/tensor_slice_dataset.rb +15 -0
- data/lib/tensorflow/data/tf_record_dataset.rb +18 -0
- data/lib/tensorflow/data/zip_dataset.rb +24 -0
- data/lib/tensorflow/decorators.rb +53 -0
- data/lib/tensorflow/eager/context.rb +120 -0
- data/lib/tensorflow/eager/operation.rb +219 -0
- data/lib/tensorflow/eager/tensor_handle.rb +87 -0
- data/lib/tensorflow/error.rb +54 -0
- data/lib/tensorflow/execution_context.rb +62 -0
- data/lib/tensorflow/extensions/arg_def.rb +58 -0
- data/lib/tensorflow/extensions/array.rb +17 -0
- data/lib/tensorflow/extensions/boolean.rb +25 -0
- data/lib/tensorflow/extensions/narray.rb +7 -0
- data/lib/tensorflow/ffi.rb +291 -0
- data/lib/tensorflow/graph/function.rb +33 -0
- data/lib/tensorflow/graph/function_def.rb +62 -0
- data/lib/tensorflow/graph/gradients.rb +120 -0
- data/lib/tensorflow/graph/graph.rb +252 -0
- data/lib/tensorflow/graph/graph_def_options.rb +24 -0
- data/lib/tensorflow/graph/graph_keys.rb +50 -0
- data/lib/tensorflow/graph/operation.rb +176 -0
- data/lib/tensorflow/graph/operation_attr.rb +153 -0
- data/lib/tensorflow/graph/operation_description.rb +255 -0
- data/lib/tensorflow/graph/operation_output.rb +49 -0
- data/lib/tensorflow/graph/session.rb +156 -0
- data/lib/tensorflow/keras/datasets/boston_housing.rb +32 -0
- data/lib/tensorflow/keras/datasets/cifar10.rb +11 -0
- data/lib/tensorflow/keras/datasets/cifar100.rb +11 -0
- data/lib/tensorflow/keras/datasets/fashion_mnist.rb +44 -0
- data/lib/tensorflow/keras/datasets/imdb.rb +30 -0
- data/lib/tensorflow/keras/datasets/mnist.rb +18 -0
- data/lib/tensorflow/keras/datasets/reuters.rb +28 -0
- data/lib/tensorflow/keras/layers/conv.rb +14 -0
- data/lib/tensorflow/keras/layers/conv2d.rb +11 -0
- data/lib/tensorflow/keras/layers/dense.rb +68 -0
- data/lib/tensorflow/keras/layers/dropout.rb +27 -0
- data/lib/tensorflow/keras/layers/flatten.rb +25 -0
- data/lib/tensorflow/keras/losses/sparse_categorical_crossentropy.rb +14 -0
- data/lib/tensorflow/keras/metrics/mean.rb +30 -0
- data/lib/tensorflow/keras/metrics/sparse_categorical_accuracy.rb +17 -0
- data/lib/tensorflow/keras/model.rb +6 -0
- data/lib/tensorflow/keras/models/sequential.rb +56 -0
- data/lib/tensorflow/keras/optimizers/adam.rb +8 -0
- data/lib/tensorflow/keras/preprocessing/image.rb +22 -0
- data/lib/tensorflow/keras/utils.rb +83 -0
- data/lib/tensorflow/name_scope.rb +57 -0
- data/lib/tensorflow/op_def_builder.rb +49 -0
- data/lib/tensorflow/ops/audio.rb +13 -0
- data/lib/tensorflow/ops/bitwise.rb +29 -0
- data/lib/tensorflow/ops/control.rb +13 -0
- data/lib/tensorflow/ops/gradients.rb +21 -0
- data/lib/tensorflow/ops/image.rb +218 -0
- data/lib/tensorflow/ops/io.rb +123 -0
- data/lib/tensorflow/ops/linalg.rb +131 -0
- data/lib/tensorflow/ops/math.rb +493 -0
- data/lib/tensorflow/ops/nn.rb +286 -0
- data/lib/tensorflow/ops/operators.rb +31 -0
- data/lib/tensorflow/ops/ops.rb +102 -0
- data/lib/tensorflow/ops/random.rb +18 -0
- data/lib/tensorflow/ops/raw_ops.rb +5179 -0
- data/lib/tensorflow/ops/raw_ops.rb.erb +38 -0
- data/lib/tensorflow/printers/graph.erb +80 -0
- data/lib/tensorflow/printers/graph.rb +26 -0
- data/lib/tensorflow/printers/graph_def.erb +109 -0
- data/lib/tensorflow/printers/graph_def.rb +26 -0
- data/lib/tensorflow/python_compatiblity.rb +55 -0
- data/lib/tensorflow/resource_summary_writer.rb +78 -0
- data/lib/tensorflow/status.rb +49 -0
- data/lib/tensorflow/stream_executor/dnn_pb.rb +90 -0
- data/lib/tensorflow/strings.rb +100 -0
- data/lib/tensorflow/summary.rb +13 -0
- data/lib/tensorflow/tensor.rb +133 -0
- data/lib/tensorflow/tensor_data.rb +310 -0
- data/lib/tensorflow/tensor_mixin.rb +32 -0
- data/lib/tensorflow/tensor_spec.rb +10 -0
- data/lib/tensorflow/tensorflow/core/util/event_pb.rb +93 -0
- data/lib/tensorflow/train/gradient_descent_optimizer.rb +33 -0
- data/lib/tensorflow/train/optimizer.rb +158 -0
- data/lib/tensorflow/type_spec.rb +4 -0
- data/lib/tensorflow/variable.rb +127 -0
- data/lib/tensorflow/version.rb +3 -0
- metadata +308 -0
data/lib/tensorflow.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './tensorflow-ruby'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/allocation_description.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("tensorflow/core/framework/allocation_description.proto", :syntax => :proto3) do
|
8
|
+
add_message "tensorflow.AllocationDescription" do
|
9
|
+
optional :requested_bytes, :int64, 1
|
10
|
+
optional :allocated_bytes, :int64, 2
|
11
|
+
optional :allocator_name, :string, 3
|
12
|
+
optional :allocation_id, :int64, 4
|
13
|
+
optional :has_single_reference, :bool, 5
|
14
|
+
optional :ptr, :uint64, 6
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
module Tensorflow
|
20
|
+
AllocationDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.AllocationDescription").msgclass
|
21
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/api_def.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/attr_value_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("tensorflow/core/framework/api_def.proto", :syntax => :proto3) do
|
9
|
+
add_message "tensorflow.ApiDef" do
|
10
|
+
optional :graph_op_name, :string, 1
|
11
|
+
optional :deprecation_message, :string, 12
|
12
|
+
optional :deprecation_version, :int32, 13
|
13
|
+
optional :visibility, :enum, 2, "tensorflow.ApiDef.Visibility"
|
14
|
+
repeated :endpoint, :message, 3, "tensorflow.ApiDef.Endpoint"
|
15
|
+
repeated :in_arg, :message, 4, "tensorflow.ApiDef.Arg"
|
16
|
+
repeated :out_arg, :message, 5, "tensorflow.ApiDef.Arg"
|
17
|
+
repeated :arg_order, :string, 11
|
18
|
+
repeated :attr, :message, 6, "tensorflow.ApiDef.Attr"
|
19
|
+
optional :summary, :string, 7
|
20
|
+
optional :description, :string, 8
|
21
|
+
optional :description_prefix, :string, 9
|
22
|
+
optional :description_suffix, :string, 10
|
23
|
+
end
|
24
|
+
add_message "tensorflow.ApiDef.Endpoint" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
optional :deprecated, :bool, 3
|
27
|
+
optional :deprecation_version, :int32, 4
|
28
|
+
end
|
29
|
+
add_message "tensorflow.ApiDef.Arg" do
|
30
|
+
optional :name, :string, 1
|
31
|
+
optional :rename_to, :string, 2
|
32
|
+
optional :description, :string, 3
|
33
|
+
end
|
34
|
+
add_message "tensorflow.ApiDef.Attr" do
|
35
|
+
optional :name, :string, 1
|
36
|
+
optional :rename_to, :string, 2
|
37
|
+
optional :default_value, :message, 3, "tensorflow.AttrValue"
|
38
|
+
optional :description, :string, 4
|
39
|
+
end
|
40
|
+
add_enum "tensorflow.ApiDef.Visibility" do
|
41
|
+
value :DEFAULT_VISIBILITY, 0
|
42
|
+
value :VISIBLE, 1
|
43
|
+
value :SKIP, 2
|
44
|
+
value :HIDDEN, 3
|
45
|
+
end
|
46
|
+
add_message "tensorflow.ApiDefs" do
|
47
|
+
repeated :op, :message, 1, "tensorflow.ApiDef"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module Tensorflow
|
53
|
+
ApiDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDef").msgclass
|
54
|
+
ApiDef::Endpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDef.Endpoint").msgclass
|
55
|
+
ApiDef::Arg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDef.Arg").msgclass
|
56
|
+
ApiDef::Attr = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDef.Attr").msgclass
|
57
|
+
ApiDef::Visibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDef.Visibility").enummodule
|
58
|
+
ApiDefs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.ApiDefs").msgclass
|
59
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/attr_value.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/tensor_pb'
|
7
|
+
require 'tensorflow/core/framework/tensor_shape_pb'
|
8
|
+
require 'tensorflow/core/framework/types_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("tensorflow/core/framework/attr_value.proto", :syntax => :proto3) do
|
11
|
+
add_message "tensorflow.AttrValue" do
|
12
|
+
oneof :value do
|
13
|
+
optional :s, :bytes, 2
|
14
|
+
optional :i, :int64, 3
|
15
|
+
optional :f, :float, 4
|
16
|
+
optional :b, :bool, 5
|
17
|
+
optional :type, :enum, 6, "tensorflow.DataType"
|
18
|
+
optional :shape, :message, 7, "tensorflow.TensorShapeProto"
|
19
|
+
optional :tensor, :message, 8, "tensorflow.TensorProto"
|
20
|
+
optional :list, :message, 1, "tensorflow.AttrValue.ListValue"
|
21
|
+
optional :func, :message, 10, "tensorflow.NameAttrList"
|
22
|
+
optional :placeholder, :string, 9
|
23
|
+
end
|
24
|
+
end
|
25
|
+
add_message "tensorflow.AttrValue.ListValue" do
|
26
|
+
repeated :s, :bytes, 2
|
27
|
+
repeated :i, :int64, 3
|
28
|
+
repeated :f, :float, 4
|
29
|
+
repeated :b, :bool, 5
|
30
|
+
repeated :type, :enum, 6, "tensorflow.DataType"
|
31
|
+
repeated :shape, :message, 7, "tensorflow.TensorShapeProto"
|
32
|
+
repeated :tensor, :message, 8, "tensorflow.TensorProto"
|
33
|
+
repeated :func, :message, 9, "tensorflow.NameAttrList"
|
34
|
+
end
|
35
|
+
add_message "tensorflow.NameAttrList" do
|
36
|
+
optional :name, :string, 1
|
37
|
+
map :attr, :string, :message, 2, "tensorflow.AttrValue"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
module Tensorflow
|
43
|
+
AttrValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.AttrValue").msgclass
|
44
|
+
AttrValue::ListValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.AttrValue.ListValue").msgclass
|
45
|
+
NameAttrList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.NameAttrList").msgclass
|
46
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/cost_graph.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/tensor_shape_pb'
|
7
|
+
require 'tensorflow/core/framework/types_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("tensorflow/core/framework/cost_graph.proto", :syntax => :proto3) do
|
10
|
+
add_message "tensorflow.CostGraphDef" do
|
11
|
+
repeated :node, :message, 1, "tensorflow.CostGraphDef.Node"
|
12
|
+
end
|
13
|
+
add_message "tensorflow.CostGraphDef.Node" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :device, :string, 2
|
16
|
+
optional :id, :int32, 3
|
17
|
+
repeated :input_info, :message, 4, "tensorflow.CostGraphDef.Node.InputInfo"
|
18
|
+
repeated :output_info, :message, 5, "tensorflow.CostGraphDef.Node.OutputInfo"
|
19
|
+
optional :temporary_memory_size, :int64, 6
|
20
|
+
optional :persistent_memory_size, :int64, 12
|
21
|
+
optional :host_temp_memory_size, :int64, 10
|
22
|
+
optional :device_temp_memory_size, :int64, 11
|
23
|
+
optional :device_persistent_memory_size, :int64, 16
|
24
|
+
optional :compute_cost, :int64, 9
|
25
|
+
optional :compute_time, :int64, 14
|
26
|
+
optional :memory_time, :int64, 15
|
27
|
+
optional :is_final, :bool, 7
|
28
|
+
repeated :control_input, :int32, 8
|
29
|
+
optional :inaccurate, :bool, 17
|
30
|
+
end
|
31
|
+
add_message "tensorflow.CostGraphDef.Node.InputInfo" do
|
32
|
+
optional :preceding_node, :int32, 1
|
33
|
+
optional :preceding_port, :int32, 2
|
34
|
+
end
|
35
|
+
add_message "tensorflow.CostGraphDef.Node.OutputInfo" do
|
36
|
+
optional :size, :int64, 1
|
37
|
+
optional :alias_input_port, :int64, 2
|
38
|
+
optional :shape, :message, 3, "tensorflow.TensorShapeProto"
|
39
|
+
optional :dtype, :enum, 4, "tensorflow.DataType"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module Tensorflow
|
45
|
+
CostGraphDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.CostGraphDef").msgclass
|
46
|
+
CostGraphDef::Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.CostGraphDef.Node").msgclass
|
47
|
+
CostGraphDef::Node::InputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.CostGraphDef.Node.InputInfo").msgclass
|
48
|
+
CostGraphDef::Node::OutputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.CostGraphDef.Node.OutputInfo").msgclass
|
49
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/device_attributes.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("tensorflow/core/framework/device_attributes.proto", :syntax => :proto3) do
|
8
|
+
add_message "tensorflow.InterconnectLink" do
|
9
|
+
optional :device_id, :int32, 1
|
10
|
+
optional :type, :string, 2
|
11
|
+
optional :strength, :int32, 3
|
12
|
+
end
|
13
|
+
add_message "tensorflow.LocalLinks" do
|
14
|
+
repeated :link, :message, 1, "tensorflow.InterconnectLink"
|
15
|
+
end
|
16
|
+
add_message "tensorflow.DeviceLocality" do
|
17
|
+
optional :bus_id, :int32, 1
|
18
|
+
optional :numa_node, :int32, 2
|
19
|
+
optional :links, :message, 3, "tensorflow.LocalLinks"
|
20
|
+
end
|
21
|
+
add_message "tensorflow.DeviceAttributes" do
|
22
|
+
optional :name, :string, 1
|
23
|
+
optional :device_type, :string, 2
|
24
|
+
optional :memory_limit, :int64, 4
|
25
|
+
optional :locality, :message, 5, "tensorflow.DeviceLocality"
|
26
|
+
optional :incarnation, :fixed64, 6
|
27
|
+
optional :physical_device_desc, :string, 7
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
module Tensorflow
|
33
|
+
InterconnectLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.InterconnectLink").msgclass
|
34
|
+
LocalLinks = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.LocalLinks").msgclass
|
35
|
+
DeviceLocality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.DeviceLocality").msgclass
|
36
|
+
DeviceAttributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.DeviceAttributes").msgclass
|
37
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/function.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/attr_value_pb'
|
7
|
+
require 'tensorflow/core/framework/node_def_pb'
|
8
|
+
require 'tensorflow/core/framework/op_def_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("tensorflow/core/framework/function.proto", :syntax => :proto3) do
|
11
|
+
add_message "tensorflow.FunctionDefLibrary" do
|
12
|
+
repeated :function, :message, 1, "tensorflow.FunctionDef"
|
13
|
+
repeated :gradient, :message, 2, "tensorflow.GradientDef"
|
14
|
+
end
|
15
|
+
add_message "tensorflow.FunctionDef" do
|
16
|
+
optional :signature, :message, 1, "tensorflow.OpDef"
|
17
|
+
map :attr, :string, :message, 5, "tensorflow.AttrValue"
|
18
|
+
map :arg_attr, :uint32, :message, 7, "tensorflow.FunctionDef.ArgAttrs"
|
19
|
+
repeated :node_def, :message, 3, "tensorflow.NodeDef"
|
20
|
+
map :ret, :string, :string, 4
|
21
|
+
map :control_ret, :string, :string, 6
|
22
|
+
end
|
23
|
+
add_message "tensorflow.FunctionDef.ArgAttrs" do
|
24
|
+
map :attr, :string, :message, 1, "tensorflow.AttrValue"
|
25
|
+
end
|
26
|
+
add_message "tensorflow.GradientDef" do
|
27
|
+
optional :function_name, :string, 1
|
28
|
+
optional :gradient_func, :string, 2
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Tensorflow
|
34
|
+
FunctionDefLibrary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.FunctionDefLibrary").msgclass
|
35
|
+
FunctionDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.FunctionDef").msgclass
|
36
|
+
FunctionDef::ArgAttrs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.FunctionDef.ArgAttrs").msgclass
|
37
|
+
GradientDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GradientDef").msgclass
|
38
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/graph.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/node_def_pb'
|
7
|
+
require 'tensorflow/core/framework/function_pb'
|
8
|
+
require 'tensorflow/core/framework/versions_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("tensorflow/core/framework/graph.proto", :syntax => :proto3) do
|
11
|
+
add_message "tensorflow.GraphDef" do
|
12
|
+
repeated :node, :message, 1, "tensorflow.NodeDef"
|
13
|
+
optional :versions, :message, 4, "tensorflow.VersionDef"
|
14
|
+
optional :version, :int32, 3
|
15
|
+
optional :library, :message, 2, "tensorflow.FunctionDefLibrary"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Tensorflow
|
21
|
+
GraphDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphDef").msgclass
|
22
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/graph_transfer_info.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/types_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("tensorflow/core/framework/graph_transfer_info.proto", :syntax => :proto3) do
|
9
|
+
add_message "tensorflow.GraphTransferNodeInput" do
|
10
|
+
optional :node_id, :int32, 1
|
11
|
+
optional :output_port, :int32, 2
|
12
|
+
end
|
13
|
+
add_message "tensorflow.GraphTransferNodeInfo" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :node_id, :int32, 2
|
16
|
+
optional :type_name, :string, 3
|
17
|
+
optional :soc_op_id, :int32, 4
|
18
|
+
optional :padding_id, :int32, 5
|
19
|
+
optional :input_count, :int32, 6
|
20
|
+
optional :output_count, :int32, 7
|
21
|
+
end
|
22
|
+
add_message "tensorflow.GraphTransferConstNodeInfo" do
|
23
|
+
optional :name, :string, 1
|
24
|
+
optional :node_id, :int32, 2
|
25
|
+
repeated :shape, :int64, 3
|
26
|
+
optional :data, :bytes, 4
|
27
|
+
optional :dtype, :enum, 5, "tensorflow.DataType"
|
28
|
+
end
|
29
|
+
add_message "tensorflow.GraphTransferNodeInputInfo" do
|
30
|
+
optional :node_id, :int32, 1
|
31
|
+
repeated :node_input, :message, 2, "tensorflow.GraphTransferNodeInput"
|
32
|
+
end
|
33
|
+
add_message "tensorflow.GraphTransferNodeOutputInfo" do
|
34
|
+
optional :node_id, :int32, 1
|
35
|
+
repeated :max_byte_size, :int32, 2
|
36
|
+
end
|
37
|
+
add_message "tensorflow.GraphTransferGraphInputNodeInfo" do
|
38
|
+
optional :name, :string, 1
|
39
|
+
repeated :shape, :int64, 2
|
40
|
+
optional :dtype, :enum, 3, "tensorflow.DataType"
|
41
|
+
end
|
42
|
+
add_message "tensorflow.GraphTransferGraphOutputNodeInfo" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
repeated :shape, :int64, 2
|
45
|
+
optional :dtype, :enum, 3, "tensorflow.DataType"
|
46
|
+
end
|
47
|
+
add_message "tensorflow.GraphTransferInfo" do
|
48
|
+
repeated :node_info, :message, 1, "tensorflow.GraphTransferNodeInfo"
|
49
|
+
repeated :const_node_info, :message, 2, "tensorflow.GraphTransferConstNodeInfo"
|
50
|
+
repeated :node_input_info, :message, 3, "tensorflow.GraphTransferNodeInputInfo"
|
51
|
+
repeated :node_output_info, :message, 4, "tensorflow.GraphTransferNodeOutputInfo"
|
52
|
+
repeated :graph_input_node_info, :message, 5, "tensorflow.GraphTransferGraphInputNodeInfo"
|
53
|
+
repeated :graph_output_node_info, :message, 6, "tensorflow.GraphTransferGraphOutputNodeInfo"
|
54
|
+
optional :destination, :enum, 7, "tensorflow.GraphTransferInfo.Destination"
|
55
|
+
end
|
56
|
+
add_enum "tensorflow.GraphTransferInfo.Destination" do
|
57
|
+
value :NOP, 0
|
58
|
+
value :HEXAGON, 1
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
module Tensorflow
|
64
|
+
GraphTransferNodeInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferNodeInput").msgclass
|
65
|
+
GraphTransferNodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferNodeInfo").msgclass
|
66
|
+
GraphTransferConstNodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferConstNodeInfo").msgclass
|
67
|
+
GraphTransferNodeInputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferNodeInputInfo").msgclass
|
68
|
+
GraphTransferNodeOutputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferNodeOutputInfo").msgclass
|
69
|
+
GraphTransferGraphInputNodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferGraphInputNodeInfo").msgclass
|
70
|
+
GraphTransferGraphOutputNodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferGraphOutputNodeInfo").msgclass
|
71
|
+
GraphTransferInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferInfo").msgclass
|
72
|
+
GraphTransferInfo::Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.GraphTransferInfo.Destination").enummodule
|
73
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/kernel_def.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/attr_value_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("tensorflow/core/framework/kernel_def.proto", :syntax => :proto3) do
|
9
|
+
add_message "tensorflow.KernelDef" do
|
10
|
+
optional :op, :string, 1
|
11
|
+
optional :device_type, :string, 2
|
12
|
+
repeated :constraint, :message, 3, "tensorflow.KernelDef.AttrConstraint"
|
13
|
+
repeated :host_memory_arg, :string, 4
|
14
|
+
optional :label, :string, 5
|
15
|
+
optional :priority, :int32, 6
|
16
|
+
end
|
17
|
+
add_message "tensorflow.KernelDef.AttrConstraint" do
|
18
|
+
optional :name, :string, 1
|
19
|
+
optional :allowed_values, :message, 2, "tensorflow.AttrValue"
|
20
|
+
end
|
21
|
+
add_message "tensorflow.KernelList" do
|
22
|
+
repeated :kernel, :message, 1, "tensorflow.KernelDef"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
module Tensorflow
|
28
|
+
KernelDef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.KernelDef").msgclass
|
29
|
+
KernelDef::AttrConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.KernelDef.AttrConstraint").msgclass
|
30
|
+
KernelList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.KernelList").msgclass
|
31
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: tensorflow/core/framework/log_memory.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'tensorflow/core/framework/tensor_description_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("tensorflow/core/framework/log_memory.proto", :syntax => :proto3) do
|
9
|
+
add_message "tensorflow.MemoryLogStep" do
|
10
|
+
optional :step_id, :int64, 1
|
11
|
+
optional :handle, :string, 2
|
12
|
+
end
|
13
|
+
add_message "tensorflow.MemoryLogTensorAllocation" do
|
14
|
+
optional :step_id, :int64, 1
|
15
|
+
optional :kernel_name, :string, 2
|
16
|
+
optional :tensor, :message, 3, "tensorflow.TensorDescription"
|
17
|
+
end
|
18
|
+
add_message "tensorflow.MemoryLogTensorDeallocation" do
|
19
|
+
optional :allocation_id, :int64, 1
|
20
|
+
optional :allocator_name, :string, 2
|
21
|
+
end
|
22
|
+
add_message "tensorflow.MemoryLogTensorOutput" do
|
23
|
+
optional :step_id, :int64, 1
|
24
|
+
optional :kernel_name, :string, 2
|
25
|
+
optional :index, :int32, 3
|
26
|
+
optional :tensor, :message, 4, "tensorflow.TensorDescription"
|
27
|
+
end
|
28
|
+
add_message "tensorflow.MemoryLogRawAllocation" do
|
29
|
+
optional :step_id, :int64, 1
|
30
|
+
optional :operation, :string, 2
|
31
|
+
optional :num_bytes, :int64, 3
|
32
|
+
optional :ptr, :uint64, 4
|
33
|
+
optional :allocation_id, :int64, 5
|
34
|
+
optional :allocator_name, :string, 6
|
35
|
+
end
|
36
|
+
add_message "tensorflow.MemoryLogRawDeallocation" do
|
37
|
+
optional :step_id, :int64, 1
|
38
|
+
optional :operation, :string, 2
|
39
|
+
optional :allocation_id, :int64, 3
|
40
|
+
optional :allocator_name, :string, 4
|
41
|
+
optional :deferred, :bool, 5
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Tensorflow
|
47
|
+
MemoryLogStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogStep").msgclass
|
48
|
+
MemoryLogTensorAllocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogTensorAllocation").msgclass
|
49
|
+
MemoryLogTensorDeallocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogTensorDeallocation").msgclass
|
50
|
+
MemoryLogTensorOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogTensorOutput").msgclass
|
51
|
+
MemoryLogRawAllocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogRawAllocation").msgclass
|
52
|
+
MemoryLogRawDeallocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tensorflow.MemoryLogRawDeallocation").msgclass
|
53
|
+
end
|