xref: /aosp_15_r20/external/pytorch/NOTICE (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1=======================================================================
2Software under third_party
3=======================================================================
4Software libraries under third_party are provided as github submodule
5links, and their content is not part of the Caffe2 codebase. Their
6licences can be found under the respective software repositories.
7
8=======================================================================
9Earlier BSD License
10=======================================================================
11Early development of Caffe2 in 2015 and early 2016 is licensed under the
12BSD license. The license is attached below:
13
14All contributions by Facebook:
15Copyright (c) 2016 Facebook Inc.
16
17All contributions by Google:
18Copyright (c) 2015 Google Inc.
19All rights reserved.
20
21All contributions by Yangqing Jia:
22Copyright (c) 2015 Yangqing Jia
23All rights reserved.
24
25All contributions by Kakao Brain:
26Copyright 2019-2020 Kakao Brain
27
28All other contributions:
29Copyright(c) 2015, 2016 the respective contributors
30All rights reserved.
31
32Redistribution and use in source and binary forms, with or without
33modification, are permitted provided that the following conditions are met:
34
351. Redistributions of source code must retain the above copyright notice, this
36   list of conditions and the following disclaimer.
372. Redistributions in binary form must reproduce the above copyright notice,
38   this list of conditions and the following disclaimer in the documentation
39   and/or other materials provided with the distribution.
40
41THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
42ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
43WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
45ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
46(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
48ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
50SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51
52
53=======================================================================
54Caffe's BSD License
55=======================================================================
56Some parts of the caffe2 code is derived from the original Caffe code, which is
57created by Yangqing Jia and is now a BSD-licensed open-source project. The Caffe
58license is as follows:
59
60COPYRIGHT
61
62All contributions by the University of California:
63Copyright (c) 2014, The Regents of the University of California (Regents)
64All rights reserved.
65
66All other contributions:
67Copyright (c) 2014, the respective contributors
68All rights reserved.
69
70Caffe uses a shared copyright model: each contributor holds copyright over
71their contributions to Caffe. The project versioning records all such
72contribution and copyright details. If a contributor wants to further mark
73their specific copyright on a particular contribution, they should indicate
74their copyright solely in the commit message of the change when it is
75committed.
76
77LICENSE
78
79Redistribution and use in source and binary forms, with or without
80modification, are permitted provided that the following conditions are met:
81
821. Redistributions of source code must retain the above copyright notice, this
83   list of conditions and the following disclaimer.
842. Redistributions in binary form must reproduce the above copyright notice,
85   this list of conditions and the following disclaimer in the documentation
86   and/or other materials provided with the distribution.
87
88THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
89ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
90WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
91DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
92ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
93(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
94LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
95ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
96(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
97SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
98
99CONTRIBUTION AGREEMENT
100
101By contributing to the BVLC/caffe repository through pull-request, comment,
102or otherwise, the contributor releases their content to the
103license and copyright terms herein.
104
105=======================================================================
106Caffe2's Apache License
107=======================================================================
108
109This repo contains Caffe2 code, which was previously licensed under
110Apache License Version 2.0:
111
112                                 Apache License
113                           Version 2.0, January 2004
114                        http://www.apache.org/licenses/
115
116   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
117
118   1. Definitions.
119
120      "License" shall mean the terms and conditions for use, reproduction,
121      and distribution as defined by Sections 1 through 9 of this document.
122
123      "Licensor" shall mean the copyright owner or entity authorized by
124      the copyright owner that is granting the License.
125
126      "Legal Entity" shall mean the union of the acting entity and all
127      other entities that control, are controlled by, or are under common
128      control with that entity. For the purposes of this definition,
129      "control" means (i) the power, direct or indirect, to cause the
130      direction or management of such entity, whether by contract or
131      otherwise, or (ii) ownership of fifty percent (50%) or more of the
132      outstanding shares, or (iii) beneficial ownership of such entity.
133
134      "You" (or "Your") shall mean an individual or Legal Entity
135      exercising permissions granted by this License.
136
137      "Source" form shall mean the preferred form for making modifications,
138      including but not limited to software source code, documentation
139      source, and configuration files.
140
141      "Object" form shall mean any form resulting from mechanical
142      transformation or translation of a Source form, including but
143      not limited to compiled object code, generated documentation,
144      and conversions to other media types.
145
146      "Work" shall mean the work of authorship, whether in Source or
147      Object form, made available under the License, as indicated by a
148      copyright notice that is included in or attached to the work
149      (an example is provided in the Appendix below).
150
151      "Derivative Works" shall mean any work, whether in Source or Object
152      form, that is based on (or derived from) the Work and for which the
153      editorial revisions, annotations, elaborations, or other modifications
154      represent, as a whole, an original work of authorship. For the purposes
155      of this License, Derivative Works shall not include works that remain
156      separable from, or merely link (or bind by name) to the interfaces of,
157      the Work and Derivative Works thereof.
158
159      "Contribution" shall mean any work of authorship, including
160      the original version of the Work and any modifications or additions
161      to that Work or Derivative Works thereof, that is intentionally
162      submitted to Licensor for inclusion in the Work by the copyright owner
163      or by an individual or Legal Entity authorized to submit on behalf of
164      the copyright owner. For the purposes of this definition, "submitted"
165      means any form of electronic, verbal, or written communication sent
166      to the Licensor or its representatives, including but not limited to
167      communication on electronic mailing lists, source code control systems,
168      and issue tracking systems that are managed by, or on behalf of, the
169      Licensor for the purpose of discussing and improving the Work, but
170      excluding communication that is conspicuously marked or otherwise
171      designated in writing by the copyright owner as "Not a Contribution."
172
173      "Contributor" shall mean Licensor and any individual or Legal Entity
174      on behalf of whom a Contribution has been received by Licensor and
175      subsequently incorporated within the Work.
176
177   2. Grant of Copyright License. Subject to the terms and conditions of
178      this License, each Contributor hereby grants to You a perpetual,
179      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
180      copyright license to reproduce, prepare Derivative Works of,
181      publicly display, publicly perform, sublicense, and distribute the
182      Work and such Derivative Works in Source or Object form.
183
184   3. Grant of Patent License. Subject to the terms and conditions of
185      this License, each Contributor hereby grants to You a perpetual,
186      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
187      (except as stated in this section) patent license to make, have made,
188      use, offer to sell, sell, import, and otherwise transfer the Work,
189      where such license applies only to those patent claims licensable
190      by such Contributor that are necessarily infringed by their
191      Contribution(s) alone or by combination of their Contribution(s)
192      with the Work to which such Contribution(s) was submitted. If You
193      institute patent litigation against any entity (including a
194      cross-claim or counterclaim in a lawsuit) alleging that the Work
195      or a Contribution incorporated within the Work constitutes direct
196      or contributory patent infringement, then any patent licenses
197      granted to You under this License for that Work shall terminate
198      as of the date such litigation is filed.
199
200   4. Redistribution. You may reproduce and distribute copies of the
201      Work or Derivative Works thereof in any medium, with or without
202      modifications, and in Source or Object form, provided that You
203      meet the following conditions:
204
205      (a) You must give any other recipients of the Work or
206          Derivative Works a copy of this License; and
207
208      (b) You must cause any modified files to carry prominent notices
209          stating that You changed the files; and
210
211      (c) You must retain, in the Source form of any Derivative Works
212          that You distribute, all copyright, patent, trademark, and
213          attribution notices from the Source form of the Work,
214          excluding those notices that do not pertain to any part of
215          the Derivative Works; and
216
217      (d) If the Work includes a "NOTICE" text file as part of its
218          distribution, then any Derivative Works that You distribute must
219          include a readable copy of the attribution notices contained
220          within such NOTICE file, excluding those notices that do not
221          pertain to any part of the Derivative Works, in at least one
222          of the following places: within a NOTICE text file distributed
223          as part of the Derivative Works; within the Source form or
224          documentation, if provided along with the Derivative Works; or,
225          within a display generated by the Derivative Works, if and
226          wherever such third-party notices normally appear. The contents
227          of the NOTICE file are for informational purposes only and
228          do not modify the License. You may add Your own attribution
229          notices within Derivative Works that You distribute, alongside
230          or as an addendum to the NOTICE text from the Work, provided
231          that such additional attribution notices cannot be construed
232          as modifying the License.
233
234      You may add Your own copyright statement to Your modifications and
235      may provide additional or different license terms and conditions
236      for use, reproduction, or distribution of Your modifications, or
237      for any such Derivative Works as a whole, provided Your use,
238      reproduction, and distribution of the Work otherwise complies with
239      the conditions stated in this License.
240
241   5. Submission of Contributions. Unless You explicitly state otherwise,
242      any Contribution intentionally submitted for inclusion in the Work
243      by You to the Licensor shall be under the terms and conditions of
244      this License, without any additional terms or conditions.
245      Notwithstanding the above, nothing herein shall supersede or modify
246      the terms of any separate license agreement you may have executed
247      with Licensor regarding such Contributions.
248
249   6. Trademarks. This License does not grant permission to use the trade
250      names, trademarks, service marks, or product names of the Licensor,
251      except as required for reasonable and customary use in describing the
252      origin of the Work and reproducing the content of the NOTICE file.
253
254   7. Disclaimer of Warranty. Unless required by applicable law or
255      agreed to in writing, Licensor provides the Work (and each
256      Contributor provides its Contributions) on an "AS IS" BASIS,
257      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
258      implied, including, without limitation, any warranties or conditions
259      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
260      PARTICULAR PURPOSE. You are solely responsible for determining the
261      appropriateness of using or redistributing the Work and assume any
262      risks associated with Your exercise of permissions under this License.
263
264   8. Limitation of Liability. In no event and under no legal theory,
265      whether in tort (including negligence), contract, or otherwise,
266      unless required by applicable law (such as deliberate and grossly
267      negligent acts) or agreed to in writing, shall any Contributor be
268      liable to You for damages, including any direct, indirect, special,
269      incidental, or consequential damages of any character arising as a
270      result of this License or out of the use or inability to use the
271      Work (including but not limited to damages for loss of goodwill,
272      work stoppage, computer failure or malfunction, or any and all
273      other commercial damages or losses), even if such Contributor
274      has been advised of the possibility of such damages.
275
276   9. Accepting Warranty or Additional Liability. While redistributing
277      the Work or Derivative Works thereof, You may choose to offer,
278      and charge a fee for, acceptance of support, warranty, indemnity,
279      or other liability obligations and/or rights consistent with this
280      License. However, in accepting such obligations, You may act only
281      on Your own behalf and on Your sole responsibility, not on behalf
282      of any other Contributor, and only if You agree to indemnify,
283      defend, and hold each Contributor harmless for any liability
284      incurred by, or claims asserted against, such Contributor by reason
285      of your accepting any such warranty or additional liability.
286
287=======================================================================
288Cephes's 3-Clause BSD License
289=======================================================================
290
291Code derived from implementations in the Cephes Math Library should mention
292its derivation and reference the following license:
293
294   3-Clause BSD License for the Cephes Math Library
295   Copyright (c) 2018, Steven Moshier
296   All rights reserved.
297
298   Redistribution and use in source and binary forms, with or without
299   modification, are permitted provided that the following conditions are met:
300
301   * Redistributions of source code must retain the above copyright
302   notice, this list of conditions and the following disclaimer.
303
304   * Redistributions in binary form must reproduce the above copyright
305   notice, this list of conditions and the following disclaimer in the
306   documentation and/or other materials provided with the distribution.
307
308   * Neither the name of the nor the
309   names of its contributors may be used to endorse or promote products
310   derived from this software without specific prior written permission.
311
312   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
313   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
314   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
315   DISCLAIMED. IN NO EVENT SHALL Steven Moshier BE LIABLE FOR ANY
316   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
317   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
318   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
319   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
320   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
321   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
322
323
324=======================================================================
325SciPy's 3-Clause BSD License
326=======================================================================
327
328Code derived from implementations in SciPy should mention its derivation
329and reference the following license:
330
331   Copyright (c) 2001-2002 Enthought, Inc.  2003-2019, SciPy Developers.
332   All rights reserved.
333
334   Redistribution and use in source and binary forms, with or without
335   modification, are permitted provided that the following conditions
336   are met:
337
338   1. Redistributions of source code must retain the above copyright
339     notice, this list of conditions and the following disclaimer.
340
341   2. Redistributions in binary form must reproduce the above
342     copyright notice, this list of conditions and the following
343     disclaimer in the documentation and/or other materials provided
344     with the distribution.
345
346   3. Neither the name of the copyright holder nor the names of its
347     contributors may be used to endorse or promote products derived
348     from this software without specific prior written permission.
349
350   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
351   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
352   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
353   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
354   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
355   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
356   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
357   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
358   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
359   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
360   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
361
362=======================================================================
363Boost's 1.0 Software License
364=======================================================================
365
366Code derived from implementations in Boost 1.0 should mention its
367derivation and reference the following license:
368
369   Boost Software License - Version 1.0 - August 17th, 2003
370
371   Permission is hereby granted, free of charge, to any person or organization
372   obtaining a copy of the software and accompanying documentation covered by
373   this license (the "Software") to use, reproduce, display, distribute,
374   execute, and transmit the Software, and to prepare derivative works of the
375   Software, and to permit third-parties to whom the Software is furnished to
376   do so, all subject to the following:
377
378   The copyright notices in the Software and this entire statement, including
379   the above license grant, this restriction and the following disclaimer,
380   must be included in all copies of the Software, in whole or in part, and
381   all derivative works of the Software, unless such copies or derivative
382   works are solely in the form of machine-executable object code generated by
383   a source language processor.
384
385   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
386   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
387   FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
388   SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
389   FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
390   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
391   DEALINGS IN THE SOFTWARE.
392
393   END OF TERMS AND CONDITIONS
394
395   APPENDIX: How to apply the Apache License to your work.
396
397      To apply the Apache License to your work, attach the following
398      boilerplate notice, with the fields enclosed by brackets "[]"
399      replaced with your own identifying information. (Don't include
400      the brackets!)  The text should be enclosed in the appropriate
401      comment syntax for the file format. We also recommend that a
402      file or class name and description of purpose be included on the
403      same "printed page" as the copyright notice for easier
404      identification within third-party archives.
405
406   Copyright [yyyy] [name of copyright owner]
407
408   Licensed under the Apache License, Version 2.0 (the "License");
409   you may not use this file except in compliance with the License.
410   You may obtain a copy of the License at
411
412       http://www.apache.org/licenses/LICENSE-2.0
413
414   Unless required by applicable law or agreed to in writing, software
415   distributed under the License is distributed on an "AS IS" BASIS,
416   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
417   See the License for the specific language governing permissions and
418   limitations under the License.
419
420=======================================================================
421PILLOW-SIMD Software License
422=======================================================================
423
424Code derived from implementations in PILLOW-SIMD should mention its derivation
425and reference the following license:
426
427    The Python Imaging Library (PIL) is
428
429        Copyright © 1997-2011 by Secret Labs AB
430        Copyright © 1995-2011 by Fredrik Lundh
431
432    Pillow is the friendly PIL fork. It is
433
434        Copyright © 2010-2022 by Alex Clark and contributors
435
436    Like PIL, Pillow is licensed under the open source HPND License:
437
438    By obtaining, using, and/or copying this software and/or its associated
439    documentation, you agree that you have read, understood, and will comply
440    with the following terms and conditions:
441
442    Permission to use, copy, modify, and distribute this software and its
443    associated documentation for any purpose and without fee is hereby granted,
444    provided that the above copyright notice appears in all copies, and that
445    both that copyright notice and this permission notice appear in supporting
446    documentation, and that the name of Secret Labs AB or the author not be
447    used in advertising or publicity pertaining to distribution of the software
448    without specific, written prior permission.
449
450    SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
451    SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
452    IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL,
453    INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
454    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
455    OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
456    PERFORMANCE OF THIS SOFTWARE.
457