sorbet-baml 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/README.md +32 -11
- data/lib/sorbet_baml/dspy_tool_converter.rb +2 -2
- data/lib/sorbet_baml/dspy_tool_extensions.rb +1 -1
- data/lib/sorbet_baml/version.rb +1 -1
- data/lib/sorbet_baml.rb +4 -2
- metadata +3 -115
- data/.idea/.gitignore +0 -8
- data/.idea/inspectionProfiles/Project_Default.xml +0 -5
- data/.rspec +0 -3
- data/docs-site/.gitignore +0 -48
- data/docs-site/Gemfile +0 -5
- data/docs-site/Gemfile.lock +0 -140
- data/docs-site/Rakefile +0 -3
- data/docs-site/bridgetown.config.yml +0 -15
- data/docs-site/config/initializers.rb +0 -9
- data/docs-site/config/puma.rb +0 -9
- data/docs-site/config.ru +0 -5
- data/docs-site/esbuild.config.js +0 -11
- data/docs-site/frontend/javascript/index.js +0 -22
- data/docs-site/frontend/styles/index.css +0 -61
- data/docs-site/package.json +0 -18
- data/docs-site/postcss.config.js +0 -6
- data/docs-site/server/roda_app.rb +0 -9
- data/docs-site/src/_components/head.liquid +0 -26
- data/docs-site/src/_components/nav.liquid +0 -68
- data/docs-site/src/_layouts/default.liquid +0 -27
- data/docs-site/src/_layouts/doc.liquid +0 -39
- data/docs-site/src/advanced-usage.md +0 -598
- data/docs-site/src/getting-started.md +0 -170
- data/docs-site/src/index.md +0 -183
- data/docs-site/src/troubleshooting.md +0 -317
- data/docs-site/src/type-mapping.md +0 -236
- data/docs-site/tailwind.config.js +0 -85
- data/sorbet/config +0 -6
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/anthropic@1.5.0.rbi +0 -21252
- data/sorbet/rbi/gems/ast@2.4.3.rbi +0 -585
- data/sorbet/rbi/gems/async@2.27.3.rbi +0 -9
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +0 -619
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +0 -9
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -37
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +0 -424
- data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +0 -9
- data/sorbet/rbi/gems/console@1.33.0.rbi +0 -9
- data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +0 -1134
- data/sorbet/rbi/gems/dry-configurable@1.3.0.rbi +0 -672
- data/sorbet/rbi/gems/dry-core@1.1.0.rbi +0 -1729
- data/sorbet/rbi/gems/dry-logger@1.1.0.rbi +0 -1317
- data/sorbet/rbi/gems/dspy@0.19.1.rbi +0 -6677
- data/sorbet/rbi/gems/erb@5.0.2.rbi +0 -878
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +0 -155
- data/sorbet/rbi/gems/ffi@1.17.2.rbi +0 -2174
- data/sorbet/rbi/gems/fiber-annotation@0.2.0.rbi +0 -9
- data/sorbet/rbi/gems/fiber-local@1.1.0.rbi +0 -9
- data/sorbet/rbi/gems/fiber-storage@1.0.1.rbi +0 -9
- data/sorbet/rbi/gems/google-protobuf@4.32.0.rbi +0 -9
- data/sorbet/rbi/gems/googleapis-common-protos-types@1.20.0.rbi +0 -9
- data/sorbet/rbi/gems/informers@1.2.1.rbi +0 -1875
- data/sorbet/rbi/gems/io-console@0.8.1.rbi +0 -9
- data/sorbet/rbi/gems/io-event@1.12.1.rbi +0 -9
- data/sorbet/rbi/gems/json@2.13.2.rbi +0 -2087
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +0 -9
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.7.0.rbi +0 -963
- data/sorbet/rbi/gems/metrics@0.13.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/onnxruntime@0.10.0.rbi +0 -304
- data/sorbet/rbi/gems/openai@0.16.0.rbi +0 -68055
- data/sorbet/rbi/gems/opentelemetry-api@1.6.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-common@0.22.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-exporter-otlp@0.30.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-registry@0.4.0.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-sdk@1.8.1.rbi +0 -9
- data/sorbet/rbi/gems/opentelemetry-semantic_conventions@1.11.0.rbi +0 -9
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.9.0.rbi +0 -5535
- data/sorbet/rbi/gems/polars-df@0.20.0.rbi +0 -9
- data/sorbet/rbi/gems/pp@0.6.2.rbi +0 -368
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +0 -477
- data/sorbet/rbi/gems/prism@1.4.0.rbi +0 -41732
- data/sorbet/rbi/gems/psych@5.2.6.rbi +0 -2469
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -164
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.3.0.rbi +0 -3031
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +0 -6893
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +0 -6976
- data/sorbet/rbi/gems/rdoc@6.14.2.rbi +0 -12688
- data/sorbet/rbi/gems/regexp_parser@2.11.2.rbi +0 -3845
- data/sorbet/rbi/gems/reline@0.6.2.rbi +0 -2441
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +0 -5240
- data/sorbet/rbi/gems/rspec-core@3.13.5.rbi +0 -11250
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +0 -8189
- data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +0 -5350
- data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +0 -7764
- data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +0 -2386
- data/sorbet/rbi/gems/rubocop@1.79.2.rbi +0 -63321
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/sorbet-result@1.4.0.rbi +0 -242
- data/sorbet/rbi/gems/sorbet-schema@0.9.2.rbi +0 -743
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +0 -48
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +0 -6985
- data/sorbet/rbi/gems/stringio@3.1.7.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +0 -3628
- data/sorbet/rbi/gems/thor@1.4.0.rbi +0 -4399
- data/sorbet/rbi/gems/tokenizers@0.5.5.rbi +0 -754
- data/sorbet/rbi/gems/traces@0.17.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi +0 -132
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +0 -251
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18379
- data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +0 -1429
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `metrics` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem metrics`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# THIS IS AN EMPTY RBI FILE.
|
|
9
|
-
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `netrc` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem netrc`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# source://netrc//lib/netrc.rb#3
|
|
9
|
-
class Netrc
|
|
10
|
-
# @return [Netrc] a new instance of Netrc
|
|
11
|
-
#
|
|
12
|
-
# source://netrc//lib/netrc.rb#166
|
|
13
|
-
def initialize(path, data); end
|
|
14
|
-
|
|
15
|
-
# source://netrc//lib/netrc.rb#180
|
|
16
|
-
def [](k); end
|
|
17
|
-
|
|
18
|
-
# source://netrc//lib/netrc.rb#188
|
|
19
|
-
def []=(k, info); end
|
|
20
|
-
|
|
21
|
-
# source://netrc//lib/netrc.rb#200
|
|
22
|
-
def delete(key); end
|
|
23
|
-
|
|
24
|
-
# source://netrc//lib/netrc.rb#211
|
|
25
|
-
def each(&block); end
|
|
26
|
-
|
|
27
|
-
# source://netrc//lib/netrc.rb#196
|
|
28
|
-
def length; end
|
|
29
|
-
|
|
30
|
-
# source://netrc//lib/netrc.rb#215
|
|
31
|
-
def new_item(m, l, p); end
|
|
32
|
-
|
|
33
|
-
# Returns the value of attribute new_item_prefix.
|
|
34
|
-
#
|
|
35
|
-
# source://netrc//lib/netrc.rb#178
|
|
36
|
-
def new_item_prefix; end
|
|
37
|
-
|
|
38
|
-
# Sets the attribute new_item_prefix
|
|
39
|
-
#
|
|
40
|
-
# @param value the value to set the attribute new_item_prefix to.
|
|
41
|
-
#
|
|
42
|
-
# source://netrc//lib/netrc.rb#178
|
|
43
|
-
def new_item_prefix=(_arg0); end
|
|
44
|
-
|
|
45
|
-
# source://netrc//lib/netrc.rb#219
|
|
46
|
-
def save; end
|
|
47
|
-
|
|
48
|
-
# source://netrc//lib/netrc.rb#233
|
|
49
|
-
def unparse; end
|
|
50
|
-
|
|
51
|
-
class << self
|
|
52
|
-
# source://netrc//lib/netrc.rb#42
|
|
53
|
-
def check_permissions(path); end
|
|
54
|
-
|
|
55
|
-
# source://netrc//lib/netrc.rb#33
|
|
56
|
-
def config; end
|
|
57
|
-
|
|
58
|
-
# @yield [self.config]
|
|
59
|
-
#
|
|
60
|
-
# source://netrc//lib/netrc.rb#37
|
|
61
|
-
def configure; end
|
|
62
|
-
|
|
63
|
-
# source://netrc//lib/netrc.rb#10
|
|
64
|
-
def default_path; end
|
|
65
|
-
|
|
66
|
-
# source://netrc//lib/netrc.rb#14
|
|
67
|
-
def home_path; end
|
|
68
|
-
|
|
69
|
-
# source://netrc//lib/netrc.rb#85
|
|
70
|
-
def lex(lines); end
|
|
71
|
-
|
|
72
|
-
# source://netrc//lib/netrc.rb#29
|
|
73
|
-
def netrc_filename; end
|
|
74
|
-
|
|
75
|
-
# Returns two values, a header and a list of items.
|
|
76
|
-
# Each item is a tuple, containing some or all of:
|
|
77
|
-
# - machine keyword (including trailing whitespace+comments)
|
|
78
|
-
# - machine name
|
|
79
|
-
# - login keyword (including surrounding whitespace+comments)
|
|
80
|
-
# - login
|
|
81
|
-
# - password keyword (including surrounding whitespace+comments)
|
|
82
|
-
# - password
|
|
83
|
-
# - trailing chars
|
|
84
|
-
# This lets us change individual fields, then write out the file
|
|
85
|
-
# with all its original formatting.
|
|
86
|
-
#
|
|
87
|
-
# source://netrc//lib/netrc.rb#129
|
|
88
|
-
def parse(ts); end
|
|
89
|
-
|
|
90
|
-
# Reads path and parses it as a .netrc file. If path doesn't
|
|
91
|
-
# exist, returns an empty object. Decrypt paths ending in .gpg.
|
|
92
|
-
#
|
|
93
|
-
# source://netrc//lib/netrc.rb#51
|
|
94
|
-
def read(path = T.unsafe(nil)); end
|
|
95
|
-
|
|
96
|
-
# @return [Boolean]
|
|
97
|
-
#
|
|
98
|
-
# source://netrc//lib/netrc.rb#112
|
|
99
|
-
def skip?(s); end
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
# source://netrc//lib/netrc.rb#8
|
|
104
|
-
Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
|
|
105
|
-
|
|
106
|
-
# source://netrc//lib/netrc.rb#244
|
|
107
|
-
class Netrc::Entry < ::Struct
|
|
108
|
-
# Returns the value of attribute login
|
|
109
|
-
#
|
|
110
|
-
# @return [Object] the current value of login
|
|
111
|
-
def login; end
|
|
112
|
-
|
|
113
|
-
# Sets the attribute login
|
|
114
|
-
#
|
|
115
|
-
# @param value [Object] the value to set the attribute login to.
|
|
116
|
-
# @return [Object] the newly set value
|
|
117
|
-
def login=(_); end
|
|
118
|
-
|
|
119
|
-
# Returns the value of attribute password
|
|
120
|
-
#
|
|
121
|
-
# @return [Object] the current value of password
|
|
122
|
-
def password; end
|
|
123
|
-
|
|
124
|
-
# Sets the attribute password
|
|
125
|
-
#
|
|
126
|
-
# @param value [Object] the value to set the attribute password to.
|
|
127
|
-
# @return [Object] the newly set value
|
|
128
|
-
def password=(_); end
|
|
129
|
-
|
|
130
|
-
def to_ary; end
|
|
131
|
-
|
|
132
|
-
class << self
|
|
133
|
-
def [](*_arg0); end
|
|
134
|
-
def inspect; end
|
|
135
|
-
def keyword_init?; end
|
|
136
|
-
def members; end
|
|
137
|
-
def new(*_arg0); end
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
# source://netrc//lib/netrc.rb#250
|
|
142
|
-
class Netrc::Error < ::StandardError; end
|
|
143
|
-
|
|
144
|
-
# source://netrc//lib/netrc.rb#68
|
|
145
|
-
class Netrc::TokenArray < ::Array
|
|
146
|
-
# source://netrc//lib/netrc.rb#76
|
|
147
|
-
def readto; end
|
|
148
|
-
|
|
149
|
-
# source://netrc//lib/netrc.rb#69
|
|
150
|
-
def take; end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# source://netrc//lib/netrc.rb#4
|
|
154
|
-
Netrc::VERSION = T.let(T.unsafe(nil), String)
|
|
155
|
-
|
|
156
|
-
# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
|
|
157
|
-
#
|
|
158
|
-
# source://netrc//lib/netrc.rb#7
|
|
159
|
-
Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
|
|
3
|
-
# DO NOT EDIT MANUALLY
|
|
4
|
-
# This is an autogenerated file for types exported from the `onnxruntime` gem.
|
|
5
|
-
# Please instead update this file by running `bin/tapioca gem onnxruntime`.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# source://onnxruntime//lib/onnxruntime/datasets.rb#1
|
|
9
|
-
module OnnxRuntime
|
|
10
|
-
class << self
|
|
11
|
-
# Returns the value of attribute ffi_lib.
|
|
12
|
-
#
|
|
13
|
-
# source://onnxruntime//lib/onnxruntime.rb#16
|
|
14
|
-
def ffi_lib; end
|
|
15
|
-
|
|
16
|
-
# Sets the attribute ffi_lib
|
|
17
|
-
#
|
|
18
|
-
# @param value the value to set the attribute ffi_lib to.
|
|
19
|
-
#
|
|
20
|
-
# source://onnxruntime//lib/onnxruntime.rb#16
|
|
21
|
-
def ffi_lib=(_arg0); end
|
|
22
|
-
|
|
23
|
-
# source://onnxruntime//lib/onnxruntime.rb#37
|
|
24
|
-
def lib_version; end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# source://onnxruntime//lib/onnxruntime/datasets.rb#2
|
|
29
|
-
module OnnxRuntime::Datasets
|
|
30
|
-
class << self
|
|
31
|
-
# source://onnxruntime//lib/onnxruntime/datasets.rb#3
|
|
32
|
-
def example(name); end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# source://onnxruntime//lib/onnxruntime.rb#13
|
|
37
|
-
class OnnxRuntime::Error < ::StandardError; end
|
|
38
|
-
|
|
39
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#2
|
|
40
|
-
module OnnxRuntime::FFI
|
|
41
|
-
extend ::FFI::Library
|
|
42
|
-
|
|
43
|
-
def OrtGetApiBase(*_arg0); end
|
|
44
|
-
def OrtSessionOptionsAppendExecutionProvider_CoreML(*_arg0); end
|
|
45
|
-
|
|
46
|
-
class << self
|
|
47
|
-
def OrtGetApiBase(*_arg0); end
|
|
48
|
-
def OrtSessionOptionsAppendExecutionProvider_CoreML(*_arg0); end
|
|
49
|
-
|
|
50
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#249
|
|
51
|
-
def api; end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#16
|
|
56
|
-
class OnnxRuntime::FFI::Api < ::FFI::Struct; end
|
|
57
|
-
|
|
58
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#239
|
|
59
|
-
class OnnxRuntime::FFI::ApiBase < ::FFI::Struct; end
|
|
60
|
-
|
|
61
|
-
# https://github.com/microsoft/onnxruntime/blob/master/include/onnxruntime/core/session/onnxruntime_c_api.h
|
|
62
|
-
# keep same order
|
|
63
|
-
#
|
|
64
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#10
|
|
65
|
-
OnnxRuntime::FFI::ORT_API_VERSION = T.let(T.unsafe(nil), Integer)
|
|
66
|
-
|
|
67
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#14
|
|
68
|
-
OnnxRuntime::FFI::OnnxType = T.let(T.unsafe(nil), FFI::Enum)
|
|
69
|
-
|
|
70
|
-
# enums
|
|
71
|
-
#
|
|
72
|
-
# source://onnxruntime//lib/onnxruntime/ffi.rb#13
|
|
73
|
-
OnnxRuntime::FFI::TensorElementDataType = T.let(T.unsafe(nil), FFI::Enum)
|
|
74
|
-
|
|
75
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#2
|
|
76
|
-
class OnnxRuntime::InferenceSession
|
|
77
|
-
# @return [InferenceSession] a new instance of InferenceSession
|
|
78
|
-
#
|
|
79
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#5
|
|
80
|
-
def initialize(path_or_bytes, enable_cpu_mem_arena: T.unsafe(nil), enable_mem_pattern: T.unsafe(nil), enable_profiling: T.unsafe(nil), execution_mode: T.unsafe(nil), free_dimension_overrides_by_denotation: T.unsafe(nil), free_dimension_overrides_by_name: T.unsafe(nil), graph_optimization_level: T.unsafe(nil), inter_op_num_threads: T.unsafe(nil), intra_op_num_threads: T.unsafe(nil), log_severity_level: T.unsafe(nil), log_verbosity_level: T.unsafe(nil), logid: T.unsafe(nil), optimized_model_filepath: T.unsafe(nil), profile_file_prefix: T.unsafe(nil), session_config_entries: T.unsafe(nil), providers: T.unsafe(nil)); end
|
|
81
|
-
|
|
82
|
-
# return value has double underscore like Python
|
|
83
|
-
#
|
|
84
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#191
|
|
85
|
-
def end_profiling; end
|
|
86
|
-
|
|
87
|
-
# Returns the value of attribute inputs.
|
|
88
|
-
#
|
|
89
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#3
|
|
90
|
-
def inputs; end
|
|
91
|
-
|
|
92
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#132
|
|
93
|
-
def modelmeta; end
|
|
94
|
-
|
|
95
|
-
# Returns the value of attribute outputs.
|
|
96
|
-
#
|
|
97
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#3
|
|
98
|
-
def outputs; end
|
|
99
|
-
|
|
100
|
-
# no way to set providers with C API yet
|
|
101
|
-
# so we can return all available providers
|
|
102
|
-
#
|
|
103
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#203
|
|
104
|
-
def providers; end
|
|
105
|
-
|
|
106
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#91
|
|
107
|
-
def run(output_names, input_feed, log_severity_level: T.unsafe(nil), log_verbosity_level: T.unsafe(nil), logid: T.unsafe(nil), terminate: T.unsafe(nil), output_type: T.unsafe(nil)); end
|
|
108
|
-
|
|
109
|
-
# TODO support logid
|
|
110
|
-
#
|
|
111
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#104
|
|
112
|
-
def run_with_ort_values(output_names, input_feed, log_severity_level: T.unsafe(nil), log_verbosity_level: T.unsafe(nil), logid: T.unsafe(nil), terminate: T.unsafe(nil)); end
|
|
113
|
-
|
|
114
|
-
private
|
|
115
|
-
|
|
116
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#309
|
|
117
|
-
def allocator_free(ptr); end
|
|
118
|
-
|
|
119
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#305
|
|
120
|
-
def api; end
|
|
121
|
-
|
|
122
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#297
|
|
123
|
-
def check_status(status); end
|
|
124
|
-
|
|
125
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#270
|
|
126
|
-
def create_input_tensor(input_feed); end
|
|
127
|
-
|
|
128
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#288
|
|
129
|
-
def create_node_names(names, refs); end
|
|
130
|
-
|
|
131
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#333
|
|
132
|
-
def env; end
|
|
133
|
-
|
|
134
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#234
|
|
135
|
-
def load_inputs; end
|
|
136
|
-
|
|
137
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#252
|
|
138
|
-
def load_outputs; end
|
|
139
|
-
|
|
140
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#215
|
|
141
|
-
def load_session(path_or_bytes, session_options); end
|
|
142
|
-
|
|
143
|
-
# wide string on Windows
|
|
144
|
-
# char string on Linux
|
|
145
|
-
# see ORTCHAR_T in onnxruntime_c_api.h
|
|
146
|
-
#
|
|
147
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#320
|
|
148
|
-
def ort_string(str); end
|
|
149
|
-
|
|
150
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#301
|
|
151
|
-
def tensor_types; end
|
|
152
|
-
|
|
153
|
-
class << self
|
|
154
|
-
# source://onnxruntime//lib/onnxruntime/inference_session.rb#313
|
|
155
|
-
def api; end
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#2
|
|
160
|
-
class OnnxRuntime::Model
|
|
161
|
-
# @return [Model] a new instance of Model
|
|
162
|
-
#
|
|
163
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#3
|
|
164
|
-
def initialize(path_or_bytes, **session_options); end
|
|
165
|
-
|
|
166
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#18
|
|
167
|
-
def inputs; end
|
|
168
|
-
|
|
169
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#26
|
|
170
|
-
def metadata; end
|
|
171
|
-
|
|
172
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#22
|
|
173
|
-
def outputs; end
|
|
174
|
-
|
|
175
|
-
# source://onnxruntime//lib/onnxruntime/model.rb#7
|
|
176
|
-
def predict(input_feed, output_names: T.unsafe(nil), **run_options); end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#2
|
|
180
|
-
class OnnxRuntime::OrtValue
|
|
181
|
-
# @return [OrtValue] a new instance of OrtValue
|
|
182
|
-
#
|
|
183
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#3
|
|
184
|
-
def initialize(ptr, ref = T.unsafe(nil)); end
|
|
185
|
-
|
|
186
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#119
|
|
187
|
-
def data_ptr; end
|
|
188
|
-
|
|
189
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#86
|
|
190
|
-
def data_type; end
|
|
191
|
-
|
|
192
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#103
|
|
193
|
-
def device_name; end
|
|
194
|
-
|
|
195
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#95
|
|
196
|
-
def element_type; end
|
|
197
|
-
|
|
198
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#107
|
|
199
|
-
def numo; end
|
|
200
|
-
|
|
201
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#99
|
|
202
|
-
def shape; end
|
|
203
|
-
|
|
204
|
-
# @return [Boolean]
|
|
205
|
-
#
|
|
206
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#82
|
|
207
|
-
def tensor?; end
|
|
208
|
-
|
|
209
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#115
|
|
210
|
-
def to_ptr; end
|
|
211
|
-
|
|
212
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#111
|
|
213
|
-
def to_ruby; end
|
|
214
|
-
|
|
215
|
-
private
|
|
216
|
-
|
|
217
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#144
|
|
218
|
-
def create_from_onnx_value(out_ptr, output_type); end
|
|
219
|
-
|
|
220
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#238
|
|
221
|
-
def create_strings_from_onnx_value(out_ptr, output_tensor_size, result); end
|
|
222
|
-
|
|
223
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#255
|
|
224
|
-
def reshape(arr, dims); end
|
|
225
|
-
|
|
226
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#135
|
|
227
|
-
def type_and_shape_info; end
|
|
228
|
-
|
|
229
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#127
|
|
230
|
-
def value_type; end
|
|
231
|
-
|
|
232
|
-
class << self
|
|
233
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#262
|
|
234
|
-
def allocator_info; end
|
|
235
|
-
|
|
236
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#15
|
|
237
|
-
def from_array(input, element_type:); end
|
|
238
|
-
|
|
239
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#8
|
|
240
|
-
def from_numo(numo_obj); end
|
|
241
|
-
|
|
242
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#39
|
|
243
|
-
def from_shape_and_type(shape, element_type); end
|
|
244
|
-
|
|
245
|
-
private
|
|
246
|
-
|
|
247
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#52
|
|
248
|
-
def create_input_data(input, tensor_type); end
|
|
249
|
-
|
|
250
|
-
# source://onnxruntime//lib/onnxruntime/ort_value.rb#68
|
|
251
|
-
def create_input_strings(input); end
|
|
252
|
-
end
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#2
|
|
256
|
-
module OnnxRuntime::Utils
|
|
257
|
-
class << self
|
|
258
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#133
|
|
259
|
-
def allocator; end
|
|
260
|
-
|
|
261
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#16
|
|
262
|
-
def api; end
|
|
263
|
-
|
|
264
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#8
|
|
265
|
-
def check_status(status); end
|
|
266
|
-
|
|
267
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#119
|
|
268
|
-
def input_shape(input); end
|
|
269
|
-
|
|
270
|
-
# Returns the value of attribute mutex.
|
|
271
|
-
#
|
|
272
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#4
|
|
273
|
-
def mutex; end
|
|
274
|
-
|
|
275
|
-
# Sets the attribute mutex
|
|
276
|
-
#
|
|
277
|
-
# @param value the value to set the attribute mutex to.
|
|
278
|
-
#
|
|
279
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#4
|
|
280
|
-
def mutex=(_arg0); end
|
|
281
|
-
|
|
282
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#44
|
|
283
|
-
def node_info(typeinfo); end
|
|
284
|
-
|
|
285
|
-
# @return [Boolean]
|
|
286
|
-
#
|
|
287
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#99
|
|
288
|
-
def numo_array?(obj); end
|
|
289
|
-
|
|
290
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#103
|
|
291
|
-
def numo_types; end
|
|
292
|
-
|
|
293
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#24
|
|
294
|
-
def tensor_type_and_shape(tensor_info); end
|
|
295
|
-
|
|
296
|
-
# @raise [Error]
|
|
297
|
-
#
|
|
298
|
-
# source://onnxruntime//lib/onnxruntime/utils.rb#20
|
|
299
|
-
def unsupported_type(name, type); end
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# source://onnxruntime//lib/onnxruntime/version.rb#2
|
|
304
|
-
OnnxRuntime::VERSION = T.let(T.unsafe(nil), String)
|