ZTWHHH commited on
Commit
b164c89
·
verified ·
1 Parent(s): b1a93a7

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/__init__.py +23 -0
  2. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/flow.py +507 -0
  3. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/helpers.py +151 -0
  4. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/interactive.py +172 -0
  5. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/tool/__init__.py +0 -0
  6. evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/tool/__pycache__/__init__.cpython-310.pyc +0 -0
  7. evalkit_cambrian/lib/python3.10/site-packages/h11-0.14.0.dist-info/LICENSE.txt +22 -0
  8. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/INSTALLER +1 -0
  9. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/METADATA +97 -0
  10. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/RECORD +14 -0
  11. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/REQUESTED +0 -0
  12. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/WHEEL +5 -0
  13. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/entry_points.txt +2 -0
  14. evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/top_level.txt +1 -0
  15. evalkit_cambrian/lib/python3.10/site-packages/multidict/__pycache__/__init__.cpython-310.pyc +0 -0
  16. evalkit_cambrian/lib/python3.10/site-packages/multidict/__pycache__/_abc.cpython-310.pyc +0 -0
  17. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/INSTALLER +1 -0
  18. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/License.txt +1568 -0
  19. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/METADATA +35 -0
  20. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/RECORD +32 -0
  21. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/WHEEL +5 -0
  22. evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/top_level.txt +1 -0
  23. evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/INSTALLER +1 -0
  24. evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/METADATA +35 -0
  25. evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/RECORD +37 -0
  26. evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/WHEEL +5 -0
  27. evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/__init__.py +139 -0
  28. evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/__pycache__/__init__.cpython-310.pyc +0 -0
  29. evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/_pydantic_core.pyi +1013 -0
  30. evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/py.typed +0 -0
  31. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_amp_foreach_non_finite_check_and_unscale_compositeexplicitautograd_dispatch.h +25 -0
  32. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_fft_c2c_cpu_dispatch.h +28 -0
  33. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_frac_cuda_dispatch.h +24 -0
  34. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_fused_dropout_native.h +22 -0
  35. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_log_softmax_backward_data_meta_dispatch.h +25 -0
  36. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_make_per_channel_quantized_tensor_native.h +23 -0
  37. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_nested_view_from_jagged_copy_ops.h +39 -0
  38. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_print_native.h +21 -0
  39. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_compressed_tensor_with_dims.h +34 -0
  40. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_log_softmax_backward_data_compositeexplicitautograd_dispatch.h +24 -0
  41. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_test_string_default.h +30 -0
  42. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_unique_ops.h +39 -0
  43. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_validate_sparse_csc_tensor_args.h +30 -0
  44. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/acos_ops.h +50 -0
  45. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/adaptive_max_pool3d_backward_native.h +26 -0
  46. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/arccos.h +44 -0
  47. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/arccos_native.h +23 -0
  48. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/ceil_native.h +29 -0
  49. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/conv2d_compositeimplicitautograd_dispatch.h +26 -0
  50. infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/expand_as_compositeimplicitautograd_dispatch.h +23 -0
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/__init__.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """oauthlib integration for Google Auth
16
+
17
+ This library provides `oauthlib <https://oauthlib.readthedocs.io/>`__
18
+ integration with `google-auth <https://google-auth.readthedocs.io/>`__.
19
+ """
20
+
21
+ from .interactive import get_user_credentials
22
+
23
+ __all__ = ["get_user_credentials"]
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/flow.py ADDED
@@ -0,0 +1,507 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2016 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """OAuth 2.0 Authorization Flow
16
+
17
+ This module provides integration with `requests-oauthlib`_ for running the
18
+ `OAuth 2.0 Authorization Flow`_ and acquiring user credentials. See
19
+ `Using OAuth 2.0 to Access Google APIs`_ for an overview of OAuth 2.0
20
+ authorization scenarios Google APIs support.
21
+
22
+ Here's an example of using :class:`InstalledAppFlow`::
23
+
24
+ from google_auth_oauthlib.flow import InstalledAppFlow
25
+
26
+ # Create the flow using the client secrets file from the Google API
27
+ # Console.
28
+ flow = InstalledAppFlow.from_client_secrets_file(
29
+ 'client_secrets.json',
30
+ scopes=['profile', 'email'])
31
+
32
+ flow.run_local_server()
33
+
34
+ # You can use flow.credentials, or you can just get a requests session
35
+ # using flow.authorized_session.
36
+ session = flow.authorized_session()
37
+
38
+ profile_info = session.get(
39
+ 'https://www.googleapis.com/userinfo/v2/me').json()
40
+
41
+ print(profile_info)
42
+ # {'name': '...', 'email': '...', ...}
43
+
44
+ .. _requests-oauthlib: http://requests-oauthlib.readthedocs.io/en/latest/
45
+ .. _OAuth 2.0 Authorization Flow:
46
+ https://tools.ietf.org/html/rfc6749#section-1.2
47
+ .. _Using OAuth 2.0 to Access Google APIs:
48
+ https://developers.google.com/identity/protocols/oauth2
49
+
50
+ """
51
+ from base64 import urlsafe_b64encode
52
+ import hashlib
53
+ import json
54
+ import logging
55
+
56
+ try:
57
+ from secrets import SystemRandom
58
+ except ImportError: # pragma: NO COVER
59
+ from random import SystemRandom
60
+ from string import ascii_letters, digits
61
+ import webbrowser
62
+ import wsgiref.simple_server
63
+ import wsgiref.util
64
+
65
+ import google.auth.transport.requests
66
+ import google.oauth2.credentials
67
+
68
+ import google_auth_oauthlib.helpers
69
+
70
+
71
+ _LOGGER = logging.getLogger(__name__)
72
+
73
+
74
+ class Flow(object):
75
+ """OAuth 2.0 Authorization Flow
76
+
77
+ This class uses a :class:`requests_oauthlib.OAuth2Session` instance at
78
+ :attr:`oauth2session` to perform all of the OAuth 2.0 logic. This class
79
+ just provides convenience methods and sane defaults for doing Google's
80
+ particular flavors of OAuth 2.0.
81
+
82
+ Typically you'll construct an instance of this flow using
83
+ :meth:`from_client_secrets_file` and a `client secrets file`_ obtained
84
+ from the `Google API Console`_.
85
+
86
+ .. _client secrets file:
87
+ https://developers.google.com/identity/protocols/oauth2/web-server
88
+ #creatingcred
89
+ .. _Google API Console:
90
+ https://console.developers.google.com/apis/credentials
91
+ """
92
+
93
+ def __init__(
94
+ self,
95
+ oauth2session,
96
+ client_type,
97
+ client_config,
98
+ redirect_uri=None,
99
+ code_verifier=None,
100
+ autogenerate_code_verifier=True,
101
+ ):
102
+ """
103
+ Args:
104
+ oauth2session (requests_oauthlib.OAuth2Session):
105
+ The OAuth 2.0 session from ``requests-oauthlib``.
106
+ client_type (str): The client type, either ``web`` or
107
+ ``installed``.
108
+ client_config (Mapping[str, Any]): The client
109
+ configuration in the Google `client secrets`_ format.
110
+ redirect_uri (str): The OAuth 2.0 redirect URI if known at flow
111
+ creation time. Otherwise, it will need to be set using
112
+ :attr:`redirect_uri`.
113
+ code_verifier (str): random string of 43-128 chars used to verify
114
+ the key exchange.using PKCE.
115
+ autogenerate_code_verifier (bool): If true, auto-generate a
116
+ code_verifier.
117
+ .. _client secrets:
118
+ https://github.com/googleapis/google-api-python-client/blob
119
+ /main/docs/client-secrets.md
120
+ """
121
+ self.client_type = client_type
122
+ """str: The client type, either ``'web'`` or ``'installed'``"""
123
+ self.client_config = client_config[client_type]
124
+ """Mapping[str, Any]: The OAuth 2.0 client configuration."""
125
+ self.oauth2session = oauth2session
126
+ """requests_oauthlib.OAuth2Session: The OAuth 2.0 session."""
127
+ self.redirect_uri = redirect_uri
128
+ self.code_verifier = code_verifier
129
+ self.autogenerate_code_verifier = autogenerate_code_verifier
130
+
131
+ @classmethod
132
+ def from_client_config(cls, client_config, scopes, **kwargs):
133
+ """Creates a :class:`requests_oauthlib.OAuth2Session` from client
134
+ configuration loaded from a Google-format client secrets file.
135
+
136
+ Args:
137
+ client_config (Mapping[str, Any]): The client
138
+ configuration in the Google `client secrets`_ format.
139
+ scopes (Sequence[str]): The list of scopes to request during the
140
+ flow.
141
+ kwargs: Any additional parameters passed to
142
+ :class:`requests_oauthlib.OAuth2Session`
143
+
144
+ Returns:
145
+ Flow: The constructed Flow instance.
146
+
147
+ Raises:
148
+ ValueError: If the client configuration is not in the correct
149
+ format.
150
+
151
+ .. _client secrets:
152
+ https://github.com/googleapis/google-api-python-client/blob/main/docs/client-secrets.md
153
+ """
154
+ if "web" in client_config:
155
+ client_type = "web"
156
+ elif "installed" in client_config:
157
+ client_type = "installed"
158
+ else:
159
+ raise ValueError("Client secrets must be for a web or installed app.")
160
+
161
+ # these args cannot be passed to requests_oauthlib.OAuth2Session
162
+ code_verifier = kwargs.pop("code_verifier", None)
163
+ autogenerate_code_verifier = kwargs.pop("autogenerate_code_verifier", None)
164
+
165
+ (
166
+ session,
167
+ client_config,
168
+ ) = google_auth_oauthlib.helpers.session_from_client_config(
169
+ client_config, scopes, **kwargs
170
+ )
171
+
172
+ redirect_uri = kwargs.get("redirect_uri", None)
173
+
174
+ return cls(
175
+ session,
176
+ client_type,
177
+ client_config,
178
+ redirect_uri,
179
+ code_verifier,
180
+ autogenerate_code_verifier,
181
+ )
182
+
183
+ @classmethod
184
+ def from_client_secrets_file(cls, client_secrets_file, scopes, **kwargs):
185
+ """Creates a :class:`Flow` instance from a Google client secrets file.
186
+
187
+ Args:
188
+ client_secrets_file (str): The path to the client secrets .json
189
+ file.
190
+ scopes (Sequence[str]): The list of scopes to request during the
191
+ flow.
192
+ kwargs: Any additional parameters passed to
193
+ :class:`requests_oauthlib.OAuth2Session`
194
+
195
+ Returns:
196
+ Flow: The constructed Flow instance.
197
+ """
198
+ with open(client_secrets_file, "r") as json_file:
199
+ client_config = json.load(json_file)
200
+
201
+ return cls.from_client_config(client_config, scopes=scopes, **kwargs)
202
+
203
+ @property
204
+ def redirect_uri(self):
205
+ """The OAuth 2.0 redirect URI. Pass-through to
206
+ ``self.oauth2session.redirect_uri``."""
207
+ return self.oauth2session.redirect_uri
208
+
209
+ @redirect_uri.setter
210
+ def redirect_uri(self, value):
211
+ """The OAuth 2.0 redirect URI. Pass-through to
212
+ ``self.oauth2session.redirect_uri``."""
213
+ self.oauth2session.redirect_uri = value
214
+
215
+ def authorization_url(self, **kwargs):
216
+ """Generates an authorization URL.
217
+
218
+ This is the first step in the OAuth 2.0 Authorization Flow. The user's
219
+ browser should be redirected to the returned URL.
220
+
221
+ This method calls
222
+ :meth:`requests_oauthlib.OAuth2Session.authorization_url`
223
+ and specifies the client configuration's authorization URI (usually
224
+ Google's authorization server) and specifies that "offline" access is
225
+ desired. This is required in order to obtain a refresh token.
226
+
227
+ Args:
228
+ kwargs: Additional arguments passed through to
229
+ :meth:`requests_oauthlib.OAuth2Session.authorization_url`
230
+
231
+ Returns:
232
+ Tuple[str, str]: The generated authorization URL and state. The
233
+ user must visit the URL to complete the flow. The state is used
234
+ when completing the flow to verify that the request originated
235
+ from your application. If your application is using a different
236
+ :class:`Flow` instance to obtain the token, you will need to
237
+ specify the ``state`` when constructing the :class:`Flow`.
238
+ """
239
+ kwargs.setdefault("access_type", "offline")
240
+ if self.autogenerate_code_verifier:
241
+ chars = ascii_letters + digits + "-._~"
242
+ rnd = SystemRandom()
243
+ random_verifier = [rnd.choice(chars) for _ in range(0, 128)]
244
+ self.code_verifier = "".join(random_verifier)
245
+
246
+ if self.code_verifier:
247
+ code_hash = hashlib.sha256()
248
+ code_hash.update(str.encode(self.code_verifier))
249
+ unencoded_challenge = code_hash.digest()
250
+ b64_challenge = urlsafe_b64encode(unencoded_challenge)
251
+ code_challenge = b64_challenge.decode().split("=")[0]
252
+ kwargs.setdefault("code_challenge", code_challenge)
253
+ kwargs.setdefault("code_challenge_method", "S256")
254
+ url, state = self.oauth2session.authorization_url(
255
+ self.client_config["auth_uri"], **kwargs
256
+ )
257
+
258
+ return url, state
259
+
260
+ def fetch_token(self, **kwargs):
261
+ """Completes the Authorization Flow and obtains an access token.
262
+
263
+ This is the final step in the OAuth 2.0 Authorization Flow. This is
264
+ called after the user consents.
265
+
266
+ This method calls
267
+ :meth:`requests_oauthlib.OAuth2Session.fetch_token`
268
+ and specifies the client configuration's token URI (usually Google's
269
+ token server).
270
+
271
+ Args:
272
+ kwargs: Arguments passed through to
273
+ :meth:`requests_oauthlib.OAuth2Session.fetch_token`. At least
274
+ one of ``code`` or ``authorization_response`` must be
275
+ specified.
276
+
277
+ Returns:
278
+ Mapping[str, str]: The obtained tokens. Typically, you will not use
279
+ return value of this function and instead use
280
+ :meth:`credentials` to obtain a
281
+ :class:`~google.auth.credentials.Credentials` instance.
282
+ """
283
+ kwargs.setdefault("client_secret", self.client_config["client_secret"])
284
+ kwargs.setdefault("code_verifier", self.code_verifier)
285
+ return self.oauth2session.fetch_token(self.client_config["token_uri"], **kwargs)
286
+
287
+ @property
288
+ def credentials(self):
289
+ """Returns credentials from the OAuth 2.0 session.
290
+
291
+ :meth:`fetch_token` must be called before accessing this. This method
292
+ constructs a :class:`google.oauth2.credentials.Credentials` class using
293
+ the session's token and the client config.
294
+
295
+ Returns:
296
+ google.oauth2.credentials.Credentials: The constructed credentials.
297
+
298
+ Raises:
299
+ ValueError: If there is no access token in the session.
300
+ """
301
+ return google_auth_oauthlib.helpers.credentials_from_session(
302
+ self.oauth2session, self.client_config
303
+ )
304
+
305
+ def authorized_session(self):
306
+ """Returns a :class:`requests.Session` authorized with credentials.
307
+
308
+ :meth:`fetch_token` must be called before this method. This method
309
+ constructs a :class:`google.auth.transport.requests.AuthorizedSession`
310
+ class using this flow's :attr:`credentials`.
311
+
312
+ Returns:
313
+ google.auth.transport.requests.AuthorizedSession: The constructed
314
+ session.
315
+ """
316
+ return google.auth.transport.requests.AuthorizedSession(self.credentials)
317
+
318
+
319
+ class InstalledAppFlow(Flow):
320
+ """Authorization flow helper for installed applications.
321
+
322
+ This :class:`Flow` subclass makes it easier to perform the
323
+ `Installed Application Authorization Flow`_. This flow is useful for
324
+ local development or applications that are installed on a desktop operating
325
+ system.
326
+
327
+ This flow uses a local server strategy provided by :meth:`run_local_server`.
328
+
329
+ Example::
330
+
331
+ from google_auth_oauthlib.flow import InstalledAppFlow
332
+
333
+ flow = InstalledAppFlow.from_client_secrets_file(
334
+ 'client_secrets.json',
335
+ scopes=['profile', 'email'])
336
+
337
+ flow.run_local_server()
338
+
339
+ session = flow.authorized_session()
340
+
341
+ profile_info = session.get(
342
+ 'https://www.googleapis.com/userinfo/v2/me').json()
343
+
344
+ print(profile_info)
345
+ # {'name': '...', 'email': '...', ...}
346
+
347
+
348
+ Note that this isn't the only way to accomplish the installed
349
+ application flow, just one of the most common. You can use the
350
+ :class:`Flow` class to perform the same flow with different methods of
351
+ presenting the authorization URL to the user or obtaining the authorization
352
+ response, such as using an embedded web view.
353
+
354
+ .. _Installed Application Authorization Flow:
355
+ https://github.com/googleapis/google-api-python-client/blob/main/docs/oauth-installed.md
356
+ """
357
+
358
+ _DEFAULT_AUTH_PROMPT_MESSAGE = (
359
+ "Please visit this URL to authorize this application: {url}"
360
+ )
361
+ """str: The message to display when prompting the user for
362
+ authorization."""
363
+ _DEFAULT_AUTH_CODE_MESSAGE = "Enter the authorization code: "
364
+ """str: The message to display when prompting the user for the
365
+ authorization code. Used only by the console strategy."""
366
+
367
+ _DEFAULT_WEB_SUCCESS_MESSAGE = (
368
+ "The authentication flow has completed. You may close this window."
369
+ )
370
+
371
+ def run_local_server(
372
+ self,
373
+ host="localhost",
374
+ bind_addr=None,
375
+ port=8080,
376
+ authorization_prompt_message=_DEFAULT_AUTH_PROMPT_MESSAGE,
377
+ success_message=_DEFAULT_WEB_SUCCESS_MESSAGE,
378
+ open_browser=True,
379
+ redirect_uri_trailing_slash=True,
380
+ timeout_seconds=None,
381
+ token_audience=None,
382
+ browser=None,
383
+ **kwargs
384
+ ):
385
+ """Run the flow using the server strategy.
386
+
387
+ The server strategy instructs the user to open the authorization URL in
388
+ their browser and will attempt to automatically open the URL for them.
389
+ It will start a local web server to listen for the authorization
390
+ response. Once authorization is complete the authorization server will
391
+ redirect the user's browser to the local web server. The web server
392
+ will get the authorization code from the response and shutdown. The
393
+ code is then exchanged for a token.
394
+
395
+ Args:
396
+ host (str): The hostname for the local redirect server. This will
397
+ be served over http, not https.
398
+ bind_addr (str): Optionally provide an ip address for the redirect
399
+ server to listen on when it is not the same as host
400
+ (e.g. in a container). Default value is None,
401
+ which means that the redirect server will listen
402
+ on the ip address specified in the host parameter.
403
+ port (int): The port for the local redirect server.
404
+ authorization_prompt_message (str | None): The message to display to tell
405
+ the user to navigate to the authorization URL. If None or empty,
406
+ don't display anything.
407
+ success_message (str): The message to display in the web browser
408
+ the authorization flow is complete.
409
+ open_browser (bool): Whether or not to open the authorization URL
410
+ in the user's browser.
411
+ redirect_uri_trailing_slash (bool): whether or not to add trailing
412
+ slash when constructing the redirect_uri. Default value is True.
413
+ timeout_seconds (int): It will raise an error after the timeout timing
414
+ if there are no credentials response. The value is in seconds.
415
+ When set to None there is no timeout.
416
+ Default value is None.
417
+ token_audience (str): Passed along with the request for an access
418
+ token. Determines the endpoints with which the token can be
419
+ used. Optional.
420
+ browser (str): specify which browser to open for authentication. If not
421
+ specified this defaults to default browser.
422
+ kwargs: Additional keyword arguments passed through to
423
+ :meth:`authorization_url`.
424
+
425
+ Returns:
426
+ google.oauth2.credentials.Credentials: The OAuth 2.0 credentials
427
+ for the user.
428
+ """
429
+ wsgi_app = _RedirectWSGIApp(success_message)
430
+ # Fail fast if the address is occupied
431
+ wsgiref.simple_server.WSGIServer.allow_reuse_address = False
432
+ local_server = wsgiref.simple_server.make_server(
433
+ bind_addr or host, port, wsgi_app, handler_class=_WSGIRequestHandler
434
+ )
435
+
436
+ try:
437
+ redirect_uri_format = (
438
+ "http://{}:{}/" if redirect_uri_trailing_slash else "http://{}:{}"
439
+ )
440
+ self.redirect_uri = redirect_uri_format.format(
441
+ host, local_server.server_port
442
+ )
443
+ auth_url, _ = self.authorization_url(**kwargs)
444
+
445
+ if open_browser:
446
+ # if browser is None it defaults to default browser
447
+ webbrowser.get(browser).open(auth_url, new=1, autoraise=True)
448
+
449
+ if authorization_prompt_message:
450
+ print(authorization_prompt_message.format(url=auth_url))
451
+
452
+ local_server.timeout = timeout_seconds
453
+ local_server.handle_request()
454
+
455
+ # Note: using https here because oauthlib is very picky that
456
+ # OAuth 2.0 should only occur over https.
457
+ authorization_response = wsgi_app.last_request_uri.replace("http", "https")
458
+ self.fetch_token(
459
+ authorization_response=authorization_response, audience=token_audience
460
+ )
461
+ finally:
462
+ local_server.server_close()
463
+
464
+ return self.credentials
465
+
466
+
467
+ class _WSGIRequestHandler(wsgiref.simple_server.WSGIRequestHandler):
468
+ """Custom WSGIRequestHandler.
469
+
470
+ Uses a named logger instead of printing to stderr.
471
+ """
472
+
473
+ def log_message(self, format, *args):
474
+ # pylint: disable=redefined-builtin
475
+ # (format is the argument name defined in the superclass.)
476
+ _LOGGER.info(format, *args)
477
+
478
+
479
+ class _RedirectWSGIApp(object):
480
+ """WSGI app to handle the authorization redirect.
481
+
482
+ Stores the request URI and displays the given success message.
483
+ """
484
+
485
+ def __init__(self, success_message):
486
+ """
487
+ Args:
488
+ success_message (str): The message to display in the web browser
489
+ the authorization flow is complete.
490
+ """
491
+ self.last_request_uri = None
492
+ self._success_message = success_message
493
+
494
+ def __call__(self, environ, start_response):
495
+ """WSGI Callable.
496
+
497
+ Args:
498
+ environ (Mapping[str, Any]): The WSGI environment.
499
+ start_response (Callable[str, list]): The WSGI start_response
500
+ callable.
501
+
502
+ Returns:
503
+ Iterable[bytes]: The response body.
504
+ """
505
+ start_response("200 OK", [("Content-type", "text/plain; charset=utf-8")])
506
+ self.last_request_uri = wsgiref.util.request_uri(environ)
507
+ return [self._success_message.encode("utf-8")]
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/helpers.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2017 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Integration helpers.
16
+
17
+ This module provides helpers for integrating with `requests-oauthlib`_.
18
+ Typically, you'll want to use the higher-level helpers in
19
+ :mod:`google_auth_oauthlib.flow`.
20
+
21
+ .. _requests-oauthlib: http://requests-oauthlib.readthedocs.io/en/latest/
22
+ """
23
+
24
+ import datetime
25
+ import json
26
+
27
+ from google.auth import external_account_authorized_user
28
+ import google.oauth2.credentials
29
+ import requests_oauthlib
30
+
31
+ _REQUIRED_CONFIG_KEYS = frozenset(("auth_uri", "token_uri", "client_id"))
32
+
33
+
34
+ def session_from_client_config(client_config, scopes, **kwargs):
35
+ """Creates a :class:`requests_oauthlib.OAuth2Session` from client
36
+ configuration loaded from a Google-format client secrets file.
37
+
38
+ Args:
39
+ client_config (Mapping[str, Any]): The client
40
+ configuration in the Google `client secrets`_ format.
41
+ scopes (Sequence[str]): The list of scopes to request during the
42
+ flow.
43
+ kwargs: Any additional parameters passed to
44
+ :class:`requests_oauthlib.OAuth2Session`
45
+
46
+ Raises:
47
+ ValueError: If the client configuration is not in the correct
48
+ format.
49
+
50
+ Returns:
51
+ Tuple[requests_oauthlib.OAuth2Session, Mapping[str, Any]]: The new
52
+ oauthlib session and the validated client configuration.
53
+
54
+ .. _client secrets:
55
+ https://github.com/googleapis/google-api-python-client/blob/main/docs/client-secrets.md
56
+ """
57
+
58
+ if "web" in client_config:
59
+ config = client_config["web"]
60
+ elif "installed" in client_config:
61
+ config = client_config["installed"]
62
+ else:
63
+ raise ValueError("Client secrets must be for a web or installed app.")
64
+
65
+ if not _REQUIRED_CONFIG_KEYS.issubset(config.keys()):
66
+ raise ValueError("Client secrets is not in the correct format.")
67
+
68
+ session = requests_oauthlib.OAuth2Session(
69
+ client_id=config["client_id"], scope=scopes, **kwargs
70
+ )
71
+
72
+ return session, client_config
73
+
74
+
75
+ def session_from_client_secrets_file(client_secrets_file, scopes, **kwargs):
76
+ """Creates a :class:`requests_oauthlib.OAuth2Session` instance from a
77
+ Google-format client secrets file.
78
+
79
+ Args:
80
+ client_secrets_file (str): The path to the `client secrets`_ .json
81
+ file.
82
+ scopes (Sequence[str]): The list of scopes to request during the
83
+ flow.
84
+ kwargs: Any additional parameters passed to
85
+ :class:`requests_oauthlib.OAuth2Session`
86
+
87
+ Returns:
88
+ Tuple[requests_oauthlib.OAuth2Session, Mapping[str, Any]]: The new
89
+ oauthlib session and the validated client configuration.
90
+
91
+ .. _client secrets:
92
+ https://github.com/googleapis/google-api-python-client/blob/main/docs/client-secrets.md
93
+ """
94
+ with open(client_secrets_file, "r") as json_file:
95
+ client_config = json.load(json_file)
96
+
97
+ return session_from_client_config(client_config, scopes, **kwargs)
98
+
99
+
100
+ def credentials_from_session(session, client_config=None):
101
+ """Creates :class:`google.oauth2.credentials.Credentials` from a
102
+ :class:`requests_oauthlib.OAuth2Session`.
103
+
104
+ :meth:`fetch_token` must be called on the session before before calling
105
+ this. This uses the session's auth token and the provided client
106
+ configuration to create :class:`google.oauth2.credentials.Credentials`.
107
+ This allows you to use the credentials from the session with Google
108
+ API client libraries.
109
+
110
+ Args:
111
+ session (requests_oauthlib.OAuth2Session): The OAuth 2.0 session.
112
+ client_config (Mapping[str, Any]): The subset of the client
113
+ configuration to use. For example, if you have a web client
114
+ you would pass in `client_config['web']`.
115
+
116
+ Returns:
117
+ google.oauth2.credentials.Credentials: The constructed credentials.
118
+
119
+ Raises:
120
+ ValueError: If there is no access token in the session.
121
+ """
122
+ client_config = client_config if client_config is not None else {}
123
+
124
+ if not session.token:
125
+ raise ValueError(
126
+ "There is no access token for this session, did you call " "fetch_token?"
127
+ )
128
+
129
+ if "3pi" in client_config:
130
+ credentials = external_account_authorized_user.Credentials(
131
+ token=session.token["access_token"],
132
+ refresh_token=session.token.get("refresh_token"),
133
+ token_url=client_config.get("token_uri"),
134
+ client_id=client_config.get("client_id"),
135
+ client_secret=client_config.get("client_secret"),
136
+ token_info_url=client_config.get("token_info_url"),
137
+ scopes=session.scope,
138
+ )
139
+ else:
140
+ credentials = google.oauth2.credentials.Credentials(
141
+ session.token["access_token"],
142
+ refresh_token=session.token.get("refresh_token"),
143
+ id_token=session.token.get("id_token"),
144
+ token_uri=client_config.get("token_uri"),
145
+ client_id=client_config.get("client_id"),
146
+ client_secret=client_config.get("client_secret"),
147
+ scopes=session.scope,
148
+ granted_scopes=session.token.get("scope"),
149
+ )
150
+ credentials.expiry = datetime.datetime.utcfromtimestamp(session.token["expires_at"])
151
+ return credentials
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/interactive.py ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Get user credentials from interactive code environments.
16
+
17
+ This module contains helpers for getting user credentials from interactive
18
+ code environments installed on a development machine, such as Jupyter
19
+ notebooks.
20
+ """
21
+
22
+ from __future__ import absolute_import
23
+
24
+ import contextlib
25
+ import socket
26
+
27
+ import google_auth_oauthlib.flow
28
+
29
+
30
+ LOCALHOST = "localhost"
31
+ DEFAULT_PORTS_TO_TRY = 100
32
+
33
+
34
+ def is_port_open(port):
35
+ """Check if a port is open on localhost.
36
+ Based on StackOverflow answer: https://stackoverflow.com/a/43238489/101923
37
+ Parameters
38
+ ----------
39
+ port : int
40
+ A port to check on localhost.
41
+ Returns
42
+ -------
43
+ is_open : bool
44
+ True if a socket can be opened at the requested port.
45
+ """
46
+ with contextlib.closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
47
+ try:
48
+ sock.bind((LOCALHOST, port))
49
+ sock.listen(1)
50
+ except socket.error:
51
+ is_open = False
52
+ else:
53
+ is_open = True
54
+ return is_open
55
+
56
+
57
+ def find_open_port(start=8080, stop=None):
58
+ """Find an open port between ``start`` and ``stop``.
59
+ Parameters
60
+ ----------
61
+ start : Optional[int]
62
+ Beginning of range of ports to try. Defaults to 8080.
63
+ stop : Optional[int]
64
+ End of range of ports to try (not including exactly equals ``stop``).
65
+ This function tries 100 possible ports if no ``stop`` is specified.
66
+ Returns
67
+ -------
68
+ Optional[int]
69
+ ``None`` if no open port is found, otherwise an integer indicating an
70
+ open port.
71
+ """
72
+ if not stop:
73
+ stop = start + DEFAULT_PORTS_TO_TRY
74
+
75
+ for port in range(start, stop):
76
+ if is_port_open(port):
77
+ return port
78
+
79
+ # No open ports found.
80
+ return None
81
+
82
+
83
+ def get_user_credentials(
84
+ scopes, client_id, client_secret, minimum_port=8080, maximum_port=None
85
+ ):
86
+ """Gets credentials associated with your Google user account.
87
+
88
+ This function authenticates using your user credentials by going through
89
+ the OAuth 2.0 flow. You'll open a browser window to authenticate to your
90
+ Google account. The permissions it requests correspond to the scopes
91
+ you've provided.
92
+
93
+ To obtain the ``client_id`` and ``client_secret``, create an **OAuth
94
+ client ID** with application type **Other** from the `Credentials page on
95
+ the Google Developer's Console
96
+ <https://console.developers.google.com/apis/credentials>`_. Learn more
97
+ with the `Authenticating as an end user
98
+ <https://cloud.google.com/docs/authentication/end-user>`_ guide.
99
+
100
+ Args:
101
+ scopes (Sequence[str]):
102
+ A list of scopes to use when authenticating to Google APIs. See
103
+ the `list of OAuth 2.0 scopes for Google APIs
104
+ <https://developers.google.com/identity/protocols/googlescopes>`_.
105
+ client_id (str):
106
+ A string that identifies your application to Google APIs. Find
107
+ this value in the `Credentials page on the Google Developer's
108
+ Console
109
+ <https://console.developers.google.com/apis/credentials>`_.
110
+ client_secret (str):
111
+ A string that verifies your application to Google APIs. Find this
112
+ value in the `Credentials page on the Google Developer's Console
113
+ <https://console.developers.google.com/apis/credentials>`_.
114
+ minimum_port (int):
115
+ Beginning of range of ports to try for redirect URI HTTP server.
116
+ Defaults to 8080.
117
+ maximum_port (Optional[int]):
118
+ End of range of ports to try (not including exactly equals ``stop``).
119
+ This function tries 100 possible ports if no ``stop`` is specified.
120
+
121
+ Returns:
122
+ google.oauth2.credentials.Credentials:
123
+ The OAuth 2.0 credentials for the user.
124
+
125
+ Examples:
126
+ Get credentials for your user account and use them to run a query
127
+ with BigQuery::
128
+
129
+ import google_auth_oauthlib
130
+
131
+ # TODO: Create a client ID for your project.
132
+ client_id = "YOUR-CLIENT-ID.apps.googleusercontent.com"
133
+ client_secret = "abc_ThIsIsAsEcReT"
134
+
135
+ # TODO: Choose the needed scopes for your applications.
136
+ scopes = ["https://www.googleapis.com/auth/cloud-platform"]
137
+
138
+ credentials = google_auth_oauthlib.get_user_credentials(
139
+ scopes, client_id, client_secret
140
+ )
141
+
142
+ # 1. Open the link.
143
+ # 2. Authorize the application to have access to your account.
144
+ # 3. Copy and paste the authorization code to the prompt.
145
+
146
+ # Use the credentials to construct a client for Google APIs.
147
+ from google.cloud import bigquery
148
+
149
+ bigquery_client = bigquery.Client(
150
+ credentials=credentials, project="your-project-id"
151
+ )
152
+ print(list(bigquery_client.query("SELECT 1").result()))
153
+ """
154
+
155
+ client_config = {
156
+ "installed": {
157
+ "client_id": client_id,
158
+ "client_secret": client_secret,
159
+ "auth_uri": "https://accounts.google.com/o/oauth2/auth",
160
+ "token_uri": "https://oauth2.googleapis.com/token",
161
+ }
162
+ }
163
+
164
+ app_flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_config(
165
+ client_config, scopes=scopes
166
+ )
167
+
168
+ port = find_open_port(start=minimum_port, stop=maximum_port)
169
+ if not port:
170
+ raise ConnectionError("Could not find open port.")
171
+
172
+ return app_flow.run_local_server(host=LOCALHOST, port=port)
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/tool/__init__.py ADDED
File without changes
evalkit_cambrian/lib/python3.10/site-packages/google_auth_oauthlib/tool/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (187 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/h11-0.14.0.dist-info/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Nathaniel J. Smith <[email protected]> and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/METADATA ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: matplotlib-inline
3
+ Version: 0.1.7
4
+ Summary: Inline Matplotlib backend for Jupyter
5
+ Author-email: IPython Development Team <[email protected]>
6
+ License: BSD 3-Clause License
7
+
8
+ Copyright (c) 2019-2022, IPython Development Team.
9
+ All rights reserved.
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ 1. Redistributions of source code must retain the above copyright notice, this
15
+ list of conditions and the following disclaimer.
16
+
17
+ 2. Redistributions in binary form must reproduce the above copyright notice,
18
+ this list of conditions and the following disclaimer in the documentation
19
+ and/or other materials provided with the distribution.
20
+
21
+ 3. Neither the name of the copyright holder nor the names of its
22
+ contributors may be used to endorse or promote products derived from
23
+ this software without specific prior written permission.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+
36
+ Project-URL: Homepage, https://github.com/ipython/matplotlib-inline
37
+ Keywords: ipython,jupyter,matplotlib,python
38
+ Classifier: Development Status :: 5 - Production/Stable
39
+ Classifier: Framework :: IPython
40
+ Classifier: Framework :: Jupyter
41
+ Classifier: Framework :: Jupyter :: JupyterLab
42
+ Classifier: Framework :: Jupyter :: JupyterLab :: 3
43
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
44
+ Classifier: Intended Audience :: Developers
45
+ Classifier: Intended Audience :: Science/Research
46
+ Classifier: License :: OSI Approved :: BSD License
47
+ Classifier: Programming Language :: Python
48
+ Classifier: Programming Language :: Python :: 3
49
+ Classifier: Programming Language :: Python :: 3.8
50
+ Classifier: Programming Language :: Python :: 3.9
51
+ Classifier: Programming Language :: Python :: 3.10
52
+ Classifier: Programming Language :: Python :: 3.11
53
+ Classifier: Programming Language :: Python :: 3.12
54
+ Classifier: Topic :: Multimedia :: Graphics
55
+ Requires-Python: >=3.8
56
+ Description-Content-Type: text/markdown
57
+ License-File: LICENSE
58
+ Requires-Dist: traitlets
59
+
60
+ # Matplotlib Inline Back-end for IPython and Jupyter
61
+
62
+ This package provides support for matplotlib to display figures directly inline in the Jupyter notebook and related clients, as shown below.
63
+
64
+ ## Installation
65
+
66
+ With conda:
67
+
68
+ ```bash
69
+ conda install -c conda-forge matplotlib-inline
70
+ ```
71
+
72
+ With pip:
73
+
74
+ ```bash
75
+ pip install matplotlib-inline
76
+ ```
77
+
78
+ ## Usage
79
+
80
+ Note that in current versions of JupyterLab and Jupyter Notebook, the explicit use of the `%matplotlib inline` directive is not needed anymore, though other third-party clients may still require it.
81
+
82
+ This will produce a figure immediately below:
83
+
84
+ ```python
85
+ %matplotlib inline
86
+
87
+ import matplotlib.pyplot as plt
88
+ import numpy as np
89
+
90
+ x = np.linspace(0, 3*np.pi, 500)
91
+ plt.plot(x, np.sin(x**2))
92
+ plt.title('A simple chirp');
93
+ ```
94
+
95
+ ## License
96
+
97
+ Licensed under the terms of the BSD 3-Clause License, by the IPython Development Team (see `LICENSE` file).
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/RECORD ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ matplotlib_inline-0.1.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ matplotlib_inline-0.1.7.dist-info/LICENSE,sha256=hSGwNsZEjg4KpyE9RxO2_e4PTGTJ8yBFD3c0a_XA6OQ,1538
3
+ matplotlib_inline-0.1.7.dist-info/METADATA,sha256=Xz23GdN-XdBaedxKOTUXCuChARrN9NvHcKHdnkpv08E,3873
4
+ matplotlib_inline-0.1.7.dist-info/RECORD,,
5
+ matplotlib_inline-0.1.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ matplotlib_inline-0.1.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
+ matplotlib_inline-0.1.7.dist-info/entry_points.txt,sha256=NxSdh3hjUJgJ73Z6FN60JWKd4Ll30Iy1nlIoNAvYGIU,63
8
+ matplotlib_inline-0.1.7.dist-info/top_level.txt,sha256=0ViJqRtJZLIS7IfjHrUgYI6RIvWY0cfk1OjAlp40Zsw,18
9
+ matplotlib_inline/__init__.py,sha256=tnQF2ytXKVHudRzPup4ymHdSygJW8znm2Ox3CVF9FQs,75
10
+ matplotlib_inline/__pycache__/__init__.cpython-310.pyc,,
11
+ matplotlib_inline/__pycache__/backend_inline.cpython-310.pyc,,
12
+ matplotlib_inline/__pycache__/config.cpython-310.pyc,,
13
+ matplotlib_inline/backend_inline.py,sha256=pR2qQcdCoXAEen7FXIyJvgRMaS4V9pker_IbabROH6E,11354
14
+ matplotlib_inline/config.py,sha256=Z87OCv-LStYhOwQ2LmHDNxwkAn9BLFKTbHI7XSAT1Jc,3911
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/REQUESTED ADDED
File without changes
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/entry_points.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [matplotlib.backend]
2
+ inline = matplotlib_inline.backend_inline
evalkit_cambrian/lib/python3.10/site-packages/matplotlib_inline-0.1.7.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ matplotlib_inline
evalkit_cambrian/lib/python3.10/site-packages/multidict/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (854 Bytes). View file
 
evalkit_cambrian/lib/python3.10/site-packages/multidict/__pycache__/_abc.cpython-310.pyc ADDED
Binary file (1.93 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/License.txt ADDED
@@ -0,0 +1,1568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ End User License Agreement
2
+ --------------------------
3
+
4
+
5
+ Preface
6
+ -------
7
+
8
+ The Software License Agreement in Chapter 1 and the Supplement
9
+ in Chapter 2 contain license terms and conditions that govern
10
+ the use of NVIDIA software. By accepting this agreement, you
11
+ agree to comply with all the terms and conditions applicable
12
+ to the product(s) included herein.
13
+
14
+
15
+ NVIDIA Driver
16
+
17
+
18
+ Description
19
+
20
+ This package contains the operating system driver and
21
+ fundamental system software components for NVIDIA GPUs.
22
+
23
+
24
+ NVIDIA CUDA Toolkit
25
+
26
+
27
+ Description
28
+
29
+ The NVIDIA CUDA Toolkit provides command-line and graphical
30
+ tools for building, debugging and optimizing the performance
31
+ of applications accelerated by NVIDIA GPUs, runtime and math
32
+ libraries, and documentation including programming guides,
33
+ user manuals, and API references.
34
+
35
+
36
+ Default Install Location of CUDA Toolkit
37
+
38
+ Windows platform:
39
+
40
+ %ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.#
41
+
42
+ Linux platform:
43
+
44
+ /usr/local/cuda-#.#
45
+
46
+ Mac platform:
47
+
48
+ /Developer/NVIDIA/CUDA-#.#
49
+
50
+
51
+ NVIDIA CUDA Samples
52
+
53
+
54
+ Description
55
+
56
+ This package includes over 100+ CUDA examples that demonstrate
57
+ various CUDA programming principles, and efficient CUDA
58
+ implementation of algorithms in specific application domains.
59
+
60
+
61
+ Default Install Location of CUDA Samples
62
+
63
+ Windows platform:
64
+
65
+ %ProgramData%\NVIDIA Corporation\CUDA Samples\v#.#
66
+
67
+ Linux platform:
68
+
69
+ /usr/local/cuda-#.#/samples
70
+
71
+ and
72
+
73
+ $HOME/NVIDIA_CUDA-#.#_Samples
74
+
75
+ Mac platform:
76
+
77
+ /Developer/NVIDIA/CUDA-#.#/samples
78
+
79
+
80
+ NVIDIA Nsight Visual Studio Edition (Windows only)
81
+
82
+
83
+ Description
84
+
85
+ NVIDIA Nsight Development Platform, Visual Studio Edition is a
86
+ development environment integrated into Microsoft Visual
87
+ Studio that provides tools for debugging, profiling, analyzing
88
+ and optimizing your GPU computing and graphics applications.
89
+
90
+
91
+ Default Install Location of Nsight Visual Studio Edition
92
+
93
+ Windows platform:
94
+
95
+ %ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.#
96
+
97
+
98
+ 1. License Agreement for NVIDIA Software Development Kits
99
+ ---------------------------------------------------------
100
+
101
+
102
+ Release Date: July 26, 2018
103
+ ---------------------------
104
+
105
+
106
+ Important NoticeRead before downloading, installing,
107
+ copying or using the licensed software:
108
+ -------------------------------------------------------
109
+
110
+ This license agreement, including exhibits attached
111
+ ("Agreement”) is a legal agreement between you and NVIDIA
112
+ Corporation ("NVIDIA") and governs your use of a NVIDIA
113
+ software development kit (“SDK”).
114
+
115
+ Each SDK has its own set of software and materials, but here
116
+ is a description of the types of items that may be included in
117
+ a SDK: source code, header files, APIs, data sets and assets
118
+ (examples include images, textures, models, scenes, videos,
119
+ native API input/output files), binary software, sample code,
120
+ libraries, utility programs, programming code and
121
+ documentation.
122
+
123
+ This Agreement can be accepted only by an adult of legal age
124
+ of majority in the country in which the SDK is used.
125
+
126
+ If you are entering into this Agreement on behalf of a company
127
+ or other legal entity, you represent that you have the legal
128
+ authority to bind the entity to this Agreement, in which case
129
+ “you” will mean the entity you represent.
130
+
131
+ If you don’t have the required age or authority to accept
132
+ this Agreement, or if you don’t accept all the terms and
133
+ conditions of this Agreement, do not download, install or use
134
+ the SDK.
135
+
136
+ You agree to use the SDK only for purposes that are permitted
137
+ by (a) this Agreement, and (b) any applicable law, regulation
138
+ or generally accepted practices or guidelines in the relevant
139
+ jurisdictions.
140
+
141
+
142
+ 1.1. License
143
+
144
+
145
+ 1.1.1. License Grant
146
+
147
+ Subject to the terms of this Agreement, NVIDIA hereby grants
148
+ you a non-exclusive, non-transferable license, without the
149
+ right to sublicense (except as expressly provided in this
150
+ Agreement) to:
151
+
152
+ 1. Install and use the SDK,
153
+
154
+ 2. Modify and create derivative works of sample source code
155
+ delivered in the SDK, and
156
+
157
+ 3. Distribute those portions of the SDK that are identified
158
+ in this Agreement as distributable, as incorporated in
159
+ object code format into a software application that meets
160
+ the distribution requirements indicated in this Agreement.
161
+
162
+
163
+ 1.1.2. Distribution Requirements
164
+
165
+ These are the distribution requirements for you to exercise
166
+ the distribution grant:
167
+
168
+ 1. Your application must have material additional
169
+ functionality, beyond the included portions of the SDK.
170
+
171
+ 2. The distributable portions of the SDK shall only be
172
+ accessed by your application.
173
+
174
+ 3. The following notice shall be included in modifications
175
+ and derivative works of sample source code distributed:
176
+ “This software contains source code provided by NVIDIA
177
+ Corporation.”
178
+
179
+ 4. Unless a developer tool is identified in this Agreement
180
+ as distributable, it is delivered for your internal use
181
+ only.
182
+
183
+ 5. The terms under which you distribute your application
184
+ must be consistent with the terms of this Agreement,
185
+ including (without limitation) terms relating to the
186
+ license grant and license restrictions and protection of
187
+ NVIDIA’s intellectual property rights. Additionally, you
188
+ agree that you will protect the privacy, security and
189
+ legal rights of your application users.
190
+
191
+ 6. You agree to notify NVIDIA in writing of any known or
192
+ suspected distribution or use of the SDK not in compliance
193
+ with the requirements of this Agreement, and to enforce
194
+ the terms of your agreements with respect to distributed
195
+ SDK.
196
+
197
+
198
+ 1.1.3. Authorized Users
199
+
200
+ You may allow employees and contractors of your entity or of
201
+ your subsidiary(ies) to access and use the SDK from your
202
+ secure network to perform work on your behalf.
203
+
204
+ If you are an academic institution you may allow users
205
+ enrolled or employed by the academic institution to access and
206
+ use the SDK from your secure network.
207
+
208
+ You are responsible for the compliance with the terms of this
209
+ Agreement by your authorized users. If you become aware that
210
+ your authorized users didn’t follow the terms of this
211
+ Agreement, you agree to take reasonable steps to resolve the
212
+ non-compliance and prevent new occurrences.
213
+
214
+
215
+ 1.1.4. Pre-Release SDK
216
+
217
+ The SDK versions identified as alpha, beta, preview or
218
+ otherwise as pre-release, may not be fully functional, may
219
+ contain errors or design flaws, and may have reduced or
220
+ different security, privacy, accessibility, availability, and
221
+ reliability standards relative to commercial versions of
222
+ NVIDIA software and materials. Use of a pre-release SDK may
223
+ result in unexpected results, loss of data, project delays or
224
+ other unpredictable damage or loss.
225
+
226
+ You may use a pre-release SDK at your own risk, understanding
227
+ that pre-release SDKs are not intended for use in production
228
+ or business-critical systems.
229
+
230
+ NVIDIA may choose not to make available a commercial version
231
+ of any pre-release SDK. NVIDIA may also choose to abandon
232
+ development and terminate the availability of a pre-release
233
+ SDK at any time without liability.
234
+
235
+
236
+ 1.1.5. Updates
237
+
238
+ NVIDIA may, at its option, make available patches, workarounds
239
+ or other updates to this SDK. Unless the updates are provided
240
+ with their separate governing terms, they are deemed part of
241
+ the SDK licensed to you as provided in this Agreement. You
242
+ agree that the form and content of the SDK that NVIDIA
243
+ provides may change without prior notice to you. While NVIDIA
244
+ generally maintains compatibility between versions, NVIDIA may
245
+ in some cases make changes that introduce incompatibilities in
246
+ future versions of the SDK.
247
+
248
+
249
+ 1.1.6. Third Party Licenses
250
+
251
+ The SDK may come bundled with, or otherwise include or be
252
+ distributed with, third party software licensed by a NVIDIA
253
+ supplier and/or open source software provided under an open
254
+ source license. Use of third party software is subject to the
255
+ third-party license terms, or in the absence of third party
256
+ terms, the terms of this Agreement. Copyright to third party
257
+ software is held by the copyright holders indicated in the
258
+ third-party software or license.
259
+
260
+
261
+ 1.1.7. Reservation of Rights
262
+
263
+ NVIDIA reserves all rights, title, and interest in and to the
264
+ SDK, not expressly granted to you under this Agreement.
265
+
266
+
267
+ 1.2. Limitations
268
+
269
+ The following license limitations apply to your use of the
270
+ SDK:
271
+
272
+ 1. You may not reverse engineer, decompile or disassemble,
273
+ or remove copyright or other proprietary notices from any
274
+ portion of the SDK or copies of the SDK.
275
+
276
+ 2. Except as expressly provided in this Agreement, you may
277
+ not copy, sell, rent, sublicense, transfer, distribute,
278
+ modify, or create derivative works of any portion of the
279
+ SDK. For clarity, you may not distribute or sublicense the
280
+ SDK as a stand-alone product.
281
+
282
+ 3. Unless you have an agreement with NVIDIA for this
283
+ purpose, you may not indicate that an application created
284
+ with the SDK is sponsored or endorsed by NVIDIA.
285
+
286
+ 4. You may not bypass, disable, or circumvent any
287
+ encryption, security, digital rights management or
288
+ authentication mechanism in the SDK.
289
+
290
+ 5. You may not use the SDK in any manner that would cause it
291
+ to become subject to an open source software license. As
292
+ examples, licenses that require as a condition of use,
293
+ modification, and/or distribution that the SDK be:
294
+
295
+ a. Disclosed or distributed in source code form;
296
+
297
+ b. Licensed for the purpose of making derivative works;
298
+ or
299
+
300
+ c. Redistributable at no charge.
301
+
302
+ 6. Unless you have an agreement with NVIDIA for this
303
+ purpose, you may not use the SDK with any system or
304
+ application where the use or failure of the system or
305
+ application can reasonably be expected to threaten or
306
+ result in personal injury, death, or catastrophic loss.
307
+ Examples include use in avionics, navigation, military,
308
+ medical, life support or other life critical applications.
309
+ NVIDIA does not design, test or manufacture the SDK for
310
+ these critical uses and NVIDIA shall not be liable to you
311
+ or any third party, in whole or in part, for any claims or
312
+ damages arising from such uses.
313
+
314
+ 7. You agree to defend, indemnify and hold harmless NVIDIA
315
+ and its affiliates, and their respective employees,
316
+ contractors, agents, officers and directors, from and
317
+ against any and all claims, damages, obligations, losses,
318
+ liabilities, costs or debt, fines, restitutions and
319
+ expenses (including but not limited to attorney’s fees
320
+ and costs incident to establishing the right of
321
+ indemnification) arising out of or related to your use of
322
+ the SDK outside of the scope of this Agreement, or not in
323
+ compliance with its terms.
324
+
325
+
326
+ 1.3. Ownership
327
+
328
+ 1. NVIDIA or its licensors hold all rights, title and
329
+ interest in and to the SDK and its modifications and
330
+ derivative works, including their respective intellectual
331
+ property rights, subject to your rights described in this
332
+ section. This SDK may include software and materials from
333
+ NVIDIA’s licensors, and these licensors are intended
334
+ third party beneficiaries that may enforce this Agreement
335
+ with respect to their intellectual property rights.
336
+
337
+ 2. You hold all rights, title and interest in and to your
338
+ applications and your derivative works of the sample
339
+ source code delivered in the SDK, including their
340
+ respective intellectual property rights, subject to
341
+ NVIDIA’s rights described in this section.
342
+
343
+ 3. You may, but don’t have to, provide to NVIDIA
344
+ suggestions, feature requests or other feedback regarding
345
+ the SDK, including possible enhancements or modifications
346
+ to the SDK. For any feedback that you voluntarily provide,
347
+ you hereby grant NVIDIA and its affiliates a perpetual,
348
+ non-exclusive, worldwide, irrevocable license to use,
349
+ reproduce, modify, license, sublicense (through multiple
350
+ tiers of sublicensees), and distribute (through multiple
351
+ tiers of distributors) it without the payment of any
352
+ royalties or fees to you. NVIDIA will use feedback at its
353
+ choice. NVIDIA is constantly looking for ways to improve
354
+ its products, so you may send feedback to NVIDIA through
355
+ the developer portal at https://developer.nvidia.com.
356
+
357
+
358
+ 1.4. No Warranties
359
+
360
+ THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL
361
+ FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND
362
+ ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND
363
+ OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING,
364
+ BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
365
+ FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE
366
+ ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO
367
+ WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF
368
+ DEALING OR COURSE OF TRADE.
369
+
370
+
371
+ 1.5. Limitation of Liability
372
+
373
+ TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS
374
+ AFFILIATES SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
375
+ PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, LOSS
376
+ OF USE, LOSS OF DATA OR LOSS OF GOODWILL, OR THE COSTS OF
377
+ PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION
378
+ WITH THIS AGREEMENT OR THE USE OR PERFORMANCE OF THE SDK,
379
+ WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON BREACH
380
+ OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE),
381
+ PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF
382
+ LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES
383
+ TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS
384
+ AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE
385
+ NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS
386
+ LIMIT.
387
+
388
+ These exclusions and limitations of liability shall apply
389
+ regardless if NVIDIA or its affiliates have been advised of
390
+ the possibility of such damages, and regardless of whether a
391
+ remedy fails its essential purpose. These exclusions and
392
+ limitations of liability form an essential basis of the
393
+ bargain between the parties, and, absent any of these
394
+ exclusions or limitations of liability, the provisions of this
395
+ Agreement, including, without limitation, the economic terms,
396
+ would be substantially different.
397
+
398
+
399
+ 1.6. Termination
400
+
401
+ 1. This Agreement will continue to apply until terminated by
402
+ either you or NVIDIA as described below.
403
+
404
+ 2. If you want to terminate this Agreement, you may do so by
405
+ stopping to use the SDK.
406
+
407
+ 3. NVIDIA may, at any time, terminate this Agreement if:
408
+
409
+ a. (i) you fail to comply with any term of this
410
+ Agreement and the non-compliance is not fixed within
411
+ thirty (30) days following notice from NVIDIA (or
412
+ immediately if you violate NVIDIA’s intellectual
413
+ property rights);
414
+
415
+ b. (ii) you commence or participate in any legal
416
+ proceeding against NVIDIA with respect to the SDK; or
417
+
418
+ c. (iii) NVIDIA decides to no longer provide the SDK in
419
+ a country or, in NVIDIA’s sole discretion, the
420
+ continued use of it is no longer commercially viable.
421
+
422
+ 4. Upon any termination of this Agreement, you agree to
423
+ promptly discontinue use of the SDK and destroy all copies
424
+ in your possession or control. Your prior distributions in
425
+ accordance with this Agreement are not affected by the
426
+ termination of this Agreement. Upon written request, you
427
+ will certify in writing that you have complied with your
428
+ commitments under this section. Upon any termination of
429
+ this Agreement all provisions survive except for the
430
+ license grant provisions.
431
+
432
+
433
+ 1.7. General
434
+
435
+ If you wish to assign this Agreement or your rights and
436
+ obligations, including by merger, consolidation, dissolution
437
+ or operation of law, contact NVIDIA to ask for permission. Any
438
+ attempted assignment not approved by NVIDIA in writing shall
439
+ be void and of no effect. NVIDIA may assign, delegate or
440
+ transfer this Agreement and its rights and obligations, and if
441
+ to a non-affiliate you will be notified.
442
+
443
+ You agree to cooperate with NVIDIA and provide reasonably
444
+ requested information to verify your compliance with this
445
+ Agreement.
446
+
447
+ This Agreement will be governed in all respects by the laws of
448
+ the United States and of the State of Delaware as those laws
449
+ are applied to contracts entered into and performed entirely
450
+ within Delaware by Delaware residents, without regard to the
451
+ conflicts of laws principles. The United Nations Convention on
452
+ Contracts for the International Sale of Goods is specifically
453
+ disclaimed. You agree to all terms of this Agreement in the
454
+ English language.
455
+
456
+ The state or federal courts residing in Santa Clara County,
457
+ California shall have exclusive jurisdiction over any dispute
458
+ or claim arising out of this Agreement. Notwithstanding this,
459
+ you agree that NVIDIA shall still be allowed to apply for
460
+ injunctive remedies or an equivalent type of urgent legal
461
+ relief in any jurisdiction.
462
+
463
+ If any court of competent jurisdiction determines that any
464
+ provision of this Agreement is illegal, invalid or
465
+ unenforceable, such provision will be construed as limited to
466
+ the extent necessary to be consistent with and fully
467
+ enforceable under the law and the remaining provisions will
468
+ remain in full force and effect. Unless otherwise specified,
469
+ remedies are cumulative.
470
+
471
+ Each party acknowledges and agrees that the other is an
472
+ independent contractor in the performance of this Agreement.
473
+
474
+ The SDK has been developed entirely at private expense and is
475
+ “commercial items” consisting of “commercial computer
476
+ software” and “commercial computer software
477
+ documentation” provided with RESTRICTED RIGHTS. Use,
478
+ duplication or disclosure by the U.S. Government or a U.S.
479
+ Government subcontractor is subject to the restrictions in
480
+ this Agreement pursuant to DFARS 227.7202-3(a) or as set forth
481
+ in subparagraphs (c)(1) and (2) of the Commercial Computer
482
+ Software - Restricted Rights clause at FAR 52.227-19, as
483
+ applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas
484
+ Expressway, Santa Clara, CA 95051.
485
+
486
+ The SDK is subject to United States export laws and
487
+ regulations. You agree that you will not ship, transfer or
488
+ export the SDK into any country, or use the SDK in any manner,
489
+ prohibited by the United States Bureau of Industry and
490
+ Security or economic sanctions regulations administered by the
491
+ U.S. Department of Treasury’s Office of Foreign Assets
492
+ Control (OFAC), or any applicable export laws, restrictions or
493
+ regulations. These laws include restrictions on destinations,
494
+ end users and end use. By accepting this Agreement, you
495
+ confirm that you are not a resident or citizen of any country
496
+ currently embargoed by the U.S. and that you are not otherwise
497
+ prohibited from receiving the SDK.
498
+
499
+ Any notice delivered by NVIDIA to you under this Agreement
500
+ will be delivered via mail, email or fax. You agree that any
501
+ notices that NVIDIA sends you electronically will satisfy any
502
+ legal communication requirements. Please direct your legal
503
+ notices or other correspondence to NVIDIA Corporation, 2788
504
+ San Tomas Expressway, Santa Clara, California 95051, United
505
+ States of America, Attention: Legal Department.
506
+
507
+ This Agreement and any exhibits incorporated into this
508
+ Agreement constitute the entire agreement of the parties with
509
+ respect to the subject matter of this Agreement and supersede
510
+ all prior negotiations or documentation exchanged between the
511
+ parties relating to this SDK license. Any additional and/or
512
+ conflicting terms on documents issued by you are null, void,
513
+ and invalid. Any amendment or waiver under this Agreement
514
+ shall be in writing and signed by representatives of both
515
+ parties.
516
+
517
+
518
+ 2. CUDA Toolkit Supplement to Software License Agreement for
519
+ NVIDIA Software Development Kits
520
+ ------------------------------------------------------------
521
+
522
+
523
+ Release date: August 16, 2018
524
+ -----------------------------
525
+
526
+ The terms in this supplement govern your use of the NVIDIA
527
+ CUDA Toolkit SDK under the terms of your license agreement
528
+ (“Agreement”) as modified by this supplement. Capitalized
529
+ terms used but not defined below have the meaning assigned to
530
+ them in the Agreement.
531
+
532
+ This supplement is an exhibit to the Agreement and is
533
+ incorporated as an integral part of the Agreement. In the
534
+ event of conflict between the terms in this supplement and the
535
+ terms in the Agreement, the terms in this supplement govern.
536
+
537
+
538
+ 2.1. License Scope
539
+
540
+ The SDK is licensed for you to develop applications only for
541
+ use in systems with NVIDIA GPUs.
542
+
543
+
544
+ 2.2. Distribution
545
+
546
+ The portions of the SDK that are distributable under the
547
+ Agreement are listed in Attachment A.
548
+
549
+
550
+ 2.3. Operating Systems
551
+
552
+ Those portions of the SDK designed exclusively for use on the
553
+ Linux or FreeBSD operating systems, or other operating systems
554
+ derived from the source code to these operating systems, may
555
+ be copied and redistributed for use in accordance with this
556
+ Agreement, provided that the object code files are not
557
+ modified in any way (except for unzipping of compressed
558
+ files).
559
+
560
+
561
+ 2.4. Audio and Video Encoders and Decoders
562
+
563
+ You acknowledge and agree that it is your sole responsibility
564
+ to obtain any additional third-party licenses required to
565
+ make, have made, use, have used, sell, import, and offer for
566
+ sale your products or services that include or incorporate any
567
+ third-party software and content relating to audio and/or
568
+ video encoders and decoders from, including but not limited
569
+ to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A.,
570
+ MPEG-LA, and Coding Technologies. NVIDIA does not grant to you
571
+ under this Agreement any necessary patent or other rights with
572
+ respect to any audio and/or video encoders and decoders.
573
+
574
+
575
+ 2.5. Licensing
576
+
577
+ If the distribution terms in this Agreement are not suitable
578
+ for your organization, or for any questions regarding this
579
+ Agreement, please contact NVIDIA at
580
581
+
582
+
583
+ 2.6. Attachment A
584
+
585
+ The following portions of the SDK are distributable under the
586
+ Agreement:
587
+
588
+ Component
589
+
590
+ CUDA Runtime
591
+
592
+ Windows
593
+
594
+ cudart.dll, cudart_static.lib, cudadevrt.lib
595
+
596
+ Mac OSX
597
+
598
+ libcudart.dylib, libcudart_static.a, libcudadevrt.a
599
+
600
+ Linux
601
+
602
+ libcudart.so, libcudart_static.a, libcudadevrt.a
603
+
604
+ Android
605
+
606
+ libcudart.so, libcudart_static.a, libcudadevrt.a
607
+
608
+ Component
609
+
610
+ CUDA FFT Library
611
+
612
+ Windows
613
+
614
+ cufft.dll, cufftw.dll, cufft.lib, cufftw.lib
615
+
616
+ Mac OSX
617
+
618
+ libcufft.dylib, libcufft_static.a, libcufftw.dylib,
619
+ libcufftw_static.a
620
+
621
+ Linux
622
+
623
+ libcufft.so, libcufft_static.a, libcufftw.so,
624
+ libcufftw_static.a
625
+
626
+ Android
627
+
628
+ libcufft.so, libcufft_static.a, libcufftw.so,
629
+ libcufftw_static.a
630
+
631
+ Component
632
+
633
+ CUDA BLAS Library
634
+
635
+ Windows
636
+
637
+ cublas.dll, cublasLt.dll
638
+
639
+ Mac OSX
640
+
641
+ libcublas.dylib, libcublasLt.dylib, libcublas_static.a,
642
+ libcublasLt_static.a
643
+
644
+ Linux
645
+
646
+ libcublas.so, libcublasLt.so, libcublas_static.a,
647
+ libcublasLt_static.a
648
+
649
+ Android
650
+
651
+ libcublas.so, libcublasLt.so, libcublas_static.a,
652
+ libcublasLt_static.a
653
+
654
+ Component
655
+
656
+ NVIDIA "Drop-in" BLAS Library
657
+
658
+ Windows
659
+
660
+ nvblas.dll
661
+
662
+ Mac OSX
663
+
664
+ libnvblas.dylib
665
+
666
+ Linux
667
+
668
+ libnvblas.so
669
+
670
+ Component
671
+
672
+ CUDA Sparse Matrix Library
673
+
674
+ Windows
675
+
676
+ cusparse.dll, cusparse.lib
677
+
678
+ Mac OSX
679
+
680
+ libcusparse.dylib, libcusparse_static.a
681
+
682
+ Linux
683
+
684
+ libcusparse.so, libcusparse_static.a
685
+
686
+ Android
687
+
688
+ libcusparse.so, libcusparse_static.a
689
+
690
+ Component
691
+
692
+ CUDA Linear Solver Library
693
+
694
+ Windows
695
+
696
+ cusolver.dll, cusolver.lib
697
+
698
+ Mac OSX
699
+
700
+ libcusolver.dylib, libcusolver_static.a
701
+
702
+ Linux
703
+
704
+ libcusolver.so, libcusolver_static.a
705
+
706
+ Android
707
+
708
+ libcusolver.so, libcusolver_static.a
709
+
710
+ Component
711
+
712
+ CUDA Random Number Generation Library
713
+
714
+ Windows
715
+
716
+ curand.dll, curand.lib
717
+
718
+ Mac OSX
719
+
720
+ libcurand.dylib, libcurand_static.a
721
+
722
+ Linux
723
+
724
+ libcurand.so, libcurand_static.a
725
+
726
+ Android
727
+
728
+ libcurand.so, libcurand_static.a
729
+
730
+ Component
731
+
732
+ CUDA Accelerated Graph Library
733
+
734
+ Component
735
+
736
+ NVIDIA Performance Primitives Library
737
+
738
+ Windows
739
+
740
+ nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll,
741
+ nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll,
742
+ nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib,
743
+ nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll,
744
+ nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib
745
+
746
+ Mac OSX
747
+
748
+ libnppc.dylib, libnppc_static.a, libnppial.dylib,
749
+ libnppial_static.a, libnppicc.dylib, libnppicc_static.a,
750
+ libnppicom.dylib, libnppicom_static.a, libnppidei.dylib,
751
+ libnppidei_static.a, libnppif.dylib, libnppif_static.a,
752
+ libnppig.dylib, libnppig_static.a, libnppim.dylib,
753
+ libnppisu_static.a, libnppitc.dylib, libnppitc_static.a,
754
+ libnpps.dylib, libnpps_static.a
755
+
756
+ Linux
757
+
758
+ libnppc.so, libnppc_static.a, libnppial.so,
759
+ libnppial_static.a, libnppicc.so, libnppicc_static.a,
760
+ libnppicom.so, libnppicom_static.a, libnppidei.so,
761
+ libnppidei_static.a, libnppif.so, libnppif_static.a
762
+ libnppig.so, libnppig_static.a, libnppim.so,
763
+ libnppim_static.a, libnppist.so, libnppist_static.a,
764
+ libnppisu.so, libnppisu_static.a, libnppitc.so
765
+ libnppitc_static.a, libnpps.so, libnpps_static.a
766
+
767
+ Android
768
+
769
+ libnppc.so, libnppc_static.a, libnppial.so,
770
+ libnppial_static.a, libnppicc.so, libnppicc_static.a,
771
+ libnppicom.so, libnppicom_static.a, libnppidei.so,
772
+ libnppidei_static.a, libnppif.so, libnppif_static.a
773
+ libnppig.so, libnppig_static.a, libnppim.so,
774
+ libnppim_static.a, libnppist.so, libnppist_static.a,
775
+ libnppisu.so, libnppisu_static.a, libnppitc.so
776
+ libnppitc_static.a, libnpps.so, libnpps_static.a
777
+
778
+ Component
779
+
780
+ NVIDIA JPEG Library
781
+
782
+ Linux
783
+
784
+ libnvjpeg.so, libnvjpeg_static.a
785
+
786
+ Component
787
+
788
+ Internal common library required for statically linking to
789
+ cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP
790
+
791
+ Mac OSX
792
+
793
+ libculibos.a
794
+
795
+ Linux
796
+
797
+ libculibos.a
798
+
799
+ Component
800
+
801
+ NVIDIA Runtime Compilation Library and Header
802
+
803
+ All
804
+
805
+ nvrtc.h
806
+
807
+ Windows
808
+
809
+ nvrtc.dll, nvrtc-builtins.dll
810
+
811
+ Mac OSX
812
+
813
+ libnvrtc.dylib, libnvrtc-builtins.dylib
814
+
815
+ Linux
816
+
817
+ libnvrtc.so, libnvrtc-builtins.so
818
+
819
+ Component
820
+
821
+ NVIDIA Optimizing Compiler Library
822
+
823
+ Windows
824
+
825
+ nvvm.dll
826
+
827
+ Mac OSX
828
+
829
+ libnvvm.dylib
830
+
831
+ Linux
832
+
833
+ libnvvm.so
834
+
835
+ Component
836
+
837
+ NVIDIA Common Device Math Functions Library
838
+
839
+ Windows
840
+
841
+ libdevice.10.bc
842
+
843
+ Mac OSX
844
+
845
+ libdevice.10.bc
846
+
847
+ Linux
848
+
849
+ libdevice.10.bc
850
+
851
+ Component
852
+
853
+ CUDA Occupancy Calculation Header Library
854
+
855
+ All
856
+
857
+ cuda_occupancy.h
858
+
859
+ Component
860
+
861
+ CUDA Half Precision Headers
862
+
863
+ All
864
+
865
+ cuda_fp16.h, cuda_fp16.hpp
866
+
867
+ Component
868
+
869
+ CUDA Profiling Tools Interface (CUPTI) Library
870
+
871
+ Windows
872
+
873
+ cupti.dll
874
+
875
+ Mac OSX
876
+
877
+ libcupti.dylib
878
+
879
+ Linux
880
+
881
+ libcupti.so
882
+
883
+ Component
884
+
885
+ NVIDIA Tools Extension Library
886
+
887
+ Windows
888
+
889
+ nvToolsExt.dll, nvToolsExt.lib
890
+
891
+ Mac OSX
892
+
893
+ libnvToolsExt.dylib
894
+
895
+ Linux
896
+
897
+ libnvToolsExt.so
898
+
899
+ Component
900
+
901
+ NVIDIA CUDA Driver Libraries
902
+
903
+ Linux
904
+
905
+ libcuda.so, libnvidia-fatbinaryloader.so,
906
+ libnvidia-ptxjitcompiler.so
907
+
908
+ The NVIDIA CUDA Driver Libraries are only distributable in
909
+ applications that meet this criteria:
910
+
911
+ 1. The application was developed starting from a NVIDIA CUDA
912
+ container obtained from Docker Hub or the NVIDIA GPU
913
+ Cloud, and
914
+
915
+ 2. The resulting application is packaged as a Docker
916
+ container and distributed to users on Docker Hub or the
917
+ NVIDIA GPU Cloud only.
918
+
919
+
920
+ 2.7. Attachment B
921
+
922
+
923
+ Additional Licensing Obligations
924
+
925
+ The following third party components included in the SOFTWARE
926
+ are licensed to Licensee pursuant to the following terms and
927
+ conditions:
928
+
929
+ 1. Licensee's use of the GDB third party component is
930
+ subject to the terms and conditions of GNU GPL v3:
931
+
932
+ This product includes copyrighted third-party software licensed
933
+ under the terms of the GNU General Public License v3 ("GPL v3").
934
+ All third-party software packages are copyright by their respective
935
+ authors. GPL v3 terms and conditions are hereby incorporated into
936
+ the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt
937
+
938
+ Consistent with these licensing requirements, the software
939
+ listed below is provided under the terms of the specified
940
+ open source software licenses. To obtain source code for
941
+ software provided under licenses that require
942
+ redistribution of source code, including the GNU General
943
+ Public License (GPL) and GNU Lesser General Public License
944
+ (LGPL), contact [email protected]. This offer is
945
+ valid for a period of three (3) years from the date of the
946
+ distribution of this product by NVIDIA CORPORATION.
947
+
948
+ Component License
949
+ CUDA-GDB GPL v3
950
+
951
+ 2. Licensee represents and warrants that any and all third
952
+ party licensing and/or royalty payment obligations in
953
+ connection with Licensee's use of the H.264 video codecs
954
+ are solely the responsibility of Licensee.
955
+
956
+ 3. Licensee's use of the Thrust library is subject to the
957
+ terms and conditions of the Apache License Version 2.0.
958
+ All third-party software packages are copyright by their
959
+ respective authors. Apache License Version 2.0 terms and
960
+ conditions are hereby incorporated into the Agreement by
961
+ this reference.
962
+ http://www.apache.org/licenses/LICENSE-2.0.html
963
+
964
+ In addition, Licensee acknowledges the following notice:
965
+ Thrust includes source code from the Boost Iterator,
966
+ Tuple, System, and Random Number libraries.
967
+
968
+ Boost Software License - Version 1.0 - August 17th, 2003
969
+ . . . .
970
+
971
+ Permission is hereby granted, free of charge, to any person or
972
+ organization obtaining a copy of the software and accompanying
973
+ documentation covered by this license (the "Software") to use,
974
+ reproduce, display, distribute, execute, and transmit the Software,
975
+ and to prepare derivative works of the Software, and to permit
976
+ third-parties to whom the Software is furnished to do so, all
977
+ subject to the following:
978
+
979
+ The copyright notices in the Software and this entire statement,
980
+ including the above license grant, this restriction and the following
981
+ disclaimer, must be included in all copies of the Software, in whole
982
+ or in part, and all derivative works of the Software, unless such
983
+ copies or derivative works are solely in the form of machine-executable
984
+ object code generated by a source language processor.
985
+
986
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
987
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
988
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
989
+ NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
990
+ ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
991
+ OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
992
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
993
+ OTHER DEALINGS IN THE SOFTWARE.
994
+
995
+ 4. Licensee's use of the LLVM third party component is
996
+ subject to the following terms and conditions:
997
+
998
+ ======================================================
999
+ LLVM Release License
1000
+ ======================================================
1001
+ University of Illinois/NCSA
1002
+ Open Source License
1003
+
1004
+ Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1005
+ All rights reserved.
1006
+
1007
+ Developed by:
1008
+
1009
+ LLVM Team
1010
+
1011
+ University of Illinois at Urbana-Champaign
1012
+
1013
+ http://llvm.org
1014
+
1015
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1016
+ of this software and associated documentation files (the "Software"), to
1017
+ deal with the Software without restriction, including without limitation the
1018
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1019
+ sell copies of the Software, and to permit persons to whom the Software is
1020
+ furnished to do so, subject to the following conditions:
1021
+
1022
+ * Redistributions of source code must retain the above copyright notice,
1023
+ this list of conditions and the following disclaimers.
1024
+
1025
+ * Redistributions in binary form must reproduce the above copyright
1026
+ notice, this list of conditions and the following disclaimers in the
1027
+ documentation and/or other materials provided with the distribution.
1028
+
1029
+ * Neither the names of the LLVM Team, University of Illinois at Urbana-
1030
+ Champaign, nor the names of its contributors may be used to endorse or
1031
+ promote products derived from this Software without specific prior
1032
+ written permission.
1033
+
1034
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1035
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1036
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1037
+ THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
1038
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1039
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1040
+ DEALINGS WITH THE SOFTWARE.
1041
+
1042
+ 5. Licensee's use (e.g. nvprof) of the PCRE third party
1043
+ component is subject to the following terms and
1044
+ conditions:
1045
+
1046
+ ------------
1047
+ PCRE LICENCE
1048
+ ------------
1049
+ PCRE is a library of functions to support regular expressions whose syntax
1050
+ and semantics are as close as possible to those of the Perl 5 language.
1051
+ Release 8 of PCRE is distributed under the terms of the "BSD" licence, as
1052
+ specified below. The documentation for PCRE, supplied in the "doc"
1053
+ directory, is distributed under the same terms as the software itself. The
1054
+ basic library functions are written in C and are freestanding. Also
1055
+ included in the distribution is a set of C++ wrapper functions, and a just-
1056
+ in-time compiler that can be used to optimize pattern matching. These are
1057
+ both optional features that can be omitted when the library is built.
1058
+
1059
+ THE BASIC LIBRARY FUNCTIONS
1060
+ ---------------------------
1061
+ Written by: Philip Hazel
1062
+ Email local part: ph10
1063
+ Email domain: cam.ac.uk
1064
+ University of Cambridge Computing Service,
1065
+ Cambridge, England.
1066
+ Copyright (c) 1997-2012 University of Cambridge
1067
+ All rights reserved.
1068
+
1069
+ PCRE JUST-IN-TIME COMPILATION SUPPORT
1070
+ -------------------------------------
1071
+ Written by: Zoltan Herczeg
1072
+ Email local part: hzmester
1073
+ Emain domain: freemail.hu
1074
+ Copyright(c) 2010-2012 Zoltan Herczeg
1075
+ All rights reserved.
1076
+
1077
+ STACK-LESS JUST-IN-TIME COMPILER
1078
+ --------------------------------
1079
+ Written by: Zoltan Herczeg
1080
+ Email local part: hzmester
1081
+ Emain domain: freemail.hu
1082
+ Copyright(c) 2009-2012 Zoltan Herczeg
1083
+ All rights reserved.
1084
+
1085
+ THE C++ WRAPPER FUNCTIONS
1086
+ -------------------------
1087
+ Contributed by: Google Inc.
1088
+ Copyright (c) 2007-2012, Google Inc.
1089
+ All rights reserved.
1090
+
1091
+ THE "BSD" LICENCE
1092
+ -----------------
1093
+ Redistribution and use in source and binary forms, with or without
1094
+ modification, are permitted provided that the following conditions are met:
1095
+
1096
+ * Redistributions of source code must retain the above copyright notice,
1097
+ this list of conditions and the following disclaimer.
1098
+
1099
+ * Redistributions in binary form must reproduce the above copyright
1100
+ notice, this list of conditions and the following disclaimer in the
1101
+ documentation and/or other materials provided with the distribution.
1102
+
1103
+ * Neither the name of the University of Cambridge nor the name of Google
1104
+ Inc. nor the names of their contributors may be used to endorse or
1105
+ promote products derived from this software without specific prior
1106
+ written permission.
1107
+
1108
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1109
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1110
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1111
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1112
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1113
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1114
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1115
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1116
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1117
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1118
+ POSSIBILITY OF SUCH DAMAGE.
1119
+
1120
+ 6. Some of the cuBLAS library routines were written by or
1121
+ derived from code written by Vasily Volkov and are subject
1122
+ to the Modified Berkeley Software Distribution License as
1123
+ follows:
1124
+
1125
+ Copyright (c) 2007-2009, Regents of the University of California
1126
+
1127
+ All rights reserved.
1128
+
1129
+ Redistribution and use in source and binary forms, with or without
1130
+ modification, are permitted provided that the following conditions are
1131
+ met:
1132
+ * Redistributions of source code must retain the above copyright
1133
+ notice, this list of conditions and the following disclaimer.
1134
+ * Redistributions in binary form must reproduce the above
1135
+ copyright notice, this list of conditions and the following
1136
+ disclaimer in the documentation and/or other materials provided
1137
+ with the distribution.
1138
+ * Neither the name of the University of California, Berkeley nor
1139
+ the names of its contributors may be used to endorse or promote
1140
+ products derived from this software without specific prior
1141
+ written permission.
1142
+
1143
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
1144
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1145
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1146
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
1147
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1148
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1149
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1150
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1151
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1152
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1153
+ POSSIBILITY OF SUCH DAMAGE.
1154
+
1155
+ 7. Some of the cuBLAS library routines were written by or
1156
+ derived from code written by Davide Barbieri and are
1157
+ subject to the Modified Berkeley Software Distribution
1158
+ License as follows:
1159
+
1160
+ Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata.
1161
+
1162
+ All rights reserved.
1163
+
1164
+ Redistribution and use in source and binary forms, with or without
1165
+ modification, are permitted provided that the following conditions are
1166
+ met:
1167
+ * Redistributions of source code must retain the above copyright
1168
+ notice, this list of conditions and the following disclaimer.
1169
+ * Redistributions in binary form must reproduce the above
1170
+ copyright notice, this list of conditions and the following
1171
+ disclaimer in the documentation and/or other materials provided
1172
+ with the distribution.
1173
+ * The name of the author may not be used to endorse or promote
1174
+ products derived from this software without specific prior
1175
+ written permission.
1176
+
1177
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
1178
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1179
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1180
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
1181
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1182
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1183
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1184
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1185
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1186
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1187
+ POSSIBILITY OF SUCH DAMAGE.
1188
+
1189
+ 8. Some of the cuBLAS library routines were derived from
1190
+ code developed by the University of Tennessee and are
1191
+ subject to the Modified Berkeley Software Distribution
1192
+ License as follows:
1193
+
1194
+ Copyright (c) 2010 The University of Tennessee.
1195
+
1196
+ All rights reserved.
1197
+
1198
+ Redistribution and use in source and binary forms, with or without
1199
+ modification, are permitted provided that the following conditions are
1200
+ met:
1201
+ * Redistributions of source code must retain the above copyright
1202
+ notice, this list of conditions and the following disclaimer.
1203
+ * Redistributions in binary form must reproduce the above
1204
+ copyright notice, this list of conditions and the following
1205
+ disclaimer listed in this license in the documentation and/or
1206
+ other materials provided with the distribution.
1207
+ * Neither the name of the copyright holders nor the names of its
1208
+ contributors may be used to endorse or promote products derived
1209
+ from this software without specific prior written permission.
1210
+
1211
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1212
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1213
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1214
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1215
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1216
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1217
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1218
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1219
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1220
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1221
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1222
+
1223
+ 9. Some of the cuBLAS library routines were written by or
1224
+ derived from code written by Jonathan Hogg and are subject
1225
+ to the Modified Berkeley Software Distribution License as
1226
+ follows:
1227
+
1228
+ Copyright (c) 2012, The Science and Technology Facilities Council (STFC).
1229
+
1230
+ All rights reserved.
1231
+
1232
+ Redistribution and use in source and binary forms, with or without
1233
+ modification, are permitted provided that the following conditions are
1234
+ met:
1235
+ * Redistributions of source code must retain the above copyright
1236
+ notice, this list of conditions and the following disclaimer.
1237
+ * Redistributions in binary form must reproduce the above
1238
+ copyright notice, this list of conditions and the following
1239
+ disclaimer in the documentation and/or other materials provided
1240
+ with the distribution.
1241
+ * Neither the name of the STFC nor the names of its contributors
1242
+ may be used to endorse or promote products derived from this
1243
+ software without specific prior written permission.
1244
+
1245
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1246
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1247
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1248
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE
1249
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1250
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1251
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
1252
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1253
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
1254
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
1255
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1256
+
1257
+ 10. Some of the cuBLAS library routines were written by or
1258
+ derived from code written by Ahmad M. Abdelfattah, David
1259
+ Keyes, and Hatem Ltaief, and are subject to the Apache
1260
+ License, Version 2.0, as follows:
1261
+
1262
+ -- (C) Copyright 2013 King Abdullah University of Science and Technology
1263
+ Authors:
1264
+ Ahmad Abdelfattah ([email protected])
1265
+ David Keyes ([email protected])
1266
+ Hatem Ltaief ([email protected])
1267
+
1268
+ Redistribution and use in source and binary forms, with or without
1269
+ modification, are permitted provided that the following conditions
1270
+ are met:
1271
+
1272
+ * Redistributions of source code must retain the above copyright
1273
+ notice, this list of conditions and the following disclaimer.
1274
+ * Redistributions in binary form must reproduce the above copyright
1275
+ notice, this list of conditions and the following disclaimer in the
1276
+ documentation and/or other materials provided with the distribution.
1277
+ * Neither the name of the King Abdullah University of Science and
1278
+ Technology nor the names of its contributors may be used to endorse
1279
+ or promote products derived from this software without specific prior
1280
+ written permission.
1281
+
1282
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1283
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1284
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1285
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1286
+ HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1287
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1288
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1289
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1290
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1291
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1292
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
1293
+
1294
+ 11. Some of the cuSPARSE library routines were written by or
1295
+ derived from code written by Li-Wen Chang and are subject
1296
+ to the NCSA Open Source License as follows:
1297
+
1298
+ Copyright (c) 2012, University of Illinois.
1299
+
1300
+ All rights reserved.
1301
+
1302
+ Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu
1303
+
1304
+ Permission is hereby granted, free of charge, to any person obtaining
1305
+ a copy of this software and associated documentation files (the
1306
+ "Software"), to deal with the Software without restriction, including
1307
+ without limitation the rights to use, copy, modify, merge, publish,
1308
+ distribute, sublicense, and/or sell copies of the Software, and to
1309
+ permit persons to whom the Software is furnished to do so, subject to
1310
+ the following conditions:
1311
+ * Redistributions of source code must retain the above copyright
1312
+ notice, this list of conditions and the following disclaimer.
1313
+ * Redistributions in binary form must reproduce the above
1314
+ copyright notice, this list of conditions and the following
1315
+ disclaimers in the documentation and/or other materials provided
1316
+ with the distribution.
1317
+ * Neither the names of IMPACT Group, University of Illinois, nor
1318
+ the names of its contributors may be used to endorse or promote
1319
+ products derived from this Software without specific prior
1320
+ written permission.
1321
+
1322
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1323
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1324
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1325
+ NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
1326
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1327
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1328
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
1329
+ SOFTWARE.
1330
+
1331
+ 12. Some of the cuRAND library routines were written by or
1332
+ derived from code written by Mutsuo Saito and Makoto
1333
+ Matsumoto and are subject to the following license:
1334
+
1335
+ Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima
1336
+ University. All rights reserved.
1337
+
1338
+ Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima
1339
+ University and University of Tokyo. All rights reserved.
1340
+
1341
+ Redistribution and use in source and binary forms, with or without
1342
+ modification, are permitted provided that the following conditions are
1343
+ met:
1344
+ * Redistributions of source code must retain the above copyright
1345
+ notice, this list of conditions and the following disclaimer.
1346
+ * Redistributions in binary form must reproduce the above
1347
+ copyright notice, this list of conditions and the following
1348
+ disclaimer in the documentation and/or other materials provided
1349
+ with the distribution.
1350
+ * Neither the name of the Hiroshima University nor the names of
1351
+ its contributors may be used to endorse or promote products
1352
+ derived from this software without specific prior written
1353
+ permission.
1354
+
1355
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1356
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1357
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1358
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1359
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1360
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1361
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1362
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1363
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1364
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1365
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1366
+
1367
+ 13. Some of the cuRAND library routines were derived from
1368
+ code developed by D. E. Shaw Research and are subject to
1369
+ the following license:
1370
+
1371
+ Copyright 2010-2011, D. E. Shaw Research.
1372
+
1373
+ All rights reserved.
1374
+
1375
+ Redistribution and use in source and binary forms, with or without
1376
+ modification, are permitted provided that the following conditions are
1377
+ met:
1378
+ * Redistributions of source code must retain the above copyright
1379
+ notice, this list of conditions, and the following disclaimer.
1380
+ * Redistributions in binary form must reproduce the above
1381
+ copyright notice, this list of conditions, and the following
1382
+ disclaimer in the documentation and/or other materials provided
1383
+ with the distribution.
1384
+ * Neither the name of D. E. Shaw Research nor the names of its
1385
+ contributors may be used to endorse or promote products derived
1386
+ from this software without specific prior written permission.
1387
+
1388
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1389
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1390
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1391
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1392
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1393
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1394
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1395
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1396
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1397
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1398
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1399
+
1400
+ 14. Some of the Math library routines were written by or
1401
+ derived from code developed by Norbert Juffa and are
1402
+ subject to the following license:
1403
+
1404
+ Copyright (c) 2015-2017, Norbert Juffa
1405
+ All rights reserved.
1406
+
1407
+ Redistribution and use in source and binary forms, with or without
1408
+ modification, are permitted provided that the following conditions
1409
+ are met:
1410
+
1411
+ 1. Redistributions of source code must retain the above copyright
1412
+ notice, this list of conditions and the following disclaimer.
1413
+
1414
+ 2. Redistributions in binary form must reproduce the above copyright
1415
+ notice, this list of conditions and the following disclaimer in the
1416
+ documentation and/or other materials provided with the distribution.
1417
+
1418
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1419
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1420
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1421
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1422
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1423
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1424
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1425
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1426
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1427
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1428
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1429
+
1430
+ 15. Licensee's use of the lz4 third party component is
1431
+ subject to the following terms and conditions:
1432
+
1433
+ Copyright (C) 2011-2013, Yann Collet.
1434
+ BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
1435
+
1436
+ Redistribution and use in source and binary forms, with or without
1437
+ modification, are permitted provided that the following conditions are
1438
+ met:
1439
+
1440
+ * Redistributions of source code must retain the above copyright
1441
+ notice, this list of conditions and the following disclaimer.
1442
+ * Redistributions in binary form must reproduce the above
1443
+ copyright notice, this list of conditions and the following disclaimer
1444
+ in the documentation and/or other materials provided with the
1445
+ distribution.
1446
+
1447
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1448
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1449
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1450
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1451
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1452
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1453
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1454
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1455
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1456
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1457
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1458
+
1459
+ 16. The NPP library uses code from the Boost Math Toolkit,
1460
+ and is subject to the following license:
1461
+
1462
+ Boost Software License - Version 1.0 - August 17th, 2003
1463
+ . . . .
1464
+
1465
+ Permission is hereby granted, free of charge, to any person or
1466
+ organization obtaining a copy of the software and accompanying
1467
+ documentation covered by this license (the "Software") to use,
1468
+ reproduce, display, distribute, execute, and transmit the Software,
1469
+ and to prepare derivative works of the Software, and to permit
1470
+ third-parties to whom the Software is furnished to do so, all
1471
+ subject to the following:
1472
+
1473
+ The copyright notices in the Software and this entire statement,
1474
+ including the above license grant, this restriction and the following
1475
+ disclaimer, must be included in all copies of the Software, in whole
1476
+ or in part, and all derivative works of the Software, unless such
1477
+ copies or derivative works are solely in the form of machine-executable
1478
+ object code generated by a source language processor.
1479
+
1480
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1481
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1482
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
1483
+ NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
1484
+ ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
1485
+ OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
1486
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1487
+ OTHER DEALINGS IN THE SOFTWARE.
1488
+
1489
+ 17. Portions of the Nsight Eclipse Edition is subject to the
1490
+ following license:
1491
+
1492
+ The Eclipse Foundation makes available all content in this plug-in
1493
+ ("Content"). Unless otherwise indicated below, the Content is provided
1494
+ to you under the terms and conditions of the Eclipse Public License
1495
+ Version 1.0 ("EPL"). A copy of the EPL is available at http://
1496
+ www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program"
1497
+ will mean the Content.
1498
+
1499
+ If you did not receive this Content directly from the Eclipse
1500
+ Foundation, the Content is being redistributed by another party
1501
+ ("Redistributor") and different terms and conditions may apply to your
1502
+ use of any object code in the Content. Check the Redistributor's
1503
+ license that was provided with the Content. If no such license exists,
1504
+ contact the Redistributor. Unless otherwise indicated below, the terms
1505
+ and conditions of the EPL still apply to any source code in the
1506
+ Content and such source code may be obtained at http://www.eclipse.org.
1507
+
1508
+ 18. Some of the cuBLAS library routines uses code from
1509
+ OpenAI, which is subject to the following license:
1510
+
1511
+ License URL
1512
+ https://github.com/openai/openai-gemm/blob/master/LICENSE
1513
+
1514
+ License Text
1515
+ The MIT License
1516
+
1517
+ Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc.
1518
+
1519
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1520
+ of this software and associated documentation files (the "Software"), to deal
1521
+ in the Software without restriction, including without limitation the rights
1522
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1523
+ copies of the Software, and to permit persons to whom the Software is
1524
+ furnished to do so, subject to the following conditions:
1525
+
1526
+ The above copyright notice and this permission notice shall be included in
1527
+ all copies or substantial portions of the Software.
1528
+
1529
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1530
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1531
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1532
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1533
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1534
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1535
+ THE SOFTWARE.
1536
+
1537
+ 19. Licensee's use of the Visual Studio Setup Configuration
1538
+ Samples is subject to the following license:
1539
+
1540
+ The MIT License (MIT)
1541
+ Copyright (C) Microsoft Corporation. All rights reserved.
1542
+
1543
+ Permission is hereby granted, free of charge, to any person
1544
+ obtaining a copy of this software and associated documentation
1545
+ files (the "Software"), to deal in the Software without restriction,
1546
+ including without limitation the rights to use, copy, modify, merge,
1547
+ publish, distribute, sublicense, and/or sell copies of the Software,
1548
+ and to permit persons to whom the Software is furnished to do so,
1549
+ subject to the following conditions:
1550
+
1551
+ The above copyright notice and this permission notice shall be included
1552
+ in all copies or substantial portions of the Software.
1553
+
1554
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1555
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1556
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1557
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1558
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1559
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1560
+
1561
+ 20. Licensee's use of linmath.h header for CPU functions for
1562
+ GL vector/matrix operations from lunarG is subject to the
1563
+ Apache License Version 2.0.
1564
+
1565
+ 21. The DX12-CUDA sample uses the d3dx12.h header, which is
1566
+ subject to the MIT license .
1567
+
1568
+ -----------------
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/METADATA ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: nvidia-curand-cu11
3
+ Version: 10.3.0.86
4
+ Summary: CURAND native runtime libraries
5
+ Home-page: https://developer.nvidia.com/cuda-zone
6
+ Author: Nvidia CUDA Installer Team
7
+ Author-email: [email protected]
8
+ License: NVIDIA Proprietary Software
9
+ Keywords: cuda,nvidia,runtime,machine learning,deep learning
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: Other/Proprietary License
15
+ Classifier: Natural Language :: English
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.5
18
+ Classifier: Programming Language :: Python :: 3.6
19
+ Classifier: Programming Language :: Python :: 3.7
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3 :: Only
25
+ Classifier: Topic :: Scientific/Engineering
26
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
27
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
+ Classifier: Topic :: Software Development
29
+ Classifier: Topic :: Software Development :: Libraries
30
+ Classifier: Operating System :: Microsoft :: Windows
31
+ Classifier: Operating System :: POSIX :: Linux
32
+ Requires-Python: >=3
33
+ License-File: License.txt
34
+
35
+ CURAND native runtime libraries
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/RECORD ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ nvidia/__pycache__/__init__.cpython-310.pyc,,
3
+ nvidia/curand/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ nvidia/curand/__pycache__/__init__.cpython-310.pyc,,
5
+ nvidia/curand/include/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ nvidia/curand/include/__pycache__/__init__.cpython-310.pyc,,
7
+ nvidia/curand/include/curand.h,sha256=duUMdlPliB_djlgE8rv-E8J3Awre2pTDLiqc5eK-qZ0,43965
8
+ nvidia/curand/include/curand_discrete.h,sha256=2qD3BkI622XEu0444wVP7HeYkKAx0Rjr2HDhqU4SA7E,3486
9
+ nvidia/curand/include/curand_discrete2.h,sha256=ZrQTO5R9x83AMX88uq7M8M94DLSC5VEz0PAkfcwtQeg,10883
10
+ nvidia/curand/include/curand_globals.h,sha256=bES1Kx0NrATXk1DReMMkqWrB062nOnaAp39y22wViXU,3717
11
+ nvidia/curand/include/curand_kernel.h,sha256=8R_1VsYarc8ECbYVAITSVisCi9WcPt5UhMX005R45sA,52714
12
+ nvidia/curand/include/curand_lognormal.h,sha256=-X-iNkJSzWpAYYjogm689EJTZfzore9sxU7ObddljLk,28142
13
+ nvidia/curand/include/curand_mrg32k3a.h,sha256=ZVVREjGNsJQJ-3IzZZ_LKGtGteslicb8E0Aly49BKPs,170296
14
+ nvidia/curand/include/curand_mtgp32.h,sha256=Qhrmx0pHWF-P2Uu5bKwYE9ymEWq3c7qBzCITVMaKMfI,7845
15
+ nvidia/curand/include/curand_mtgp32_host.h,sha256=9eLM7OQxVsb59Qvv0Uzd2mHNY5-bF8AXS5uIzDERWRM,18266
16
+ nvidia/curand/include/curand_mtgp32_kernel.h,sha256=KN6wkEisXbi1E-38KYZFmdDoP1a__BOgV2uc-E44cuk,13710
17
+ nvidia/curand/include/curand_mtgp32dc_p_11213.h,sha256=7_gGYUH47UugIAEt60vYH5nFa-QUwTpDwSEgLg9cZts,276889
18
+ nvidia/curand/include/curand_normal.h,sha256=AvPh8Q9M-xHtj_wAeMNCcB2JSsV401zy7vRp8WGmNtc,26926
19
+ nvidia/curand/include/curand_normal_static.h,sha256=uG82DfUglNO-k67SIsNVt2kbf86qCMFWxr1vjncjUOw,4649
20
+ nvidia/curand/include/curand_philox4x32_x.h,sha256=myBP5wxkqqs53fBowXAtDMo9BLSGAyrWrIfRXNW-3YM,7146
21
+ nvidia/curand/include/curand_poisson.h,sha256=VmzdCnstyeS7j1enTzcPnyugBrgfCpv6zNulnb5p6g0,25409
22
+ nvidia/curand/include/curand_precalc.h,sha256=I6NZdgT42fMm9qSCtP-rlOAqt4Zsqgal0ajktcPmEak,1392393
23
+ nvidia/curand/include/curand_uniform.h,sha256=gpmRgQu5r6ppgLTg60NXoDdVJS6wMUy6jC5bh8l04e8,17472
24
+ nvidia/curand/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ nvidia/curand/lib/__pycache__/__init__.cpython-310.pyc,,
26
+ nvidia/curand/lib/libcurand.so.10,sha256=l4E9-Rbr6GE--41XEnuRGUAzMqZNkpv9FyRSwUDhAd4,101334448
27
+ nvidia_curand_cu11-10.3.0.86.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
28
+ nvidia_curand_cu11-10.3.0.86.dist-info/License.txt,sha256=rW9YU_ugyg0VnQ9Y1JrkmDDC-Mk_epJki5zpCttMbM0,59262
29
+ nvidia_curand_cu11-10.3.0.86.dist-info/METADATA,sha256=iZzT2G6DE3UKnCNmXcCbgresNj_ibNc9u4HA3PjgXo8,1509
30
+ nvidia_curand_cu11-10.3.0.86.dist-info/RECORD,,
31
+ nvidia_curand_cu11-10.3.0.86.dist-info/WHEEL,sha256=6NTOzyjaR-9aJxJquqd0X0mRtq4MUYsP0w_ppLcEVkQ,108
32
+ nvidia_curand_cu11-10.3.0.86.dist-info/top_level.txt,sha256=fTkAtiFuL16nUrB9ytDDtpytz2t0B4NvYTnRzwAhO14,7
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (72.2.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-manylinux2014_x86_64
5
+
evalkit_cambrian/lib/python3.10/site-packages/nvidia_curand_cu11-10.3.0.86.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ nvidia
evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/METADATA ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: nvidia-nvtx-cu12
3
+ Version: 12.1.105
4
+ Summary: NVIDIA Tools Extension
5
+ Home-page: https://developer.nvidia.com/cuda-zone
6
+ Author: Nvidia CUDA Installer Team
7
+ Author-email: [email protected]
8
+ License: NVIDIA Proprietary Software
9
+ Keywords: cuda,nvidia,runtime,machine learning,deep learning
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: Other/Proprietary License
15
+ Classifier: Natural Language :: English
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.5
18
+ Classifier: Programming Language :: Python :: 3.6
19
+ Classifier: Programming Language :: Python :: 3.7
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3 :: Only
25
+ Classifier: Topic :: Scientific/Engineering
26
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
27
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
+ Classifier: Topic :: Software Development
29
+ Classifier: Topic :: Software Development :: Libraries
30
+ Classifier: Operating System :: Microsoft :: Windows
31
+ Classifier: Operating System :: POSIX :: Linux
32
+ Requires-Python: >=3
33
+ License-File: License.txt
34
+
35
+ A C-based API for annotating events, code ranges, and resources in your applications. Applications which integrate NVTX can use the Visual Profiler to capture and visualize these events and ranges.
evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/RECORD ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ nvidia/__pycache__/__init__.cpython-310.pyc,,
3
+ nvidia/nvtx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ nvidia/nvtx/__pycache__/__init__.cpython-310.pyc,,
5
+ nvidia/nvtx/include/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ nvidia/nvtx/include/__pycache__/__init__.cpython-310.pyc,,
7
+ nvidia/nvtx/include/nvToolsExt.h,sha256=OiT6v1G2-vlkYnpDQZjiGT1O-THDyk1gw2021qMRvQM,53680
8
+ nvidia/nvtx/include/nvToolsExtCuda.h,sha256=UDA1pbmvoRFmlJ11Et9tIMEztOtOVw-10mO27Q6K8jg,6009
9
+ nvidia/nvtx/include/nvToolsExtCudaRt.h,sha256=6IbgdRGObly53jzRqvsZ4FQoTrXJOJwSyCOLuXr9ncA,5192
10
+ nvidia/nvtx/include/nvToolsExtOpenCL.h,sha256=gETZH9ch_o6MYE_BYQ2pj9SSuxyAo1H4ptmRK-DMWSo,8360
11
+ nvidia/nvtx/include/nvToolsExtSync.h,sha256=wqONIiycUPaUUCzQBmCippilgKt8sOL9tpzG773u0nY,14562
12
+ nvidia/nvtx/include/nvtx3/nvToolsExt.h,sha256=TFEF3fx1043EwMdbS7FqvvavwK0koZeGrIOAsCrB12s,52247
13
+ nvidia/nvtx/include/nvtx3/nvToolsExtCuda.h,sha256=4ZbZHUMcmHRf4SdKB7nH0E3uHd_9ZhZBuwuWPItK-Vs,6204
14
+ nvidia/nvtx/include/nvtx3/nvToolsExtCudaRt.h,sha256=boW0zdYobNFFE9wwxCyzBGBLcSGtdbQ5osKjQGNC2E8,5393
15
+ nvidia/nvtx/include/nvtx3/nvToolsExtOpenCL.h,sha256=RPfsZl3lHAPIOCzTipmz07-vaiIO4cxelcx12EjB2L0,8563
16
+ nvidia/nvtx/include/nvtx3/nvToolsExtSync.h,sha256=C-HIVBaupxYom3BqMggQ_ePq1bxFhw8kXsOfYJKBWrI,14756
17
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImpl.h,sha256=jEnYF3MyLsD72euw2It3Bz0X0GK4Xv_htEd8BeIrPjY,23333
18
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCore.h,sha256=sYpWqZfYrjsMddxtezPX3qSTIbAOn4dlEoLiYQ9M2nM,9756
19
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCudaRt_v3.h,sha256=SoaiprvsI80yLmEAnlFX0iFufv6RtKjjMMrVwQZjjQI,4775
20
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplCuda_v3.h,sha256=IEor-ISqComCRGVDdIzKBLU3eWCuDI0Igqz-eRKKcvg,5550
21
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplOpenCL_v3.h,sha256=iPR2x74bJE3plFQBT9FWGBaTm4sC-Pll6WAjpKRnz7g,8275
22
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxImplSync_v3.h,sha256=TqwQfEUVbwc58bpHioE13NMweFhOuHXNql65BnLzhvc,5022
23
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInit.h,sha256=foajOFacvLGx3BN5ntw5v8o4J3OY4hqkVZE5ZC0x3e4,14716
24
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDecls.h,sha256=-Qyxcy9CDXOBhEtYZ8L7iYd6daJ9aCeyQM48X0BafMM,9361
25
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxInitDefs.h,sha256=dLhOV4knhNrmT2DnUNzXreOt_Qc6GAa3yIlmqJFCeVI,35432
26
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxLinkOnce.h,sha256=Jp-z6LTz_p8fKRulcFfdcskIxzcZ6ybbHkGB9mpJa2M,3863
27
+ nvidia/nvtx/include/nvtx3/nvtxDetail/nvtxTypes.h,sha256=jkbCwyvIP1G-Ef8SwYp4kDi69hjZbzaxKSk7ScgrNI8,17352
28
+ nvidia/nvtx/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ nvidia/nvtx/lib/__pycache__/__init__.cpython-310.pyc,,
30
+ nvidia/nvtx/lib/libnvToolsExt.so.1,sha256=hH148nXIzJdEKieAcyBL3BoACf_CVZv3JIxw2SEF39w,40136
31
+ nvidia_nvtx_cu12-12.1.105.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
32
+ nvidia_nvtx_cu12-12.1.105.dist-info/License.txt,sha256=rW9YU_ugyg0VnQ9Y1JrkmDDC-Mk_epJki5zpCttMbM0,59262
33
+ nvidia_nvtx_cu12-12.1.105.dist-info/METADATA,sha256=LP0Xeqykb8k4yxR2_JzTBqGwxALQERIJbbmP1k6-Z3Y,1660
34
+ nvidia_nvtx_cu12-12.1.105.dist-info/RECORD,,
35
+ nvidia_nvtx_cu12-12.1.105.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
+ nvidia_nvtx_cu12-12.1.105.dist-info/WHEEL,sha256=-kQi_VMfvRQozZJT7HUPMfY-5vLo0LVTmAylNJ3Ft98,106
37
+ nvidia_nvtx_cu12-12.1.105.dist-info/top_level.txt,sha256=fTkAtiFuL16nUrB9ytDDtpytz2t0B4NvYTnRzwAhO14,7
evalkit_cambrian/lib/python3.10/site-packages/nvidia_nvtx_cu12-12.1.105.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-manylinux1_x86_64
5
+
evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/__init__.py ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import sys as _sys
4
+ from typing import Any as _Any
5
+
6
+ from ._pydantic_core import (
7
+ ArgsKwargs,
8
+ MultiHostUrl,
9
+ PydanticCustomError,
10
+ PydanticKnownError,
11
+ PydanticOmit,
12
+ PydanticSerializationError,
13
+ PydanticSerializationUnexpectedValue,
14
+ PydanticUndefined,
15
+ PydanticUndefinedType,
16
+ PydanticUseDefault,
17
+ SchemaError,
18
+ SchemaSerializer,
19
+ SchemaValidator,
20
+ Some,
21
+ TzInfo,
22
+ Url,
23
+ ValidationError,
24
+ __version__,
25
+ from_json,
26
+ to_json,
27
+ to_jsonable_python,
28
+ validate_core_schema,
29
+ )
30
+ from .core_schema import CoreConfig, CoreSchema, CoreSchemaType, ErrorType
31
+
32
+ if _sys.version_info < (3, 11):
33
+ from typing_extensions import NotRequired as _NotRequired
34
+ else:
35
+ from typing import NotRequired as _NotRequired
36
+
37
+ if _sys.version_info < (3, 12):
38
+ from typing_extensions import TypedDict as _TypedDict
39
+ else:
40
+ from typing import TypedDict as _TypedDict
41
+
42
+ __all__ = [
43
+ '__version__',
44
+ 'CoreConfig',
45
+ 'CoreSchema',
46
+ 'CoreSchemaType',
47
+ 'SchemaValidator',
48
+ 'SchemaSerializer',
49
+ 'Some',
50
+ 'Url',
51
+ 'MultiHostUrl',
52
+ 'ArgsKwargs',
53
+ 'PydanticUndefined',
54
+ 'PydanticUndefinedType',
55
+ 'SchemaError',
56
+ 'ErrorDetails',
57
+ 'InitErrorDetails',
58
+ 'ValidationError',
59
+ 'PydanticCustomError',
60
+ 'PydanticKnownError',
61
+ 'PydanticOmit',
62
+ 'PydanticUseDefault',
63
+ 'PydanticSerializationError',
64
+ 'PydanticSerializationUnexpectedValue',
65
+ 'TzInfo',
66
+ 'to_json',
67
+ 'from_json',
68
+ 'to_jsonable_python',
69
+ 'validate_core_schema',
70
+ ]
71
+
72
+
73
+ class ErrorDetails(_TypedDict):
74
+ type: str
75
+ """
76
+ The type of error that occurred, this is an identifier designed for
77
+ programmatic use that will change rarely or never.
78
+
79
+ `type` is unique for each error message, and can hence be used as an identifier to build custom error messages.
80
+ """
81
+ loc: tuple[int | str, ...]
82
+ """Tuple of strings and ints identifying where in the schema the error occurred."""
83
+ msg: str
84
+ """A human readable error message."""
85
+ input: _Any
86
+ """The input data at this `loc` that caused the error."""
87
+ ctx: _NotRequired[dict[str, _Any]]
88
+ """
89
+ Values which are required to render the error message, and could hence be useful in rendering custom error messages.
90
+ Also useful for passing custom error data forward.
91
+ """
92
+
93
+
94
+ class InitErrorDetails(_TypedDict):
95
+ type: str | PydanticCustomError
96
+ """The type of error that occurred, this should a "slug" identifier that changes rarely or never."""
97
+ loc: _NotRequired[tuple[int | str, ...]]
98
+ """Tuple of strings and ints identifying where in the schema the error occurred."""
99
+ input: _Any
100
+ """The input data at this `loc` that caused the error."""
101
+ ctx: _NotRequired[dict[str, _Any]]
102
+ """
103
+ Values which are required to render the error message, and could hence be useful in rendering custom error messages.
104
+ Also useful for passing custom error data forward.
105
+ """
106
+
107
+
108
+ class ErrorTypeInfo(_TypedDict):
109
+ """
110
+ Gives information about errors.
111
+ """
112
+
113
+ type: ErrorType
114
+ """The type of error that occurred, this should a "slug" identifier that changes rarely or never."""
115
+ message_template_python: str
116
+ """String template to render a human readable error message from using context, when the input is Python."""
117
+ example_message_python: str
118
+ """Example of a human readable error message, when the input is Python."""
119
+ message_template_json: _NotRequired[str]
120
+ """String template to render a human readable error message from using context, when the input is JSON data."""
121
+ example_message_json: _NotRequired[str]
122
+ """Example of a human readable error message, when the input is JSON data."""
123
+ example_context: dict[str, _Any] | None
124
+ """Example of context values."""
125
+
126
+
127
+ class MultiHostHost(_TypedDict):
128
+ """
129
+ A host part of a multi-host URL.
130
+ """
131
+
132
+ username: str | None
133
+ """The username part of this host, or `None`."""
134
+ password: str | None
135
+ """The password part of this host, or `None`."""
136
+ host: str | None
137
+ """The host part of this host, or `None`."""
138
+ port: int | None
139
+ """The port part of this host, or `None`."""
evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (2.72 kB). View file
 
evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/_pydantic_core.pyi ADDED
@@ -0,0 +1,1013 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datetime
2
+ from collections.abc import Mapping
3
+ from typing import Any, Callable, Generic, Literal, TypeVar, final
4
+
5
+ from _typeshed import SupportsAllComparisons
6
+ from typing_extensions import LiteralString, Self, TypeAlias
7
+
8
+ from pydantic_core import ErrorDetails, ErrorTypeInfo, InitErrorDetails, MultiHostHost
9
+ from pydantic_core.core_schema import CoreConfig, CoreSchema, ErrorType
10
+
11
+ __all__ = [
12
+ '__version__',
13
+ 'build_profile',
14
+ 'build_info',
15
+ '_recursion_limit',
16
+ 'ArgsKwargs',
17
+ 'SchemaValidator',
18
+ 'SchemaSerializer',
19
+ 'Url',
20
+ 'MultiHostUrl',
21
+ 'SchemaError',
22
+ 'ValidationError',
23
+ 'PydanticCustomError',
24
+ 'PydanticKnownError',
25
+ 'PydanticOmit',
26
+ 'PydanticUseDefault',
27
+ 'PydanticSerializationError',
28
+ 'PydanticSerializationUnexpectedValue',
29
+ 'PydanticUndefined',
30
+ 'PydanticUndefinedType',
31
+ 'Some',
32
+ 'to_json',
33
+ 'from_json',
34
+ 'to_jsonable_python',
35
+ 'list_all_errors',
36
+ 'TzInfo',
37
+ 'validate_core_schema',
38
+ ]
39
+ __version__: str
40
+ build_profile: str
41
+ build_info: str
42
+ _recursion_limit: int
43
+
44
+ _T = TypeVar('_T', default=Any, covariant=True)
45
+
46
+ _StringInput: TypeAlias = 'dict[str, _StringInput]'
47
+
48
+ @final
49
+ class Some(Generic[_T]):
50
+ """
51
+ Similar to Rust's [`Option::Some`](https://doc.rust-lang.org/std/option/enum.Option.html) type, this
52
+ identifies a value as being present, and provides a way to access it.
53
+
54
+ Generally used in a union with `None` to different between "some value which could be None" and no value.
55
+ """
56
+
57
+ __match_args__ = ('value',)
58
+
59
+ @property
60
+ def value(self) -> _T:
61
+ """
62
+ Returns the value wrapped by `Some`.
63
+ """
64
+ @classmethod
65
+ def __class_getitem__(cls, item: Any, /) -> type[Self]: ...
66
+
67
+ @final
68
+ class SchemaValidator:
69
+ """
70
+ `SchemaValidator` is the Python wrapper for `pydantic-core`'s Rust validation logic, internally it owns one
71
+ `CombinedValidator` which may in turn own more `CombinedValidator`s which make up the full schema validator.
72
+ """
73
+
74
+ # note: pyo3 currently supports __new__, but not __init__, though we include __init__ stubs
75
+ # and docstrings here (and in the following classes) for documentation purposes
76
+
77
+ def __init__(self, schema: CoreSchema, config: CoreConfig | None = None) -> None:
78
+ """Initializes the `SchemaValidator`.
79
+
80
+ Arguments:
81
+ schema: The `CoreSchema` to use for validation.
82
+ config: Optionally a [`CoreConfig`][pydantic_core.core_schema.CoreConfig] to configure validation.
83
+ """
84
+
85
+ def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None) -> Self: ...
86
+ @property
87
+ def title(self) -> str:
88
+ """
89
+ The title of the schema, as used in the heading of [`ValidationError.__str__()`][pydantic_core.ValidationError].
90
+ """
91
+ def validate_python(
92
+ self,
93
+ input: Any,
94
+ *,
95
+ strict: bool | None = None,
96
+ from_attributes: bool | None = None,
97
+ context: Any | None = None,
98
+ self_instance: Any | None = None,
99
+ allow_partial: bool | Literal['off', 'on', 'trailing-strings'] = False,
100
+ ) -> Any:
101
+ """
102
+ Validate a Python object against the schema and return the validated object.
103
+
104
+ Arguments:
105
+ input: The Python object to validate.
106
+ strict: Whether to validate the object in strict mode.
107
+ If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
108
+ from_attributes: Whether to validate objects as inputs to models by extracting attributes.
109
+ If `None`, the value of [`CoreConfig.from_attributes`][pydantic_core.core_schema.CoreConfig] is used.
110
+ context: The context to use for validation, this is passed to functional validators as
111
+ [`info.context`][pydantic_core.core_schema.ValidationInfo.context].
112
+ self_instance: An instance of a model set attributes on from validation, this is used when running
113
+ validation from the `__init__` method of a model.
114
+ allow_partial: Whether to allow partial validation; if `True` errors in the last element of sequences
115
+ and mappings are ignored.
116
+ `'trailing-strings'` means any final unfinished JSON string is included in the result.
117
+
118
+ Raises:
119
+ ValidationError: If validation fails.
120
+ Exception: Other error types maybe raised if internal errors occur.
121
+
122
+ Returns:
123
+ The validated object.
124
+ """
125
+ def isinstance_python(
126
+ self,
127
+ input: Any,
128
+ *,
129
+ strict: bool | None = None,
130
+ from_attributes: bool | None = None,
131
+ context: Any | None = None,
132
+ self_instance: Any | None = None,
133
+ ) -> bool:
134
+ """
135
+ Similar to [`validate_python()`][pydantic_core.SchemaValidator.validate_python] but returns a boolean.
136
+
137
+ Arguments match `validate_python()`. This method will not raise `ValidationError`s but will raise internal
138
+ errors.
139
+
140
+ Returns:
141
+ `True` if validation succeeds, `False` if validation fails.
142
+ """
143
+ def validate_json(
144
+ self,
145
+ input: str | bytes | bytearray,
146
+ *,
147
+ strict: bool | None = None,
148
+ context: Any | None = None,
149
+ self_instance: Any | None = None,
150
+ allow_partial: bool | Literal['off', 'on', 'trailing-strings'] = False,
151
+ ) -> Any:
152
+ """
153
+ Validate JSON data directly against the schema and return the validated Python object.
154
+
155
+ This method should be significantly faster than `validate_python(json.loads(json_data))` as it avoids the
156
+ need to create intermediate Python objects
157
+
158
+ It also handles constructing the correct Python type even in strict mode, where
159
+ `validate_python(json.loads(json_data))` would fail validation.
160
+
161
+ Arguments:
162
+ input: The JSON data to validate.
163
+ strict: Whether to validate the object in strict mode.
164
+ If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
165
+ context: The context to use for validation, this is passed to functional validators as
166
+ [`info.context`][pydantic_core.core_schema.ValidationInfo.context].
167
+ self_instance: An instance of a model set attributes on from validation.
168
+ allow_partial: Whether to allow partial validation; if `True` incomplete JSON will be parsed successfully
169
+ and errors in the last element of sequences and mappings are ignored.
170
+ `'trailing-strings'` means any final unfinished JSON string is included in the result.
171
+
172
+ Raises:
173
+ ValidationError: If validation fails or if the JSON data is invalid.
174
+ Exception: Other error types maybe raised if internal errors occur.
175
+
176
+ Returns:
177
+ The validated Python object.
178
+ """
179
+ def validate_strings(
180
+ self,
181
+ input: _StringInput,
182
+ *,
183
+ strict: bool | None = None,
184
+ context: Any | None = None,
185
+ allow_partial: bool | Literal['off', 'on', 'trailing-strings'] = False,
186
+ ) -> Any:
187
+ """
188
+ Validate a string against the schema and return the validated Python object.
189
+
190
+ This is similar to `validate_json` but applies to scenarios where the input will be a string but not
191
+ JSON data, e.g. URL fragments, query parameters, etc.
192
+
193
+ Arguments:
194
+ input: The input as a string, or bytes/bytearray if `strict=False`.
195
+ strict: Whether to validate the object in strict mode.
196
+ If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
197
+ context: The context to use for validation, this is passed to functional validators as
198
+ [`info.context`][pydantic_core.core_schema.ValidationInfo.context].
199
+ allow_partial: Whether to allow partial validation; if `True` errors in the last element of sequences
200
+ and mappings are ignored.
201
+ `'trailing-strings'` means any final unfinished JSON string is included in the result.
202
+
203
+ Raises:
204
+ ValidationError: If validation fails or if the JSON data is invalid.
205
+ Exception: Other error types maybe raised if internal errors occur.
206
+
207
+ Returns:
208
+ The validated Python object.
209
+ """
210
+ def validate_assignment(
211
+ self,
212
+ obj: Any,
213
+ field_name: str,
214
+ field_value: Any,
215
+ *,
216
+ strict: bool | None = None,
217
+ from_attributes: bool | None = None,
218
+ context: Any | None = None,
219
+ ) -> dict[str, Any] | tuple[dict[str, Any], dict[str, Any] | None, set[str]]:
220
+ """
221
+ Validate an assignment to a field on a model.
222
+
223
+ Arguments:
224
+ obj: The model instance being assigned to.
225
+ field_name: The name of the field to validate assignment for.
226
+ field_value: The value to assign to the field.
227
+ strict: Whether to validate the object in strict mode.
228
+ If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
229
+ from_attributes: Whether to validate objects as inputs to models by extracting attributes.
230
+ If `None`, the value of [`CoreConfig.from_attributes`][pydantic_core.core_schema.CoreConfig] is used.
231
+ context: The context to use for validation, this is passed to functional validators as
232
+ [`info.context`][pydantic_core.core_schema.ValidationInfo.context].
233
+
234
+ Raises:
235
+ ValidationError: If validation fails.
236
+ Exception: Other error types maybe raised if internal errors occur.
237
+
238
+ Returns:
239
+ Either the model dict or a tuple of `(model_data, model_extra, fields_set)`
240
+ """
241
+ def get_default_value(self, *, strict: bool | None = None, context: Any = None) -> Some | None:
242
+ """
243
+ Get the default value for the schema, including running default value validation.
244
+
245
+ Arguments:
246
+ strict: Whether to validate the default value in strict mode.
247
+ If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
248
+ context: The context to use for validation, this is passed to functional validators as
249
+ [`info.context`][pydantic_core.core_schema.ValidationInfo.context].
250
+
251
+ Raises:
252
+ ValidationError: If validation fails.
253
+ Exception: Other error types maybe raised if internal errors occur.
254
+
255
+ Returns:
256
+ `None` if the schema has no default value, otherwise a [`Some`][pydantic_core.Some] containing the default.
257
+ """
258
+
259
+ # In reality, `bool` should be replaced by `Literal[True]` but mypy fails to correctly apply bidirectional type inference
260
+ # (e.g. when using `{'a': {'b': True}}`).
261
+ _IncEx: TypeAlias = set[int] | set[str] | Mapping[int, _IncEx | bool] | Mapping[str, _IncEx | bool]
262
+
263
+ @final
264
+ class SchemaSerializer:
265
+ """
266
+ `SchemaSerializer` is the Python wrapper for `pydantic-core`'s Rust serialization logic, internally it owns one
267
+ `CombinedSerializer` which may in turn own more `CombinedSerializer`s which make up the full schema serializer.
268
+ """
269
+
270
+ def __init__(self, schema: CoreSchema, config: CoreConfig | None = None) -> None:
271
+ """Initializes the `SchemaSerializer`.
272
+
273
+ Arguments:
274
+ schema: The `CoreSchema` to use for serialization.
275
+ config: Optionally a [`CoreConfig`][pydantic_core.core_schema.CoreConfig] to to configure serialization.
276
+ """
277
+
278
+ def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None) -> Self: ...
279
+ def to_python(
280
+ self,
281
+ value: Any,
282
+ *,
283
+ mode: str | None = None,
284
+ include: _IncEx | None = None,
285
+ exclude: _IncEx | None = None,
286
+ by_alias: bool = True,
287
+ exclude_unset: bool = False,
288
+ exclude_defaults: bool = False,
289
+ exclude_none: bool = False,
290
+ round_trip: bool = False,
291
+ warnings: bool | Literal['none', 'warn', 'error'] = True,
292
+ fallback: Callable[[Any], Any] | None = None,
293
+ serialize_as_any: bool = False,
294
+ context: Any | None = None,
295
+ ) -> Any:
296
+ """
297
+ Serialize/marshal a Python object to a Python object including transforming and filtering data.
298
+
299
+ Arguments:
300
+ value: The Python object to serialize.
301
+ mode: The serialization mode to use, either `'python'` or `'json'`, defaults to `'python'`. In JSON mode,
302
+ all values are converted to JSON compatible types, e.g. `None`, `int`, `float`, `str`, `list`, `dict`.
303
+ include: A set of fields to include, if `None` all fields are included.
304
+ exclude: A set of fields to exclude, if `None` no fields are excluded.
305
+ by_alias: Whether to use the alias names of fields.
306
+ exclude_unset: Whether to exclude fields that are not set,
307
+ e.g. are not included in `__pydantic_fields_set__`.
308
+ exclude_defaults: Whether to exclude fields that are equal to their default value.
309
+ exclude_none: Whether to exclude fields that have a value of `None`.
310
+ round_trip: Whether to enable serialization and validation round-trip support.
311
+ warnings: How to handle invalid fields. False/"none" ignores them, True/"warn" logs errors,
312
+ "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].
313
+ fallback: A function to call when an unknown value is encountered,
314
+ if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
315
+ serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
316
+ context: The context to use for serialization, this is passed to functional serializers as
317
+ [`info.context`][pydantic_core.core_schema.SerializationInfo.context].
318
+
319
+ Raises:
320
+ PydanticSerializationError: If serialization fails and no `fallback` function is provided.
321
+
322
+ Returns:
323
+ The serialized Python object.
324
+ """
325
+ def to_json(
326
+ self,
327
+ value: Any,
328
+ *,
329
+ indent: int | None = None,
330
+ include: _IncEx | None = None,
331
+ exclude: _IncEx | None = None,
332
+ by_alias: bool = True,
333
+ exclude_unset: bool = False,
334
+ exclude_defaults: bool = False,
335
+ exclude_none: bool = False,
336
+ round_trip: bool = False,
337
+ warnings: bool | Literal['none', 'warn', 'error'] = True,
338
+ fallback: Callable[[Any], Any] | None = None,
339
+ serialize_as_any: bool = False,
340
+ context: Any | None = None,
341
+ ) -> bytes:
342
+ """
343
+ Serialize a Python object to JSON including transforming and filtering data.
344
+
345
+ Arguments:
346
+ value: The Python object to serialize.
347
+ indent: If `None`, the JSON will be compact, otherwise it will be pretty-printed with the indent provided.
348
+ include: A set of fields to include, if `None` all fields are included.
349
+ exclude: A set of fields to exclude, if `None` no fields are excluded.
350
+ by_alias: Whether to use the alias names of fields.
351
+ exclude_unset: Whether to exclude fields that are not set,
352
+ e.g. are not included in `__pydantic_fields_set__`.
353
+ exclude_defaults: Whether to exclude fields that are equal to their default value.
354
+ exclude_none: Whether to exclude fields that have a value of `None`.
355
+ round_trip: Whether to enable serialization and validation round-trip support.
356
+ warnings: How to handle invalid fields. False/"none" ignores them, True/"warn" logs errors,
357
+ "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].
358
+ fallback: A function to call when an unknown value is encountered,
359
+ if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
360
+ serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
361
+ context: The context to use for serialization, this is passed to functional serializers as
362
+ [`info.context`][pydantic_core.core_schema.SerializationInfo.context].
363
+
364
+ Raises:
365
+ PydanticSerializationError: If serialization fails and no `fallback` function is provided.
366
+
367
+ Returns:
368
+ JSON bytes.
369
+ """
370
+
371
+ def to_json(
372
+ value: Any,
373
+ *,
374
+ indent: int | None = None,
375
+ include: _IncEx | None = None,
376
+ exclude: _IncEx | None = None,
377
+ by_alias: bool = True,
378
+ exclude_none: bool = False,
379
+ round_trip: bool = False,
380
+ timedelta_mode: Literal['iso8601', 'float'] = 'iso8601',
381
+ bytes_mode: Literal['utf8', 'base64', 'hex'] = 'utf8',
382
+ inf_nan_mode: Literal['null', 'constants', 'strings'] = 'constants',
383
+ serialize_unknown: bool = False,
384
+ fallback: Callable[[Any], Any] | None = None,
385
+ serialize_as_any: bool = False,
386
+ context: Any | None = None,
387
+ ) -> bytes:
388
+ """
389
+ Serialize a Python object to JSON including transforming and filtering data.
390
+
391
+ This is effectively a standalone version of [`SchemaSerializer.to_json`][pydantic_core.SchemaSerializer.to_json].
392
+
393
+ Arguments:
394
+ value: The Python object to serialize.
395
+ indent: If `None`, the JSON will be compact, otherwise it will be pretty-printed with the indent provided.
396
+ include: A set of fields to include, if `None` all fields are included.
397
+ exclude: A set of fields to exclude, if `None` no fields are excluded.
398
+ by_alias: Whether to use the alias names of fields.
399
+ exclude_none: Whether to exclude fields that have a value of `None`.
400
+ round_trip: Whether to enable serialization and validation round-trip support.
401
+ timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'` or `'float'`.
402
+ bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
403
+ inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
404
+ serialize_unknown: Attempt to serialize unknown types, `str(value)` will be used, if that fails
405
+ `"<Unserializable {value_type} object>"` will be used.
406
+ fallback: A function to call when an unknown value is encountered,
407
+ if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
408
+ serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
409
+ context: The context to use for serialization, this is passed to functional serializers as
410
+ [`info.context`][pydantic_core.core_schema.SerializationInfo.context].
411
+
412
+ Raises:
413
+ PydanticSerializationError: If serialization fails and no `fallback` function is provided.
414
+
415
+ Returns:
416
+ JSON bytes.
417
+ """
418
+
419
+ def from_json(
420
+ data: str | bytes | bytearray,
421
+ *,
422
+ allow_inf_nan: bool = True,
423
+ cache_strings: bool | Literal['all', 'keys', 'none'] = True,
424
+ allow_partial: bool | Literal['off', 'on', 'trailing-strings'] = False,
425
+ ) -> Any:
426
+ """
427
+ Deserialize JSON data to a Python object.
428
+
429
+ This is effectively a faster version of `json.loads()`, with some extra functionality.
430
+
431
+ Arguments:
432
+ data: The JSON data to deserialize.
433
+ allow_inf_nan: Whether to allow `Infinity`, `-Infinity` and `NaN` values as `json.loads()` does by default.
434
+ cache_strings: Whether to cache strings to avoid constructing new Python objects,
435
+ this should have a significant impact on performance while increasing memory usage slightly,
436
+ `all/True` means cache all strings, `keys` means cache only dict keys, `none/False` means no caching.
437
+ allow_partial: Whether to allow partial deserialization, if `True` JSON data is returned if the end of the
438
+ input is reached before the full object is deserialized, e.g. `["aa", "bb", "c` would return `['aa', 'bb']`.
439
+ `'trailing-strings'` means any final unfinished JSON string is included in the result.
440
+
441
+ Raises:
442
+ ValueError: If deserialization fails.
443
+
444
+ Returns:
445
+ The deserialized Python object.
446
+ """
447
+
448
+ def to_jsonable_python(
449
+ value: Any,
450
+ *,
451
+ include: _IncEx | None = None,
452
+ exclude: _IncEx | None = None,
453
+ by_alias: bool = True,
454
+ exclude_none: bool = False,
455
+ round_trip: bool = False,
456
+ timedelta_mode: Literal['iso8601', 'float'] = 'iso8601',
457
+ bytes_mode: Literal['utf8', 'base64', 'hex'] = 'utf8',
458
+ inf_nan_mode: Literal['null', 'constants', 'strings'] = 'constants',
459
+ serialize_unknown: bool = False,
460
+ fallback: Callable[[Any], Any] | None = None,
461
+ serialize_as_any: bool = False,
462
+ context: Any | None = None,
463
+ ) -> Any:
464
+ """
465
+ Serialize/marshal a Python object to a JSON-serializable Python object including transforming and filtering data.
466
+
467
+ This is effectively a standalone version of
468
+ [`SchemaSerializer.to_python(mode='json')`][pydantic_core.SchemaSerializer.to_python].
469
+
470
+ Args:
471
+ value: The Python object to serialize.
472
+ include: A set of fields to include, if `None` all fields are included.
473
+ exclude: A set of fields to exclude, if `None` no fields are excluded.
474
+ by_alias: Whether to use the alias names of fields.
475
+ exclude_none: Whether to exclude fields that have a value of `None`.
476
+ round_trip: Whether to enable serialization and validation round-trip support.
477
+ timedelta_mode: How to serialize `timedelta` objects, either `'iso8601'` or `'float'`.
478
+ bytes_mode: How to serialize `bytes` objects, either `'utf8'`, `'base64'`, or `'hex'`.
479
+ inf_nan_mode: How to serialize `Infinity`, `-Infinity` and `NaN` values, either `'null'`, `'constants'`, or `'strings'`.
480
+ serialize_unknown: Attempt to serialize unknown types, `str(value)` will be used, if that fails
481
+ `"<Unserializable {value_type} object>"` will be used.
482
+ fallback: A function to call when an unknown value is encountered,
483
+ if `None` a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
484
+ serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
485
+ context: The context to use for serialization, this is passed to functional serializers as
486
+ [`info.context`][pydantic_core.core_schema.SerializationInfo.context].
487
+
488
+ Raises:
489
+ PydanticSerializationError: If serialization fails and no `fallback` function is provided.
490
+
491
+ Returns:
492
+ The serialized Python object.
493
+ """
494
+
495
+ class Url(SupportsAllComparisons):
496
+ """
497
+ A URL type, internal logic uses the [url rust crate](https://docs.rs/url/latest/url/) originally developed
498
+ by Mozilla.
499
+ """
500
+
501
+ def __init__(self, url: str) -> None: ...
502
+ def __new__(cls, url: str) -> Self: ...
503
+ @property
504
+ def scheme(self) -> str: ...
505
+ @property
506
+ def username(self) -> str | None: ...
507
+ @property
508
+ def password(self) -> str | None: ...
509
+ @property
510
+ def host(self) -> str | None: ...
511
+ def unicode_host(self) -> str | None: ...
512
+ @property
513
+ def port(self) -> int | None: ...
514
+ @property
515
+ def path(self) -> str | None: ...
516
+ @property
517
+ def query(self) -> str | None: ...
518
+ def query_params(self) -> list[tuple[str, str]]: ...
519
+ @property
520
+ def fragment(self) -> str | None: ...
521
+ def unicode_string(self) -> str: ...
522
+ def __repr__(self) -> str: ...
523
+ def __str__(self) -> str: ...
524
+ def __deepcopy__(self, memo: dict) -> str: ...
525
+ @classmethod
526
+ def build(
527
+ cls,
528
+ *,
529
+ scheme: str,
530
+ username: str | None = None,
531
+ password: str | None = None,
532
+ host: str,
533
+ port: int | None = None,
534
+ path: str | None = None,
535
+ query: str | None = None,
536
+ fragment: str | None = None,
537
+ ) -> Self: ...
538
+
539
+ class MultiHostUrl(SupportsAllComparisons):
540
+ """
541
+ A URL type with support for multiple hosts, as used by some databases for DSNs, e.g. `https://foo.com,bar.com/path`.
542
+
543
+ Internal URL logic uses the [url rust crate](https://docs.rs/url/latest/url/) originally developed
544
+ by Mozilla.
545
+ """
546
+
547
+ def __init__(self, url: str) -> None: ...
548
+ def __new__(cls, url: str) -> Self: ...
549
+ @property
550
+ def scheme(self) -> str: ...
551
+ @property
552
+ def path(self) -> str | None: ...
553
+ @property
554
+ def query(self) -> str | None: ...
555
+ def query_params(self) -> list[tuple[str, str]]: ...
556
+ @property
557
+ def fragment(self) -> str | None: ...
558
+ def hosts(self) -> list[MultiHostHost]: ...
559
+ def unicode_string(self) -> str: ...
560
+ def __repr__(self) -> str: ...
561
+ def __str__(self) -> str: ...
562
+ def __deepcopy__(self, memo: dict) -> Self: ...
563
+ @classmethod
564
+ def build(
565
+ cls,
566
+ *,
567
+ scheme: str,
568
+ hosts: list[MultiHostHost] | None = None,
569
+ username: str | None = None,
570
+ password: str | None = None,
571
+ host: str | None = None,
572
+ port: int | None = None,
573
+ path: str | None = None,
574
+ query: str | None = None,
575
+ fragment: str | None = None,
576
+ ) -> Self: ...
577
+
578
+ @final
579
+ class SchemaError(Exception):
580
+ """
581
+ Information about errors that occur while building a [`SchemaValidator`][pydantic_core.SchemaValidator]
582
+ or [`SchemaSerializer`][pydantic_core.SchemaSerializer].
583
+ """
584
+
585
+ def error_count(self) -> int:
586
+ """
587
+ Returns:
588
+ The number of errors in the schema.
589
+ """
590
+ def errors(self) -> list[ErrorDetails]:
591
+ """
592
+ Returns:
593
+ A list of [`ErrorDetails`][pydantic_core.ErrorDetails] for each error in the schema.
594
+ """
595
+
596
+ class ValidationError(ValueError):
597
+ """
598
+ `ValidationError` is the exception raised by `pydantic-core` when validation fails, it contains a list of errors
599
+ which detail why validation failed.
600
+ """
601
+ @classmethod
602
+ def from_exception_data(
603
+ cls,
604
+ title: str,
605
+ line_errors: list[InitErrorDetails],
606
+ input_type: Literal['python', 'json'] = 'python',
607
+ hide_input: bool = False,
608
+ ) -> Self:
609
+ """
610
+ Python constructor for a Validation Error.
611
+
612
+ The API for constructing validation errors will probably change in the future,
613
+ hence the static method rather than `__init__`.
614
+
615
+ Arguments:
616
+ title: The title of the error, as used in the heading of `str(validation_error)`
617
+ line_errors: A list of [`InitErrorDetails`][pydantic_core.InitErrorDetails] which contain information
618
+ about errors that occurred during validation.
619
+ input_type: Whether the error is for a Python object or JSON.
620
+ hide_input: Whether to hide the input value in the error message.
621
+ """
622
+ @property
623
+ def title(self) -> str:
624
+ """
625
+ The title of the error, as used in the heading of `str(validation_error)`.
626
+ """
627
+ def error_count(self) -> int:
628
+ """
629
+ Returns:
630
+ The number of errors in the validation error.
631
+ """
632
+ def errors(
633
+ self, *, include_url: bool = True, include_context: bool = True, include_input: bool = True
634
+ ) -> list[ErrorDetails]:
635
+ """
636
+ Details about each error in the validation error.
637
+
638
+ Args:
639
+ include_url: Whether to include a URL to documentation on the error each error.
640
+ include_context: Whether to include the context of each error.
641
+ include_input: Whether to include the input value of each error.
642
+
643
+ Returns:
644
+ A list of [`ErrorDetails`][pydantic_core.ErrorDetails] for each error in the validation error.
645
+ """
646
+ def json(
647
+ self,
648
+ *,
649
+ indent: int | None = None,
650
+ include_url: bool = True,
651
+ include_context: bool = True,
652
+ include_input: bool = True,
653
+ ) -> str:
654
+ """
655
+ Same as [`errors()`][pydantic_core.ValidationError.errors] but returns a JSON string.
656
+
657
+ Args:
658
+ indent: The number of spaces to indent the JSON by, or `None` for no indentation - compact JSON.
659
+ include_url: Whether to include a URL to documentation on the error each error.
660
+ include_context: Whether to include the context of each error.
661
+ include_input: Whether to include the input value of each error.
662
+
663
+ Returns:
664
+ a JSON string.
665
+ """
666
+
667
+ def __repr__(self) -> str:
668
+ """
669
+ A string representation of the validation error.
670
+
671
+ Whether or not documentation URLs are included in the repr is controlled by the
672
+ environment variable `PYDANTIC_ERRORS_INCLUDE_URL` being set to `1` or
673
+ `true`; by default, URLs are shown.
674
+
675
+ Due to implementation details, this environment variable can only be set once,
676
+ before the first validation error is created.
677
+ """
678
+
679
+ class PydanticCustomError(ValueError):
680
+ """A custom exception providing flexible error handling for Pydantic validators.
681
+
682
+ You can raise this error in custom validators when you'd like flexibility in regards to the error type, message, and context.
683
+
684
+ Example:
685
+ ```py
686
+ from pydantic_core import PydanticCustomError
687
+
688
+ def custom_validator(v) -> None:
689
+ if v <= 10:
690
+ raise PydanticCustomError('custom_value_error', 'Value must be greater than {value}', {'value': 10, 'extra_context': 'extra_data'})
691
+ return v
692
+ ```
693
+ """
694
+
695
+ def __init__(
696
+ self, error_type: LiteralString, message_template: LiteralString, context: dict[str, Any] | None = None
697
+ ) -> None:
698
+ """Initializes the `PydanticCustomError`.
699
+
700
+ Arguments:
701
+ error_type: The error type.
702
+ message_template: The message template.
703
+ context: The data to inject into the message template.
704
+ """
705
+
706
+ def __new__(
707
+ cls, error_type: LiteralString, message_template: LiteralString, context: dict[str, Any] | None = None
708
+ ) -> Self: ...
709
+ @property
710
+ def context(self) -> dict[str, Any] | None:
711
+ """Values which are required to render the error message, and could hence be useful in passing error data forward."""
712
+
713
+ @property
714
+ def type(self) -> str:
715
+ """The error type associated with the error. For consistency with Pydantic, this is typically a snake_case string."""
716
+
717
+ @property
718
+ def message_template(self) -> str:
719
+ """The message template associated with the error. This is a string that can be formatted with context variables in `{curly_braces}`."""
720
+
721
+ def message(self) -> str:
722
+ """The formatted message associated with the error. This presents as the message template with context variables appropriately injected."""
723
+
724
+ @final
725
+ class PydanticKnownError(ValueError):
726
+ """A helper class for raising exceptions that mimic Pydantic's built-in exceptions, with more flexibility in regards to context.
727
+
728
+ Unlike [`PydanticCustomError`][pydantic_core.PydanticCustomError], the `error_type` argument must be a known `ErrorType`.
729
+
730
+ Example:
731
+ ```py
732
+ from pydantic_core import PydanticKnownError
733
+
734
+ def custom_validator(v) -> None:
735
+ if v <= 10:
736
+ raise PydanticKnownError(error_type='greater_than', context={'gt': 10})
737
+ return v
738
+ ```
739
+ """
740
+
741
+ def __init__(self, error_type: ErrorType, context: dict[str, Any] | None = None) -> None:
742
+ """Initializes the `PydanticKnownError`.
743
+
744
+ Arguments:
745
+ error_type: The error type.
746
+ context: The data to inject into the message template.
747
+ """
748
+
749
+ def __new__(cls, error_type: ErrorType, context: dict[str, Any] | None = None) -> Self: ...
750
+ @property
751
+ def context(self) -> dict[str, Any] | None:
752
+ """Values which are required to render the error message, and could hence be useful in passing error data forward."""
753
+
754
+ @property
755
+ def type(self) -> ErrorType:
756
+ """The type of the error."""
757
+
758
+ @property
759
+ def message_template(self) -> str:
760
+ """The message template associated with the provided error type. This is a string that can be formatted with context variables in `{curly_braces}`."""
761
+
762
+ def message(self) -> str:
763
+ """The formatted message associated with the error. This presents as the message template with context variables appropriately injected."""
764
+
765
+ @final
766
+ class PydanticOmit(Exception):
767
+ """An exception to signal that a field should be omitted from a generated result.
768
+
769
+ This could span from omitting a field from a JSON Schema to omitting a field from a serialized result.
770
+ Upcoming: more robust support for using PydanticOmit in custom serializers is still in development.
771
+ Right now, this is primarily used in the JSON Schema generation process.
772
+
773
+ Example:
774
+ ```py
775
+ from typing import Callable
776
+
777
+ from pydantic_core import PydanticOmit
778
+
779
+ from pydantic import BaseModel
780
+ from pydantic.json_schema import GenerateJsonSchema, JsonSchemaValue
781
+
782
+
783
+ class MyGenerateJsonSchema(GenerateJsonSchema):
784
+ def handle_invalid_for_json_schema(self, schema, error_info) -> JsonSchemaValue:
785
+ raise PydanticOmit
786
+
787
+
788
+ class Predicate(BaseModel):
789
+ name: str = 'no-op'
790
+ func: Callable = lambda x: x
791
+
792
+
793
+ instance_example = Predicate()
794
+
795
+ validation_schema = instance_example.model_json_schema(schema_generator=MyGenerateJsonSchema, mode='validation')
796
+ print(validation_schema)
797
+ '''
798
+ {'properties': {'name': {'default': 'no-op', 'title': 'Name', 'type': 'string'}}, 'title': 'Predicate', 'type': 'object'}
799
+ '''
800
+ ```
801
+
802
+ For a more in depth example / explanation, see the [customizing JSON schema](../concepts/json_schema.md#customizing-the-json-schema-generation-process) docs.
803
+ """
804
+
805
+ def __new__(cls) -> Self: ...
806
+
807
+ @final
808
+ class PydanticUseDefault(Exception):
809
+ """An exception to signal that standard validation either failed or should be skipped, and the default value should be used instead.
810
+
811
+ This warning can be raised in custom valiation functions to redirect the flow of validation.
812
+
813
+ Example:
814
+ ```py
815
+ from pydantic_core import PydanticUseDefault
816
+ from datetime import datetime
817
+ from pydantic import BaseModel, field_validator
818
+
819
+
820
+ class Event(BaseModel):
821
+ name: str = 'meeting'
822
+ time: datetime
823
+
824
+ @field_validator('name', mode='plain')
825
+ def name_must_be_present(cls, v) -> str:
826
+ if not v or not isinstance(v, str):
827
+ raise PydanticUseDefault()
828
+ return v
829
+
830
+
831
+ event1 = Event(name='party', time=datetime(2024, 1, 1, 12, 0, 0))
832
+ print(repr(event1))
833
+ # > Event(name='party', time=datetime.datetime(2024, 1, 1, 12, 0))
834
+ event2 = Event(time=datetime(2024, 1, 1, 12, 0, 0))
835
+ print(repr(event2))
836
+ # > Event(name='meeting', time=datetime.datetime(2024, 1, 1, 12, 0))
837
+ ```
838
+
839
+ For an additional example, seethe [validating partial json data](../concepts/json.md#partial-json-parsing) section of the Pydantic documentation.
840
+ """
841
+
842
+ def __new__(cls) -> Self: ...
843
+
844
+ @final
845
+ class PydanticSerializationError(ValueError):
846
+ """An error raised when an issue occurs during serialization.
847
+
848
+ In custom serializers, this error can be used to indicate that serialization has failed.
849
+ """
850
+
851
+ def __init__(self, message: str) -> None:
852
+ """Initializes the `PydanticSerializationError`.
853
+
854
+ Arguments:
855
+ message: The message associated with the error.
856
+ """
857
+
858
+ def __new__(cls, message: str) -> Self: ...
859
+
860
+ @final
861
+ class PydanticSerializationUnexpectedValue(ValueError):
862
+ """An error raised when an unexpected value is encountered during serialization.
863
+
864
+ This error is often caught and coerced into a warning, as `pydantic-core` generally makes a best attempt
865
+ at serializing values, in contrast with validation where errors are eagerly raised.
866
+
867
+ Example:
868
+ ```py
869
+ from pydantic import BaseModel, field_serializer
870
+ from pydantic_core import PydanticSerializationUnexpectedValue
871
+
872
+ class BasicPoint(BaseModel):
873
+ x: int
874
+ y: int
875
+
876
+ @field_serializer('*')
877
+ def serialize(self, v):
878
+ if not isinstance(v, int):
879
+ raise PydanticSerializationUnexpectedValue(f'Expected type `int`, got {type(v)} with value {v}')
880
+ return v
881
+
882
+ point = BasicPoint(x=1, y=2)
883
+ # some sort of mutation
884
+ point.x = 'a'
885
+
886
+ print(point.model_dump())
887
+ '''
888
+ UserWarning: Pydantic serializer warnings:
889
+ PydanticSerializationUnexpectedValue(Expected type `int`, got <class 'str'> with value a)
890
+ return self.__pydantic_serializer__.to_python(
891
+ {'x': 'a', 'y': 2}
892
+ '''
893
+ ```
894
+
895
+ This is often used internally in `pydantic-core` when unexpected types are encountered during serialization,
896
+ but it can also be used by users in custom serializers, as seen above.
897
+ """
898
+
899
+ def __init__(self, message: str) -> None:
900
+ """Initializes the `PydanticSerializationUnexpectedValue`.
901
+
902
+ Arguments:
903
+ message: The message associated with the unexpected value.
904
+ """
905
+
906
+ def __new__(cls, message: str | None = None) -> Self: ...
907
+
908
+ @final
909
+ class ArgsKwargs:
910
+ """A construct used to store arguments and keyword arguments for a function call.
911
+
912
+ This data structure is generally used to store information for core schemas associated with functions (like in an arguments schema).
913
+ This data structure is also currently used for some validation against dataclasses.
914
+
915
+ Example:
916
+ ```py
917
+ from pydantic.dataclasses import dataclass
918
+ from pydantic import model_validator
919
+
920
+
921
+ @dataclass
922
+ class Model:
923
+ a: int
924
+ b: int
925
+
926
+ @model_validator(mode="before")
927
+ @classmethod
928
+ def no_op_validator(cls, values):
929
+ print(values)
930
+ return values
931
+
932
+ Model(1, b=2)
933
+ #> ArgsKwargs((1,), {"b": 2})
934
+
935
+ Model(1, 2)
936
+ #> ArgsKwargs((1, 2), {})
937
+
938
+ Model(a=1, b=2)
939
+ #> ArgsKwargs((), {"a": 1, "b": 2})
940
+ ```
941
+ """
942
+
943
+ def __init__(self, args: tuple[Any, ...], kwargs: dict[str, Any] | None = None) -> None:
944
+ """Initializes the `ArgsKwargs`.
945
+
946
+ Arguments:
947
+ args: The arguments (inherently ordered) for a function call.
948
+ kwargs: The keyword arguments for a function call
949
+ """
950
+
951
+ def __new__(cls, args: tuple[Any, ...], kwargs: dict[str, Any] | None = None) -> Self: ...
952
+ @property
953
+ def args(self) -> tuple[Any, ...]:
954
+ """The arguments (inherently ordered) for a function call."""
955
+
956
+ @property
957
+ def kwargs(self) -> dict[str, Any] | None:
958
+ """The keyword arguments for a function call."""
959
+
960
+ @final
961
+ class PydanticUndefinedType:
962
+ """A type used as a sentinel for undefined values."""
963
+
964
+ def __copy__(self) -> Self: ...
965
+ def __deepcopy__(self, memo: Any) -> Self: ...
966
+
967
+ PydanticUndefined: PydanticUndefinedType
968
+
969
+ def list_all_errors() -> list[ErrorTypeInfo]:
970
+ """
971
+ Get information about all built-in errors.
972
+
973
+ Returns:
974
+ A list of `ErrorTypeInfo` typed dicts.
975
+ """
976
+ @final
977
+ class TzInfo(datetime.tzinfo):
978
+ """An `pydantic-core` implementation of the abstract [`datetime.tzinfo`] class."""
979
+
980
+ # Docstrings for attributes sourced from the abstract base class, [`datetime.tzinfo`](https://docs.python.org/3/library/datetime.html#datetime.tzinfo).
981
+
982
+ def tzname(self, dt: datetime.datetime | None) -> str | None:
983
+ """Return the time zone name corresponding to the [`datetime`][datetime.datetime] object _dt_, as a string.
984
+
985
+ For more info, see [`tzinfo.tzname`][datetime.tzinfo.tzname].
986
+ """
987
+
988
+ def utcoffset(self, dt: datetime.datetime | None) -> datetime.timedelta | None:
989
+ """Return offset of local time from UTC, as a [`timedelta`][datetime.timedelta] object that is positive east of UTC. If local time is west of UTC, this should be negative.
990
+
991
+ More info can be found at [`tzinfo.utcoffset`][datetime.tzinfo.utcoffset].
992
+ """
993
+
994
+ def dst(self, dt: datetime.datetime | None) -> datetime.timedelta | None:
995
+ """Return the daylight saving time (DST) adjustment, as a [`timedelta`][datetime.timedelta] object or `None` if DST information isn’t known.
996
+
997
+ More info can be found at[`tzinfo.dst`][datetime.tzinfo.dst]."""
998
+
999
+ def fromutc(self, dt: datetime.datetime) -> datetime.datetime:
1000
+ """Adjust the date and time data associated datetime object _dt_, returning an equivalent datetime in self’s local time.
1001
+
1002
+ More info can be found at [`tzinfo.fromutc`][datetime.tzinfo.fromutc]."""
1003
+
1004
+ def __deepcopy__(self, _memo: dict[Any, Any]) -> TzInfo: ...
1005
+
1006
+ def validate_core_schema(schema: CoreSchema, *, strict: bool | None = None) -> CoreSchema:
1007
+ """Validate a core schema.
1008
+
1009
+ This currently uses lax mode for validation (i.e. will coerce strings to dates and such)
1010
+ but may use strict mode in the future.
1011
+ We may also remove this function altogether, do not rely on it being present if you are
1012
+ using pydantic-core directly.
1013
+ """
evalkit_cambrian/lib/python3.10/site-packages/pydantic_core/py.typed ADDED
File without changes
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_amp_foreach_non_finite_check_and_unscale_compositeexplicitautograd_dispatch.h ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace compositeexplicitautograd {
19
+
20
+ TORCH_API ::std::tuple<::std::vector<at::Tensor>,at::Tensor> _amp_foreach_non_finite_check_and_unscale(at::TensorList self, const at::Tensor & found_inf, const at::Tensor & inv_scale);
21
+ TORCH_API void _amp_foreach_non_finite_check_and_unscale_out(at::TensorList out, at::TensorList self, at::Tensor & found_inf, const at::Tensor & inv_scale);
22
+ TORCH_API void _amp_foreach_non_finite_check_and_unscale_outf(at::TensorList self, at::Tensor & found_inf, const at::Tensor & inv_scale, at::TensorList out);
23
+
24
+ } // namespace compositeexplicitautograd
25
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_fft_c2c_cpu_dispatch.h ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace cpu {
19
+
20
+ TORCH_API at::Tensor _fft_c2c(const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward);
21
+ TORCH_API at::Tensor _fft_c2c_symint(const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward);
22
+ TORCH_API at::Tensor & _fft_c2c_out(at::Tensor & out, const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward);
23
+ TORCH_API at::Tensor & _fft_c2c_outf(const at::Tensor & self, at::IntArrayRef dim, int64_t normalization, bool forward, at::Tensor & out);
24
+ TORCH_API at::Tensor & _fft_c2c_symint_out(at::Tensor & out, const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward);
25
+ TORCH_API at::Tensor & _fft_c2c_symint_outf(const at::Tensor & self, c10::SymIntArrayRef dim, int64_t normalization, bool forward, at::Tensor & out);
26
+
27
+ } // namespace cpu
28
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_frac_cuda_dispatch.h ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace cuda {
19
+
20
+ TORCH_API ::std::vector<at::Tensor> _foreach_frac(at::TensorList self);
21
+ TORCH_API void _foreach_frac_(at::TensorList self);
22
+
23
+ } // namespace cuda
24
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_fused_dropout_native.h ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+
16
+
17
+ namespace at {
18
+ namespace native {
19
+ TORCH_API ::std::tuple<at::Tensor &,at::Tensor &> _fused_dropout_out(const at::Tensor & self, double p, ::std::optional<at::Generator> generator, at::Tensor & out0, at::Tensor & out1);
20
+ TORCH_API ::std::tuple<at::Tensor,at::Tensor> fused_dropout_cuda(const at::Tensor & self, double p, ::std::optional<at::Generator> generator=::std::nullopt);
21
+ } // namespace native
22
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_log_softmax_backward_data_meta_dispatch.h ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace meta {
19
+
20
+ TORCH_API at::Tensor _log_softmax_backward_data(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype);
21
+ TORCH_API at::Tensor & _log_softmax_backward_data_out(at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype);
22
+ TORCH_API at::Tensor & _log_softmax_backward_data_outf(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, at::Tensor & out);
23
+
24
+ } // namespace meta
25
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_make_per_channel_quantized_tensor_native.h ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+
16
+
17
+ namespace at {
18
+ namespace native {
19
+ TORCH_API at::Tensor & _make_per_channel_quantized_tensor_out(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis, at::Tensor & out);
20
+ TORCH_API at::Tensor make_per_channel_quantized_tensor_cpu(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis);
21
+ TORCH_API at::Tensor make_per_channel_quantized_tensor_cuda(const at::Tensor & self, const at::Tensor & scale, const at::Tensor & zero_point, int64_t axis);
22
+ } // namespace native
23
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_nested_view_from_jagged_copy_ops.h ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Operator.h
4
+
5
+ #include <tuple>
6
+ #include <vector>
7
+
8
+ // Forward declarations of any types needed in the operator signatures.
9
+ // We can't directly include these classes because it will cause circular include dependencies.
10
+ // This file is included by TensorBody.h, which defines the Tensor class.
11
+ #include <ATen/core/ATen_fwd.h>
12
+
13
+ namespace at {
14
+ namespace _ops {
15
+
16
+
17
+ struct TORCH_API _nested_view_from_jagged_copy {
18
+ using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &, const ::std::optional<at::Tensor> &, int64_t, const ::std::optional<at::Tensor> &, const ::std::optional<at::Tensor> &);
19
+ using ptr_schema = schema*;
20
+ // See Note [static constexpr char* members for windows NVCC]
21
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_nested_view_from_jagged_copy")
22
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
23
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_nested_view_from_jagged_copy(Tensor self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1, Tensor? min_seqlen=None, Tensor? max_seqlen=None) -> Tensor")
24
+ static at::Tensor call(const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const ::std::optional<at::Tensor> & lengths, int64_t ragged_idx, const ::std::optional<at::Tensor> & min_seqlen, const ::std::optional<at::Tensor> & max_seqlen);
25
+ static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const ::std::optional<at::Tensor> & lengths, int64_t ragged_idx, const ::std::optional<at::Tensor> & min_seqlen, const ::std::optional<at::Tensor> & max_seqlen);
26
+ };
27
+
28
+ struct TORCH_API _nested_view_from_jagged_copy_out {
29
+ using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, const at::Tensor &, const ::std::optional<at::Tensor> &, int64_t, const ::std::optional<at::Tensor> &, const ::std::optional<at::Tensor> &, at::Tensor &);
30
+ using ptr_schema = schema*;
31
+ // See Note [static constexpr char* members for windows NVCC]
32
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_nested_view_from_jagged_copy")
33
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
34
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_nested_view_from_jagged_copy.out(Tensor self, Tensor offsets, Tensor dummy, Tensor? lengths=None, int ragged_idx=1, Tensor? min_seqlen=None, Tensor? max_seqlen=None, *, Tensor(a!) out) -> Tensor(a!)")
35
+ static at::Tensor & call(const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const ::std::optional<at::Tensor> & lengths, int64_t ragged_idx, const ::std::optional<at::Tensor> & min_seqlen, const ::std::optional<at::Tensor> & max_seqlen, at::Tensor & out);
36
+ static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & offsets, const at::Tensor & dummy, const ::std::optional<at::Tensor> & lengths, int64_t ragged_idx, const ::std::optional<at::Tensor> & min_seqlen, const ::std::optional<at::Tensor> & max_seqlen, at::Tensor & out);
37
+ };
38
+
39
+ }} // namespace at::_ops
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_print_native.h ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+
16
+
17
+ namespace at {
18
+ namespace native {
19
+ TORCH_API void _print(c10::string_view s);
20
+ } // namespace native
21
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_compressed_tensor_with_dims.h ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Function.h
4
+
5
+ #include <ATen/Context.h>
6
+ #include <ATen/DeviceGuard.h>
7
+ #include <ATen/TensorUtils.h>
8
+ #include <ATen/TracerMode.h>
9
+ #include <ATen/core/Generator.h>
10
+ #include <ATen/core/Reduction.h>
11
+ #include <ATen/core/Tensor.h>
12
+ #include <c10/core/Scalar.h>
13
+ #include <c10/core/Storage.h>
14
+ #include <c10/core/TensorOptions.h>
15
+ #include <c10/util/Deprecated.h>
16
+ #include <optional>
17
+
18
+
19
+
20
+ #include <ATen/ops/_sparse_compressed_tensor_with_dims_ops.h>
21
+
22
+ namespace at {
23
+
24
+
25
+ // aten::_sparse_compressed_tensor_with_dims(int nnz, int dense_dim, int[] size, int[] blocksize, ScalarType index_dtype, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor
26
+ inline at::Tensor _sparse_compressed_tensor_with_dims(int64_t nnz, int64_t dense_dim, at::IntArrayRef size, at::IntArrayRef blocksize, at::ScalarType index_dtype, at::TensorOptions options) {
27
+ return at::_ops::_sparse_compressed_tensor_with_dims::call(nnz, dense_dim, size, blocksize, index_dtype, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
28
+ }
29
+ // aten::_sparse_compressed_tensor_with_dims(int nnz, int dense_dim, int[] size, int[] blocksize, ScalarType index_dtype, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=False) -> Tensor
30
+ inline at::Tensor _sparse_compressed_tensor_with_dims(int64_t nnz, int64_t dense_dim, at::IntArrayRef size, at::IntArrayRef blocksize, at::ScalarType index_dtype, ::std::optional<at::ScalarType> dtype, ::std::optional<at::Layout> layout, ::std::optional<at::Device> device, ::std::optional<bool> pin_memory) {
31
+ return at::_ops::_sparse_compressed_tensor_with_dims::call(nnz, dense_dim, size, blocksize, index_dtype, dtype, layout, device, pin_memory);
32
+ }
33
+
34
+ }
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_log_softmax_backward_data_compositeexplicitautograd_dispatch.h ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace compositeexplicitautograd {
19
+
20
+ TORCH_API at::Tensor & _sparse_log_softmax_backward_data_out(at::Tensor & out, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self);
21
+ TORCH_API at::Tensor & _sparse_log_softmax_backward_data_outf(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out);
22
+
23
+ } // namespace compositeexplicitautograd
24
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_test_string_default.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Function.h
4
+
5
+ #include <ATen/Context.h>
6
+ #include <ATen/DeviceGuard.h>
7
+ #include <ATen/TensorUtils.h>
8
+ #include <ATen/TracerMode.h>
9
+ #include <ATen/core/Generator.h>
10
+ #include <ATen/core/Reduction.h>
11
+ #include <ATen/core/Tensor.h>
12
+ #include <c10/core/Scalar.h>
13
+ #include <c10/core/Storage.h>
14
+ #include <c10/core/TensorOptions.h>
15
+ #include <c10/util/Deprecated.h>
16
+ #include <optional>
17
+
18
+
19
+
20
+ #include <ATen/ops/_test_string_default_ops.h>
21
+
22
+ namespace at {
23
+
24
+
25
+ // aten::_test_string_default(Tensor dummy, str a="\"'\\", str b='"\'\\') -> Tensor
26
+ inline at::Tensor _test_string_default(const at::Tensor & dummy, c10::string_view a="\"'\\", c10::string_view b="\"'\\") {
27
+ return at::_ops::_test_string_default::call(dummy, a, b);
28
+ }
29
+
30
+ }
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_unique_ops.h ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Operator.h
4
+
5
+ #include <tuple>
6
+ #include <vector>
7
+
8
+ // Forward declarations of any types needed in the operator signatures.
9
+ // We can't directly include these classes because it will cause circular include dependencies.
10
+ // This file is included by TensorBody.h, which defines the Tensor class.
11
+ #include <ATen/core/ATen_fwd.h>
12
+
13
+ namespace at {
14
+ namespace _ops {
15
+
16
+
17
+ struct TORCH_API _unique {
18
+ using schema = ::std::tuple<at::Tensor,at::Tensor> (const at::Tensor &, bool, bool);
19
+ using ptr_schema = schema*;
20
+ // See Note [static constexpr char* members for windows NVCC]
21
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_unique")
22
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
23
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_unique(Tensor self, bool sorted=True, bool return_inverse=False) -> (Tensor, Tensor)")
24
+ static ::std::tuple<at::Tensor,at::Tensor> call(const at::Tensor & self, bool sorted, bool return_inverse);
25
+ static ::std::tuple<at::Tensor,at::Tensor> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted, bool return_inverse);
26
+ };
27
+
28
+ struct TORCH_API _unique_out {
29
+ using schema = ::std::tuple<at::Tensor &,at::Tensor &> (const at::Tensor &, bool, bool, at::Tensor &, at::Tensor &);
30
+ using ptr_schema = schema*;
31
+ // See Note [static constexpr char* members for windows NVCC]
32
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_unique")
33
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
34
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_unique.out(Tensor self, bool sorted=True, bool return_inverse=False, *, Tensor(a!) out0, Tensor(b!) out1) -> (Tensor(a!), Tensor(b!))")
35
+ static ::std::tuple<at::Tensor &,at::Tensor &> call(const at::Tensor & self, bool sorted, bool return_inverse, at::Tensor & out0, at::Tensor & out1);
36
+ static ::std::tuple<at::Tensor &,at::Tensor &> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, bool sorted, bool return_inverse, at::Tensor & out0, at::Tensor & out1);
37
+ };
38
+
39
+ }} // namespace at::_ops
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/_validate_sparse_csc_tensor_args.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Function.h
4
+
5
+ #include <ATen/Context.h>
6
+ #include <ATen/DeviceGuard.h>
7
+ #include <ATen/TensorUtils.h>
8
+ #include <ATen/TracerMode.h>
9
+ #include <ATen/core/Generator.h>
10
+ #include <ATen/core/Reduction.h>
11
+ #include <ATen/core/Tensor.h>
12
+ #include <c10/core/Scalar.h>
13
+ #include <c10/core/Storage.h>
14
+ #include <c10/core/TensorOptions.h>
15
+ #include <c10/util/Deprecated.h>
16
+ #include <optional>
17
+
18
+
19
+
20
+ #include <ATen/ops/_validate_sparse_csc_tensor_args_ops.h>
21
+
22
+ namespace at {
23
+
24
+
25
+ // aten::_validate_sparse_csc_tensor_args(Tensor ccol_indices, Tensor row_indices, Tensor values, int[] size) -> ()
26
+ inline void _validate_sparse_csc_tensor_args(const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size) {
27
+ return at::_ops::_validate_sparse_csc_tensor_args::call(ccol_indices, row_indices, values, size);
28
+ }
29
+
30
+ }
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/acos_ops.h ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Operator.h
4
+
5
+ #include <tuple>
6
+ #include <vector>
7
+
8
+ // Forward declarations of any types needed in the operator signatures.
9
+ // We can't directly include these classes because it will cause circular include dependencies.
10
+ // This file is included by TensorBody.h, which defines the Tensor class.
11
+ #include <ATen/core/ATen_fwd.h>
12
+
13
+ namespace at {
14
+ namespace _ops {
15
+
16
+
17
+ struct TORCH_API acos {
18
+ using schema = at::Tensor (const at::Tensor &);
19
+ using ptr_schema = schema*;
20
+ // See Note [static constexpr char* members for windows NVCC]
21
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::acos")
22
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
23
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "acos(Tensor self) -> Tensor")
24
+ static at::Tensor call(const at::Tensor & self);
25
+ static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self);
26
+ };
27
+
28
+ struct TORCH_API acos_ {
29
+ using schema = at::Tensor & (at::Tensor &);
30
+ using ptr_schema = schema*;
31
+ // See Note [static constexpr char* members for windows NVCC]
32
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::acos_")
33
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
34
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "acos_(Tensor(a!) self) -> Tensor(a!)")
35
+ static at::Tensor & call(at::Tensor & self);
36
+ static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, at::Tensor & self);
37
+ };
38
+
39
+ struct TORCH_API acos_out {
40
+ using schema = at::Tensor & (const at::Tensor &, at::Tensor &);
41
+ using ptr_schema = schema*;
42
+ // See Note [static constexpr char* members for windows NVCC]
43
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::acos")
44
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
45
+ STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "acos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)")
46
+ static at::Tensor & call(const at::Tensor & self, at::Tensor & out);
47
+ static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out);
48
+ };
49
+
50
+ }} // namespace at::_ops
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/adaptive_max_pool3d_backward_native.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+ #include <ATen/ops/adaptive_max_pool3d_backward_meta.h>
16
+
17
+ namespace at {
18
+ namespace native {
19
+ struct TORCH_API structured_adaptive_max_pool3d_backward_out_cpu : public at::meta::structured_adaptive_max_pool3d_backward {
20
+ void impl(const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices, const at::Tensor & grad_input);
21
+ };
22
+ struct TORCH_API structured_adaptive_max_pool3d_backward_out_cuda : public at::meta::structured_adaptive_max_pool3d_backward {
23
+ void impl(const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & indices, const at::Tensor & grad_input);
24
+ };
25
+ } // namespace native
26
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/arccos.h ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from Function.h
4
+
5
+ #include <ATen/Context.h>
6
+ #include <ATen/DeviceGuard.h>
7
+ #include <ATen/TensorUtils.h>
8
+ #include <ATen/TracerMode.h>
9
+ #include <ATen/core/Generator.h>
10
+ #include <ATen/core/Reduction.h>
11
+ #include <ATen/core/Tensor.h>
12
+ #include <c10/core/Scalar.h>
13
+ #include <c10/core/Storage.h>
14
+ #include <c10/core/TensorOptions.h>
15
+ #include <c10/util/Deprecated.h>
16
+ #include <optional>
17
+
18
+
19
+
20
+ #include <ATen/ops/arccos_ops.h>
21
+
22
+ namespace at {
23
+
24
+
25
+ // aten::arccos(Tensor self) -> Tensor
26
+ inline at::Tensor arccos(const at::Tensor & self) {
27
+ return at::_ops::arccos::call(self);
28
+ }
29
+
30
+ // aten::arccos_(Tensor(a!) self) -> Tensor(a!)
31
+ inline at::Tensor & arccos_(at::Tensor & self) {
32
+ return at::_ops::arccos_::call(self);
33
+ }
34
+
35
+ // aten::arccos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
36
+ inline at::Tensor & arccos_out(at::Tensor & out, const at::Tensor & self) {
37
+ return at::_ops::arccos_out::call(self, out);
38
+ }
39
+ // aten::arccos.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
40
+ inline at::Tensor & arccos_outf(const at::Tensor & self, at::Tensor & out) {
41
+ return at::_ops::arccos_out::call(self, out);
42
+ }
43
+
44
+ }
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/arccos_native.h ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+
16
+
17
+ namespace at {
18
+ namespace native {
19
+ TORCH_API at::Tensor arccos(const at::Tensor & self);
20
+ TORCH_API at::Tensor & arccos_out(const at::Tensor & self, at::Tensor & out);
21
+ TORCH_API at::Tensor & arccos_(at::Tensor & self);
22
+ } // namespace native
23
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/ceil_native.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+
3
+ // @generated by torchgen/gen.py from NativeFunction.h
4
+
5
+ #include <c10/core/Scalar.h>
6
+ #include <c10/core/Storage.h>
7
+ #include <c10/core/TensorOptions.h>
8
+ #include <c10/util/Deprecated.h>
9
+ #include <optional>
10
+ #include <c10/core/QScheme.h>
11
+ #include <ATen/core/Reduction.h>
12
+ #include <ATen/core/Tensor.h>
13
+ #include <tuple>
14
+ #include <vector>
15
+ #include <ATen/ops/ceil_meta.h>
16
+
17
+ namespace at {
18
+ namespace native {
19
+ struct TORCH_API structured_ceil_out : public at::meta::structured_ceil {
20
+ void impl(const at::Tensor & self, const at::Tensor & out);
21
+ };
22
+ TORCH_API at::Tensor ceil_sparse(const at::Tensor & self);
23
+ TORCH_API at::Tensor & ceil_sparse_out(const at::Tensor & self, at::Tensor & out);
24
+ TORCH_API at::Tensor & ceil_sparse_(at::Tensor & self);
25
+ TORCH_API at::Tensor ceil_sparse_csr(const at::Tensor & self);
26
+ TORCH_API at::Tensor & ceil_sparse_csr_out(const at::Tensor & self, at::Tensor & out);
27
+ TORCH_API at::Tensor & ceil_sparse_csr_(at::Tensor & self);
28
+ } // namespace native
29
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/conv2d_compositeimplicitautograd_dispatch.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace compositeimplicitautograd {
19
+
20
+ TORCH_API at::Tensor conv2d(const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias={}, at::IntArrayRef stride=1, at::IntArrayRef padding=0, at::IntArrayRef dilation=1, int64_t groups=1);
21
+ TORCH_API at::Tensor conv2d_symint(const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias={}, c10::SymIntArrayRef stride=c10::SymInt(1), c10::SymIntArrayRef padding=c10::SymInt(0), c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1);
22
+ TORCH_API at::Tensor conv2d(const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias, at::IntArrayRef stride, c10::string_view padding, at::IntArrayRef dilation=1, int64_t groups=1);
23
+ TORCH_API at::Tensor conv2d_symint(const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias, c10::SymIntArrayRef stride, c10::string_view padding, c10::SymIntArrayRef dilation=c10::SymInt(1), c10::SymInt groups=1);
24
+
25
+ } // namespace compositeimplicitautograd
26
+ } // namespace at
infer_4_47_1/lib/python3.10/site-packages/torch/include/ATen/ops/expand_as_compositeimplicitautograd_dispatch.h ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #pragma once
2
+ // @generated by torchgen/gen.py from DispatchKeyFunction.h
3
+
4
+ // NB: The implementing C++ file is RegisterDispatchKey.cpp
5
+
6
+ // The only #includes we need are for custom classes that have defaults in the C++ API
7
+ #include <c10/core/MemoryFormat.h>
8
+ #include <c10/core/Scalar.h>
9
+ #include <ATen/core/Reduction.h>
10
+
11
+ // Forward declarations of any types needed in the operator signatures.
12
+ // We can't directly include these classes because it will cause circular include dependencies.
13
+ // This file is included by TensorBody.h, which defines the Tensor class.
14
+ #include <ATen/core/ATen_fwd.h>
15
+
16
+ namespace at {
17
+
18
+ namespace compositeimplicitautograd {
19
+
20
+ TORCH_API at::Tensor expand_as(const at::Tensor & self, const at::Tensor & other);
21
+
22
+ } // namespace compositeimplicitautograd
23
+ } // namespace at