1 Copyright (c) 2017, The Android Open Source Project 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 6 Unless required by applicable law or agreed to in writing, software 7 distributed under the License is distributed on an "AS IS" BASIS, 8 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9 See the License for the specific language governing permissions and 10 limitations under the License. 11 12 13 Apache License 14 Version 2.0, January 2004 15 http://www.apache.org/licenses/ 16 17 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 18 19 1. Definitions. 20 21 "License" shall mean the terms and conditions for use, reproduction, 22 and distribution as defined by Sections 1 through 9 of this document. 23 24 "Licensor" shall mean the copyright owner or entity authorized by 25 the copyright owner that is granting the License. 26 27 "Legal Entity" shall mean the union of the acting entity and all 28 other entities that control, are controlled by, or are under common 29 control with that entity. For the purposes of this definition, 30 "control" means (i) the power, direct or indirect, to cause the 31 direction or management of such entity, whether by contract or 32 otherwise, or (ii) ownership of fifty percent (50%) or more of the 33 outstanding shares, or (iii) beneficial ownership of such entity. 34 35 "You" (or "Your") shall mean an individual or Legal Entity 36 exercising permissions granted by this License. 37 38 "Source" form shall mean the preferred form for making modifications, 39 including but not limited to software source code, documentation 40 source, and configuration files. 41 42 "Object" form shall mean any form resulting from mechanical 43 transformation or translation of a Source form, including but 44 not limited to compiled object code, generated documentation, 45 and conversions to other media types. 46 47 "Work" shall mean the work of authorship, whether in Source or 48 Object form, made available under the License, as indicated by a 49 copyright notice that is included in or attached to the work 50 (an example is provided in the Appendix below). 51 52 "Derivative Works" shall mean any work, whether in Source or Object 53 form, that is based on (or derived from) the Work and for which the 54 editorial revisions, annotations, elaborations, or other modifications 55 represent, as a whole, an original work of authorship. For the purposes 56 of this License, Derivative Works shall not include works that remain 57 separable from, or merely link (or bind by name) to the interfaces of, 58 the Work and Derivative Works thereof. 59 60 "Contribution" shall mean any work of authorship, including 61 the original version of the Work and any modifications or additions 62 to that Work or Derivative Works thereof, that is intentionally 63 submitted to Licensor for inclusion in the Work by the copyright owner 64 or by an individual or Legal Entity authorized to submit on behalf of 65 the copyright owner. For the purposes of this definition, "submitted" 66 means any form of electronic, verbal, or written communication sent 67 to the Licensor or its representatives, including but not limited to 68 communication on electronic mailing lists, source code control systems, 69 and issue tracking systems that are managed by, or on behalf of, the 70 Licensor for the purpose of discussing and improving the Work, but 71 excluding communication that is conspicuously marked or otherwise 72 designated in writing by the copyright owner as "Not a Contribution." 73 74 "Contributor" shall mean Licensor and any individual or Legal Entity 75 on behalf of whom a Contribution has been received by Licensor and 76 subsequently incorporated within the Work. 77 78 2. Grant of Copyright License. Subject to the terms and conditions of 79 this License, each Contributor hereby grants to You a perpetual, 80 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 81 copyright license to reproduce, prepare Derivative Works of, 82 publicly display, publicly perform, sublicense, and distribute the 83 Work and such Derivative Works in Source or Object form. 84 85 3. Grant of Patent License. Subject to the terms and conditions of 86 this License, each Contributor hereby grants to You a perpetual, 87 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 88 (except as stated in this section) patent license to make, have made, 89 use, offer to sell, sell, import, and otherwise transfer the Work, 90 where such license applies only to those patent claims licensable 91 by such Contributor that are necessarily infringed by their 92 Contribution(s) alone or by combination of their Contribution(s) 93 with the Work to which such Contribution(s) was submitted. If You 94 institute patent litigation against any entity (including a 95 cross-claim or counterclaim in a lawsuit) alleging that the Work 96 or a Contribution incorporated within the Work constitutes direct 97 or contributory patent infringement, then any patent licenses 98 granted to You under this License for that Work shall terminate 99 as of the date such litigation is filed. 100 101 4. Redistribution. You may reproduce and distribute copies of the 102 Work or Derivative Works thereof in any medium, with or without 103 modifications, and in Source or Object form, provided that You 104 meet the following conditions: 105 106 (a) You must give any other recipients of the Work or 107 Derivative Works a copy of this License; and 108 109 (b) You must cause any modified files to carry prominent notices 110 stating that You changed the files; and 111 112 (c) You must retain, in the Source form of any Derivative Works 113 that You distribute, all copyright, patent, trademark, and 114 attribution notices from the Source form of the Work, 115 excluding those notices that do not pertain to any part of 116 the Derivative Works; and 117 118 (d) If the Work includes a "NOTICE" text file as part of its 119 distribution, then any Derivative Works that You distribute must 120 include a readable copy of the attribution notices contained 121 within such NOTICE file, excluding those notices that do not 122 pertain to any part of the Derivative Works, in at least one 123 of the following places: within a NOTICE text file distributed 124 as part of the Derivative Works; within the Source form or 125 documentation, if provided along with the Derivative Works; or, 126 within a display generated by the Derivative Works, if and 127 wherever such third-party notices normally appear. The contents 128 of the NOTICE file are for informational purposes only and 129 do not modify the License. You may add Your own attribution 130 notices within Derivative Works that You distribute, alongside 131 or as an addendum to the NOTICE text from the Work, provided 132 that such additional attribution notices cannot be construed 133 as modifying the License. 134 135 You may add Your own copyright statement to Your modifications and 136 may provide additional or different license terms and conditions 137 for use, reproduction, or distribution of Your modifications, or 138 for any such Derivative Works as a whole, provided Your use, 139 reproduction, and distribution of the Work otherwise complies with 140 the conditions stated in this License. 141 142 5. Submission of Contributions. Unless You explicitly state otherwise, 143 any Contribution intentionally submitted for inclusion in the Work 144 by You to the Licensor shall be under the terms and conditions of 145 this License, without any additional terms or conditions. 146 Notwithstanding the above, nothing herein shall supersede or modify 147 the terms of any separate license agreement you may have executed 148 with Licensor regarding such Contributions. 149 150 6. Trademarks. This License does not grant permission to use the trade 151 names, trademarks, service marks, or product names of the Licensor, 152 except as required for reasonable and customary use in describing the 153 origin of the Work and reproducing the content of the NOTICE file. 154 155 7. Disclaimer of Warranty. Unless required by applicable law or 156 agreed to in writing, Licensor provides the Work (and each 157 Contributor provides its Contributions) on an "AS IS" BASIS, 158 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 159 implied, including, without limitation, any warranties or conditions 160 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 161 PARTICULAR PURPOSE. You are solely responsible for determining the 162 appropriateness of using or redistributing the Work and assume any 163 risks associated with Your exercise of permissions under this License. 164 165 8. Limitation of Liability. In no event and under no legal theory, 166 whether in tort (including negligence), contract, or otherwise, 167 unless required by applicable law (such as deliberate and grossly 168 negligent acts) or agreed to in writing, shall any Contributor be 169 liable to You for damages, including any direct, indirect, special, 170 incidental, or consequential damages of any character arising as a 171 result of this License or out of the use or inability to use the 172 Work (including but not limited to damages for loss of goodwill, 173 work stoppage, computer failure or malfunction, or any and all 174 other commercial damages or losses), even if such Contributor 175 has been advised of the possibility of such damages. 176 177 9. Accepting Warranty or Additional Liability. While redistributing 178 the Work or Derivative Works thereof, You may choose to offer, 179 and charge a fee for, acceptance of support, warranty, indemnity, 180 or other liability obligations and/or rights consistent with this 181 License. However, in accepting such obligations, You may act only 182 on Your own behalf and on Your sole responsibility, not on behalf 183 of any other Contributor, and only if You agree to indemnify, 184 defend, and hold each Contributor harmless for any liability 185 incurred by, or claims asserted against, such Contributor by reason 186 of your accepting any such warranty or additional liability. 187 188 END OF TERMS AND CONDITIONS 189 190------------------------------------------------------------------- 191* License for Tensorflow: 192------------------------------------------------------------------- 193Copyright 2018 The TensorFlow Authors. All rights reserved. 194 195 Apache License 196 Version 2.0, January 2004 197 http://www.apache.org/licenses/ 198 199 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 200 201 1. Definitions. 202 203 "License" shall mean the terms and conditions for use, reproduction, 204 and distribution as defined by Sections 1 through 9 of this document. 205 206 "Licensor" shall mean the copyright owner or entity authorized by 207 the copyright owner that is granting the License. 208 209 "Legal Entity" shall mean the union of the acting entity and all 210 other entities that control, are controlled by, or are under common 211 control with that entity. For the purposes of this definition, 212 "control" means (i) the power, direct or indirect, to cause the 213 direction or management of such entity, whether by contract or 214 otherwise, or (ii) ownership of fifty percent (50%) or more of the 215 outstanding shares, or (iii) beneficial ownership of such entity. 216 217 "You" (or "Your") shall mean an individual or Legal Entity 218 exercising permissions granted by this License. 219 220 "Source" form shall mean the preferred form for making modifications, 221 including but not limited to software source code, documentation 222 source, and configuration files. 223 224 "Object" form shall mean any form resulting from mechanical 225 transformation or translation of a Source form, including but 226 not limited to compiled object code, generated documentation, 227 and conversions to other media types. 228 229 "Work" shall mean the work of authorship, whether in Source or 230 Object form, made available under the License, as indicated by a 231 copyright notice that is included in or attached to the work 232 (an example is provided in the Appendix below). 233 234 "Derivative Works" shall mean any work, whether in Source or Object 235 form, that is based on (or derived from) the Work and for which the 236 editorial revisions, annotations, elaborations, or other modifications 237 represent, as a whole, an original work of authorship. For the purposes 238 of this License, Derivative Works shall not include works that remain 239 separable from, or merely link (or bind by name) to the interfaces of, 240 the Work and Derivative Works thereof. 241 242 "Contribution" shall mean any work of authorship, including 243 the original version of the Work and any modifications or additions 244 to that Work or Derivative Works thereof, that is intentionally 245 submitted to Licensor for inclusion in the Work by the copyright owner 246 or by an individual or Legal Entity authorized to submit on behalf of 247 the copyright owner. For the purposes of this definition, "submitted" 248 means any form of electronic, verbal, or written communication sent 249 to the Licensor or its representatives, including but not limited to 250 communication on electronic mailing lists, source code control systems, 251 and issue tracking systems that are managed by, or on behalf of, the 252 Licensor for the purpose of discussing and improving the Work, but 253 excluding communication that is conspicuously marked or otherwise 254 designated in writing by the copyright owner as "Not a Contribution." 255 256 "Contributor" shall mean Licensor and any individual or Legal Entity 257 on behalf of whom a Contribution has been received by Licensor and 258 subsequently incorporated within the Work. 259 260 2. Grant of Copyright License. Subject to the terms and conditions of 261 this License, each Contributor hereby grants to You a perpetual, 262 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 263 copyright license to reproduce, prepare Derivative Works of, 264 publicly display, publicly perform, sublicense, and distribute the 265 Work and such Derivative Works in Source or Object form. 266 267 3. Grant of Patent License. Subject to the terms and conditions of 268 this License, each Contributor hereby grants to You a perpetual, 269 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 270 (except as stated in this section) patent license to make, have made, 271 use, offer to sell, sell, import, and otherwise transfer the Work, 272 where such license applies only to those patent claims licensable 273 by such Contributor that are necessarily infringed by their 274 Contribution(s) alone or by combination of their Contribution(s) 275 with the Work to which such Contribution(s) was submitted. If You 276 institute patent litigation against any entity (including a 277 cross-claim or counterclaim in a lawsuit) alleging that the Work 278 or a Contribution incorporated within the Work constitutes direct 279 or contributory patent infringement, then any patent licenses 280 granted to You under this License for that Work shall terminate 281 as of the date such litigation is filed. 282 283 4. Redistribution. You may reproduce and distribute copies of the 284 Work or Derivative Works thereof in any medium, with or without 285 modifications, and in Source or Object form, provided that You 286 meet the following conditions: 287 288 (a) You must give any other recipients of the Work or 289 Derivative Works a copy of this License; and 290 291 (b) You must cause any modified files to carry prominent notices 292 stating that You changed the files; and 293 294 (c) You must retain, in the Source form of any Derivative Works 295 that You distribute, all copyright, patent, trademark, and 296 attribution notices from the Source form of the Work, 297 excluding those notices that do not pertain to any part of 298 the Derivative Works; and 299 300 (d) If the Work includes a "NOTICE" text file as part of its 301 distribution, then any Derivative Works that You distribute must 302 include a readable copy of the attribution notices contained 303 within such NOTICE file, excluding those notices that do not 304 pertain to any part of the Derivative Works, in at least one 305 of the following places: within a NOTICE text file distributed 306 as part of the Derivative Works; within the Source form or 307 documentation, if provided along with the Derivative Works; or, 308 within a display generated by the Derivative Works, if and 309 wherever such third-party notices normally appear. The contents 310 of the NOTICE file are for informational purposes only and 311 do not modify the License. You may add Your own attribution 312 notices within Derivative Works that You distribute, alongside 313 or as an addendum to the NOTICE text from the Work, provided 314 that such additional attribution notices cannot be construed 315 as modifying the License. 316 317 You may add Your own copyright statement to Your modifications and 318 may provide additional or different license terms and conditions 319 for use, reproduction, or distribution of Your modifications, or 320 for any such Derivative Works as a whole, provided Your use, 321 reproduction, and distribution of the Work otherwise complies with 322 the conditions stated in this License. 323 324 5. Submission of Contributions. Unless You explicitly state otherwise, 325 any Contribution intentionally submitted for inclusion in the Work 326 by You to the Licensor shall be under the terms and conditions of 327 this License, without any additional terms or conditions. 328 Notwithstanding the above, nothing herein shall supersede or modify 329 the terms of any separate license agreement you may have executed 330 with Licensor regarding such Contributions. 331 332 6. Trademarks. This License does not grant permission to use the trade 333 names, trademarks, service marks, or product names of the Licensor, 334 except as required for reasonable and customary use in describing the 335 origin of the Work and reproducing the content of the NOTICE file. 336 337 7. Disclaimer of Warranty. Unless required by applicable law or 338 agreed to in writing, Licensor provides the Work (and each 339 Contributor provides its Contributions) on an "AS IS" BASIS, 340 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 341 implied, including, without limitation, any warranties or conditions 342 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 343 PARTICULAR PURPOSE. You are solely responsible for determining the 344 appropriateness of using or redistributing the Work and assume any 345 risks associated with Your exercise of permissions under this License. 346 347 8. Limitation of Liability. In no event and under no legal theory, 348 whether in tort (including negligence), contract, or otherwise, 349 unless required by applicable law (such as deliberate and grossly 350 negligent acts) or agreed to in writing, shall any Contributor be 351 liable to You for damages, including any direct, indirect, special, 352 incidental, or consequential damages of any character arising as a 353 result of this License or out of the use or inability to use the 354 Work (including but not limited to damages for loss of goodwill, 355 work stoppage, computer failure or malfunction, or any and all 356 other commercial damages or losses), even if such Contributor 357 has been advised of the possibility of such damages. 358 359 9. Accepting Warranty or Additional Liability. While redistributing 360 the Work or Derivative Works thereof, You may choose to offer, 361 and charge a fee for, acceptance of support, warranty, indemnity, 362 or other liability obligations and/or rights consistent with this 363 License. However, in accepting such obligations, You may act only 364 on Your own behalf and on Your sole responsibility, not on behalf 365 of any other Contributor, and only if You agree to indemnify, 366 defend, and hold each Contributor harmless for any liability 367 incurred by, or claims asserted against, such Contributor by reason 368 of your accepting any such warranty or additional liability. 369 370 END OF TERMS AND CONDITIONS 371 372 APPENDIX: How to apply the Apache License to your work. 373 374 To apply the Apache License to your work, attach the following 375 boilerplate notice, with the fields enclosed by brackets "[]" 376 replaced with your own identifying information. (Don't include 377 the brackets!) The text should be enclosed in the appropriate 378 comment syntax for the file format. We also recommend that a 379 file or class name and description of purpose be included on the 380 same "printed page" as the copyright notice for easier 381 identification within third-party archives. 382 383 Copyright 2017, The TensorFlow Authors. 384 385 Licensed under the Apache License, Version 2.0 (the "License"); 386 you may not use this file except in compliance with the License. 387 You may obtain a copy of the License at 388 389 http://www.apache.org/licenses/LICENSE-2.0 390 391 Unless required by applicable law or agreed to in writing, software 392 distributed under the License is distributed on an "AS IS" BASIS, 393 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 394 See the License for the specific language governing permissions and 395 limitations under the License. 396 ------------------------------------------------------------------- 397 398------------------------------------------------------------------- 399* License for Eigen: 400------------------------------------------------------------------- 401Mozilla Public License Version 2.0 402================================== 403 4041. Definitions 405-------------- 406 4071.1. "Contributor" 408 means each individual or legal entity that creates, contributes to 409 the creation of, or owns Covered Software. 410 4111.2. "Contributor Version" 412 means the combination of the Contributions of others (if any) used 413 by a Contributor and that particular Contributor's Contribution. 414 4151.3. "Contribution" 416 means Covered Software of a particular Contributor. 417 4181.4. "Covered Software" 419 means Source Code Form to which the initial Contributor has attached 420 the notice in Exhibit A, the Executable Form of such Source Code 421 Form, and Modifications of such Source Code Form, in each case 422 including portions thereof. 423 4241.5. "Incompatible With Secondary Licenses" 425 means 426 427 (a) that the initial Contributor has attached the notice described 428 in Exhibit B to the Covered Software; or 429 430 (b) that the Covered Software was made available under the terms of 431 version 1.1 or earlier of the License, but not also under the 432 terms of a Secondary License. 433 4341.6. "Executable Form" 435 means any form of the work other than Source Code Form. 436 4371.7. "Larger Work" 438 means a work that combines Covered Software with other material, in 439 a separate file or files, that is not Covered Software. 440 4411.8. "License" 442 means this document. 443 4441.9. "Licensable" 445 means having the right to grant, to the maximum extent possible, 446 whether at the time of the initial grant or subsequently, any and 447 all of the rights conveyed by this License. 448 4491.10. "Modifications" 450 means any of the following: 451 452 (a) any file in Source Code Form that results from an addition to, 453 deletion from, or modification of the contents of Covered 454 Software; or 455 456 (b) any new file in Source Code Form that contains any Covered 457 Software. 458 4591.11. "Patent Claims" of a Contributor 460 means any patent claim(s), including without limitation, method, 461 process, and apparatus claims, in any patent Licensable by such 462 Contributor that would be infringed, but for the grant of the 463 License, by the making, using, selling, offering for sale, having 464 made, import, or transfer of either its Contributions or its 465 Contributor Version. 466 4671.12. "Secondary License" 468 means either the GNU General Public License, Version 2.0, the GNU 469 Lesser General Public License, Version 2.1, the GNU Affero General 470 Public License, Version 3.0, or any later versions of those 471 licenses. 472 4731.13. "Source Code Form" 474 means the form of the work preferred for making modifications. 475 4761.14. "You" (or "Your") 477 means an individual or a legal entity exercising rights under this 478 License. For legal entities, "You" includes any entity that 479 controls, is controlled by, or is under common control with You. For 480 purposes of this definition, "control" means (a) the power, direct 481 or indirect, to cause the direction or management of such entity, 482 whether by contract or otherwise, or (b) ownership of more than 483 fifty percent (50%) of the outstanding shares or beneficial 484 ownership of such entity. 485 4862. License Grants and Conditions 487-------------------------------- 488 4892.1. Grants 490 491Each Contributor hereby grants You a world-wide, royalty-free, 492non-exclusive license: 493 494(a) under intellectual property rights (other than patent or trademark) 495 Licensable by such Contributor to use, reproduce, make available, 496 modify, display, perform, distribute, and otherwise exploit its 497 Contributions, either on an unmodified basis, with Modifications, or 498 as part of a Larger Work; and 499 500(b) under Patent Claims of such Contributor to make, use, sell, offer 501 for sale, have made, import, and otherwise transfer either its 502 Contributions or its Contributor Version. 503 5042.2. Effective Date 505 506The licenses granted in Section 2.1 with respect to any Contribution 507become effective for each Contribution on the date the Contributor first 508distributes such Contribution. 509 5102.3. Limitations on Grant Scope 511 512The licenses granted in this Section 2 are the only rights granted under 513this License. No additional rights or licenses will be implied from the 514distribution or licensing of Covered Software under this License. 515Notwithstanding Section 2.1(b) above, no patent license is granted by a 516Contributor: 517 518(a) for any code that a Contributor has removed from Covered Software; 519 or 520 521(b) for infringements caused by: (i) Your and any other third party's 522 modifications of Covered Software, or (ii) the combination of its 523 Contributions with other software (except as part of its Contributor 524 Version); or 525 526(c) under Patent Claims infringed by Covered Software in the absence of 527 its Contributions. 528 529This License does not grant any rights in the trademarks, service marks, 530or logos of any Contributor (except as may be necessary to comply with 531the notice requirements in Section 3.4). 532 5332.4. Subsequent Licenses 534 535No Contributor makes additional grants as a result of Your choice to 536distribute the Covered Software under a subsequent version of this 537License (see Section 10.2) or under the terms of a Secondary License (if 538permitted under the terms of Section 3.3). 539 5402.5. Representation 541 542Each Contributor represents that the Contributor believes its 543Contributions are its original creation(s) or it has sufficient rights 544to grant the rights to its Contributions conveyed by this License. 545 5462.6. Fair Use 547 548This License is not intended to limit any rights You have under 549applicable copyright doctrines of fair use, fair dealing, or other 550equivalents. 551 5522.7. Conditions 553 554Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 555in Section 2.1. 556 5573. Responsibilities 558------------------- 559 5603.1. Distribution of Source Form 561 562All distribution of Covered Software in Source Code Form, including any 563Modifications that You create or to which You contribute, must be under 564the terms of this License. You must inform recipients that the Source 565Code Form of the Covered Software is governed by the terms of this 566License, and how they can obtain a copy of this License. You may not 567attempt to alter or restrict the recipients' rights in the Source Code 568Form. 569 5703.2. Distribution of Executable Form 571 572If You distribute Covered Software in Executable Form then: 573 574(a) such Covered Software must also be made available in Source Code 575 Form, as described in Section 3.1, and You must inform recipients of 576 the Executable Form how they can obtain a copy of such Source Code 577 Form by reasonable means in a timely manner, at a charge no more 578 than the cost of distribution to the recipient; and 579 580(b) You may distribute such Executable Form under the terms of this 581 License, or sublicense it under different terms, provided that the 582 license for the Executable Form does not attempt to limit or alter 583 the recipients' rights in the Source Code Form under this License. 584 5853.3. Distribution of a Larger Work 586 587You may create and distribute a Larger Work under terms of Your choice, 588provided that You also comply with the requirements of this License for 589the Covered Software. If the Larger Work is a combination of Covered 590Software with a work governed by one or more Secondary Licenses, and the 591Covered Software is not Incompatible With Secondary Licenses, this 592License permits You to additionally distribute such Covered Software 593under the terms of such Secondary License(s), so that the recipient of 594the Larger Work may, at their option, further distribute the Covered 595Software under the terms of either this License or such Secondary 596License(s). 597 5983.4. Notices 599 600You may not remove or alter the substance of any license notices 601(including copyright notices, patent notices, disclaimers of warranty, 602or limitations of liability) contained within the Source Code Form of 603the Covered Software, except that You may alter any license notices to 604the extent required to remedy known factual inaccuracies. 605 6063.5. Application of Additional Terms 607 608You may choose to offer, and to charge a fee for, warranty, support, 609indemnity or liability obligations to one or more recipients of Covered 610Software. However, You may do so only on Your own behalf, and not on 611behalf of any Contributor. You must make it absolutely clear that any 612such warranty, support, indemnity, or liability obligation is offered by 613You alone, and You hereby agree to indemnify every Contributor for any 614liability incurred by such Contributor as a result of warranty, support, 615indemnity or liability terms You offer. You may include additional 616disclaimers of warranty and limitations of liability specific to any 617jurisdiction. 618 6194. Inability to Comply Due to Statute or Regulation 620--------------------------------------------------- 621 622If it is impossible for You to comply with any of the terms of this 623License with respect to some or all of the Covered Software due to 624statute, judicial order, or regulation then You must: (a) comply with 625the terms of this License to the maximum extent possible; and (b) 626describe the limitations and the code they affect. Such description must 627be placed in a text file included with all distributions of the Covered 628Software under this License. Except to the extent prohibited by statute 629or regulation, such description must be sufficiently detailed for a 630recipient of ordinary skill to be able to understand it. 631 6325. Termination 633-------------- 634 6355.1. The rights granted under this License will terminate automatically 636if You fail to comply with any of its terms. However, if You become 637compliant, then the rights granted under this License from a particular 638Contributor are reinstated (a) provisionally, unless and until such 639Contributor explicitly and finally terminates Your grants, and (b) on an 640ongoing basis, if such Contributor fails to notify You of the 641non-compliance by some reasonable means prior to 60 days after You have 642come back into compliance. Moreover, Your grants from a particular 643Contributor are reinstated on an ongoing basis if such Contributor 644notifies You of the non-compliance by some reasonable means, this is the 645first time You have received notice of non-compliance with this License 646from such Contributor, and You become compliant prior to 30 days after 647Your receipt of the notice. 648 6495.2. If You initiate litigation against any entity by asserting a patent 650infringement claim (excluding declaratory judgment actions, 651counter-claims, and cross-claims) alleging that a Contributor Version 652directly or indirectly infringes any patent, then the rights granted to 653You by any and all Contributors for the Covered Software under Section 6542.1 of this License shall terminate. 655 6565.3. In the event of termination under Sections 5.1 or 5.2 above, all 657end user license agreements (excluding distributors and resellers) which 658have been validly granted by You or Your distributors under this License 659prior to termination shall survive termination. 660 661************************************************************************ 662* * 663* 6. Disclaimer of Warranty * 664* ------------------------- * 665* * 666* Covered Software is provided under this License on an "as is" * 667* basis, without warranty of any kind, either expressed, implied, or * 668* statutory, including, without limitation, warranties that the * 669* Covered Software is free of defects, merchantable, fit for a * 670* particular purpose or non-infringing. The entire risk as to the * 671* quality and performance of the Covered Software is with You. * 672* Should any Covered Software prove defective in any respect, You * 673* (not any Contributor) assume the cost of any necessary servicing, * 674* repair, or correction. This disclaimer of warranty constitutes an * 675* essential part of this License. No use of any Covered Software is * 676* authorized under this License except under this disclaimer. * 677* * 678************************************************************************ 679 680************************************************************************ 681* * 682* 7. Limitation of Liability * 683* -------------------------- * 684* * 685* Under no circumstances and under no legal theory, whether tort * 686* (including negligence), contract, or otherwise, shall any * 687* Contributor, or anyone who distributes Covered Software as * 688* permitted above, be liable to You for any direct, indirect, * 689* special, incidental, or consequential damages of any character * 690* including, without limitation, damages for lost profits, loss of * 691* goodwill, work stoppage, computer failure or malfunction, or any * 692* and all other commercial damages or losses, even if such party * 693* shall have been informed of the possibility of such damages. This * 694* limitation of liability shall not apply to liability for death or * 695* personal injury resulting from such party's negligence to the * 696* extent applicable law prohibits such limitation. Some * 697* jurisdictions do not allow the exclusion or limitation of * 698* incidental or consequential damages, so this exclusion and * 699* limitation may not apply to You. * 700* * 701************************************************************************ 702 7038. Litigation 704------------- 705 706Any litigation relating to this License may be brought only in the 707courts of a jurisdiction where the defendant maintains its principal 708place of business and such litigation shall be governed by laws of that 709jurisdiction, without reference to its conflict-of-law provisions. 710Nothing in this Section shall prevent a party's ability to bring 711cross-claims or counter-claims. 712 7139. Miscellaneous 714---------------- 715 716This License represents the complete agreement concerning the subject 717matter hereof. If any provision of this License is held to be 718unenforceable, such provision shall be reformed only to the extent 719necessary to make it enforceable. Any law or regulation which provides 720that the language of a contract shall be construed against the drafter 721shall not be used to construe this License against a Contributor. 722 72310. Versions of the License 724--------------------------- 725 72610.1. New Versions 727 728Mozilla Foundation is the license steward. Except as provided in Section 72910.3, no one other than the license steward has the right to modify or 730publish new versions of this License. Each version will be given a 731distinguishing version number. 732 73310.2. Effect of New Versions 734 735You may distribute the Covered Software under the terms of the version 736of the License under which You originally received the Covered Software, 737or under the terms of any subsequent version published by the license 738steward. 739 74010.3. Modified Versions 741 742If you create software not governed by this License, and you want to 743create a new license for such software, you may create and use a 744modified version of this License if you rename the license and remove 745any references to the name of the license steward (except to note that 746such modified license differs from this License). 747 74810.4. Distributing Source Code Form that is Incompatible With Secondary 749Licenses 750 751If You choose to distribute Source Code Form that is Incompatible With 752Secondary Licenses under the terms of this version of the License, the 753notice described in Exhibit B of this License must be attached. 754 755Exhibit A - Source Code Form License Notice 756------------------------------------------- 757 758 This Source Code Form is subject to the terms of the Mozilla Public 759 License, v. 2.0. If a copy of the MPL was not distributed with this 760 file, You can obtain one at http://mozilla.org/MPL/2.0/. 761 762If it is not possible or desirable to put the notice in a particular 763file, then You may include the notice in a location (such as a LICENSE 764file in a relevant directory) where a recipient would be likely to look 765for such a notice. 766 767You may add additional accurate notices of copyright ownership. 768 769Exhibit B - "Incompatible With Secondary Licenses" Notice 770--------------------------------------------------------- 771 772 This Source Code Form is "Incompatible With Secondary Licenses", as 773 defined by the Mozilla Public License, v. 2.0. 774 775 776------------------------------------------------------------------- 777* License for Caffe2 (Some ops are derived from caffe2) 778------------------------------------------------------------------- 779 780Copyright (c) 2016-present, Facebook Inc. All rights reserved. 781 782All contributions by Facebook: 783Copyright (c) 2016 Facebook Inc. 784 785All contributions by Google: 786Copyright (c) 2015 Google Inc. 787All rights reserved. 788 789All contributions by Yangqing Jia: 790Copyright (c) 2015 Yangqing Jia 791All rights reserved. 792 793All contributions from Caffe: 794Copyright(c) 2013, 2014, 2015, the respective contributors 795All rights reserved. 796 797All other contributions: 798Copyright(c) 2015, 2016 the respective contributors 799All rights reserved. 800 801Caffe2 uses a copyright model similar to Caffe: each contributor holds 802copyright over their contributions to Caffe2. The project versioning records 803all such contribution and copyright details. If a contributor wants to further 804mark their specific copyright on a particular contribution, they should 805indicate their copyright solely in the commit message of the change when it is 806committed. 807 808======================================================================= 809Software under third_party 810======================================================================= 811Software libraries under third_party are provided as github submodule 812links, and their content is not part of the Caffe2 codebase. Their 813licences can be found under the respective software repositories. 814 815======================================================================= 816Earlier BSD License 817======================================================================= 818Early development of Caffe2 in 2015 and early 2016 is licensed under the 819BSD license. The license is attached below: 820 821All contributions by Facebook: 822Copyright (c) 2016 Facebook Inc. 823 824All contributions by Google: 825Copyright (c) 2015 Google Inc. 826All rights reserved. 827 828All contributions by Yangqing Jia: 829Copyright (c) 2015 Yangqing Jia 830All rights reserved. 831 832All other contributions: 833Copyright(c) 2015, 2016 the respective contributors 834All rights reserved. 835 836Redistribution and use in source and binary forms, with or without 837modification, are permitted provided that the following conditions are met: 838 8391. Redistributions of source code must retain the above copyright notice, this 840 list of conditions and the following disclaimer. 8412. Redistributions in binary form must reproduce the above copyright notice, 842 this list of conditions and the following disclaimer in the documentation 843 and/or other materials provided with the distribution. 844 845THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 846ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 847WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 848DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 849ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 850(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 851LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 852ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 853(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 854SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 855 856 857======================================================================= 858Caffe's BSD License 859======================================================================= 860Some parts of the caffe2 code is derived from the original Caffe code, which is 861created by Yangqing Jia and is now a BSD-licensed open-source project. The Caffe 862license is as follows: 863 864COPYRIGHT 865 866All contributions by the University of California: 867Copyright (c) 2014, The Regents of the University of California (Regents) 868All rights reserved. 869 870All other contributions: 871Copyright (c) 2014, the respective contributors 872All rights reserved. 873 874Caffe uses a shared copyright model: each contributor holds copyright over 875their contributions to Caffe. The project versioning records all such 876contribution and copyright details. If a contributor wants to further mark 877their specific copyright on a particular contribution, they should indicate 878their copyright solely in the commit message of the change when it is 879committed. 880 881LICENSE 882 883Redistribution and use in source and binary forms, with or without 884modification, are permitted provided that the following conditions are met: 885 8861. Redistributions of source code must retain the above copyright notice, this 887 list of conditions and the following disclaimer. 8882. Redistributions in binary form must reproduce the above copyright notice, 889 this list of conditions and the following disclaimer in the documentation 890 and/or other materials provided with the distribution. 891 892THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 893ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 894WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 895DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 896ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 897(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 898LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 899ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 900(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 901SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 902 903CONTRIBUTION AGREEMENT 904 905By contributing to the BVLC/caffe repository through pull-request, comment, 906or otherwise, the contributor releases their content to the 907license and copyright terms herein. 908 909 910------------------------------------------------------------------- 911* License for gemmlowp & libtextclassifier 912------------------------------------------------------------------- 913 914 915 Apache License 916 Version 2.0, January 2004 917 http://www.apache.org/licenses/ 918 919 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 920 921 1. Definitions. 922 923 "License" shall mean the terms and conditions for use, reproduction, 924 and distribution as defined by Sections 1 through 9 of this document. 925 926 "Licensor" shall mean the copyright owner or entity authorized by 927 the copyright owner that is granting the License. 928 929 "Legal Entity" shall mean the union of the acting entity and all 930 other entities that control, are controlled by, or are under common 931 control with that entity. For the purposes of this definition, 932 "control" means (i) the power, direct or indirect, to cause the 933 direction or management of such entity, whether by contract or 934 otherwise, or (ii) ownership of fifty percent (50%) or more of the 935 outstanding shares, or (iii) beneficial ownership of such entity. 936 937 "You" (or "Your") shall mean an individual or Legal Entity 938 exercising permissions granted by this License. 939 940 "Source" form shall mean the preferred form for making modifications, 941 including but not limited to software source code, documentation 942 source, and configuration files. 943 944 "Object" form shall mean any form resulting from mechanical 945 transformation or translation of a Source form, including but 946 not limited to compiled object code, generated documentation, 947 and conversions to other media types. 948 949 "Work" shall mean the work of authorship, whether in Source or 950 Object form, made available under the License, as indicated by a 951 copyright notice that is included in or attached to the work 952 (an example is provided in the Appendix below). 953 954 "Derivative Works" shall mean any work, whether in Source or Object 955 form, that is based on (or derived from) the Work and for which the 956 editorial revisions, annotations, elaborations, or other modifications 957 represent, as a whole, an original work of authorship. For the purposes 958 of this License, Derivative Works shall not include works that remain 959 separable from, or merely link (or bind by name) to the interfaces of, 960 the Work and Derivative Works thereof. 961 962 "Contribution" shall mean any work of authorship, including 963 the original version of the Work and any modifications or additions 964 to that Work or Derivative Works thereof, that is intentionally 965 submitted to Licensor for inclusion in the Work by the copyright owner 966 or by an individual or Legal Entity authorized to submit on behalf of 967 the copyright owner. For the purposes of this definition, "submitted" 968 means any form of electronic, verbal, or written communication sent 969 to the Licensor or its representatives, including but not limited to 970 communication on electronic mailing lists, source code control systems, 971 and issue tracking systems that are managed by, or on behalf of, the 972 Licensor for the purpose of discussing and improving the Work, but 973 excluding communication that is conspicuously marked or otherwise 974 designated in writing by the copyright owner as "Not a Contribution." 975 976 "Contributor" shall mean Licensor and any individual or Legal Entity 977 on behalf of whom a Contribution has been received by Licensor and 978 subsequently incorporated within the Work. 979 980 2. Grant of Copyright License. Subject to the terms and conditions of 981 this License, each Contributor hereby grants to You a perpetual, 982 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 983 copyright license to reproduce, prepare Derivative Works of, 984 publicly display, publicly perform, sublicense, and distribute the 985 Work and such Derivative Works in Source or Object form. 986 987 3. Grant of Patent License. Subject to the terms and conditions of 988 this License, each Contributor hereby grants to You a perpetual, 989 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 990 (except as stated in this section) patent license to make, have made, 991 use, offer to sell, sell, import, and otherwise transfer the Work, 992 where such license applies only to those patent claims licensable 993 by such Contributor that are necessarily infringed by their 994 Contribution(s) alone or by combination of their Contribution(s) 995 with the Work to which such Contribution(s) was submitted. If You 996 institute patent litigation against any entity (including a 997 cross-claim or counterclaim in a lawsuit) alleging that the Work 998 or a Contribution incorporated within the Work constitutes direct 999 or contributory patent infringement, then any patent licenses 1000 granted to You under this License for that Work shall terminate 1001 as of the date such litigation is filed. 1002 1003 4. Redistribution. You may reproduce and distribute copies of the 1004 Work or Derivative Works thereof in any medium, with or without 1005 modifications, and in Source or Object form, provided that You 1006 meet the following conditions: 1007 1008 (a) You must give any other recipients of the Work or 1009 Derivative Works a copy of this License; and 1010 1011 (b) You must cause any modified files to carry prominent notices 1012 stating that You changed the files; and 1013 1014 (c) You must retain, in the Source form of any Derivative Works 1015 that You distribute, all copyright, patent, trademark, and 1016 attribution notices from the Source form of the Work, 1017 excluding those notices that do not pertain to any part of 1018 the Derivative Works; and 1019 1020 (d) If the Work includes a "NOTICE" text file as part of its 1021 distribution, then any Derivative Works that You distribute must 1022 include a readable copy of the attribution notices contained 1023 within such NOTICE file, excluding those notices that do not 1024 pertain to any part of the Derivative Works, in at least one 1025 of the following places: within a NOTICE text file distributed 1026 as part of the Derivative Works; within the Source form or 1027 documentation, if provided along with the Derivative Works; or, 1028 within a display generated by the Derivative Works, if and 1029 wherever such third-party notices normally appear. The contents 1030 of the NOTICE file are for informational purposes only and 1031 do not modify the License. You may add Your own attribution 1032 notices within Derivative Works that You distribute, alongside 1033 or as an addendum to the NOTICE text from the Work, provided 1034 that such additional attribution notices cannot be construed 1035 as modifying the License. 1036 1037 You may add Your own copyright statement to Your modifications and 1038 may provide additional or different license terms and conditions 1039 for use, reproduction, or distribution of Your modifications, or 1040 for any such Derivative Works as a whole, provided Your use, 1041 reproduction, and distribution of the Work otherwise complies with 1042 the conditions stated in this License. 1043 1044 5. Submission of Contributions. Unless You explicitly state otherwise, 1045 any Contribution intentionally submitted for inclusion in the Work 1046 by You to the Licensor shall be under the terms and conditions of 1047 this License, without any additional terms or conditions. 1048 Notwithstanding the above, nothing herein shall supersede or modify 1049 the terms of any separate license agreement you may have executed 1050 with Licensor regarding such Contributions. 1051 1052 6. Trademarks. This License does not grant permission to use the trade 1053 names, trademarks, service marks, or product names of the Licensor, 1054 except as required for reasonable and customary use in describing the 1055 origin of the Work and reproducing the content of the NOTICE file. 1056 1057 7. Disclaimer of Warranty. Unless required by applicable law or 1058 agreed to in writing, Licensor provides the Work (and each 1059 Contributor provides its Contributions) on an "AS IS" BASIS, 1060 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1061 implied, including, without limitation, any warranties or conditions 1062 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1063 PARTICULAR PURPOSE. You are solely responsible for determining the 1064 appropriateness of using or redistributing the Work and assume any 1065 risks associated with Your exercise of permissions under this License. 1066 1067 8. Limitation of Liability. In no event and under no legal theory, 1068 whether in tort (including negligence), contract, or otherwise, 1069 unless required by applicable law (such as deliberate and grossly 1070 negligent acts) or agreed to in writing, shall any Contributor be 1071 liable to You for damages, including any direct, indirect, special, 1072 incidental, or consequential damages of any character arising as a 1073 result of this License or out of the use or inability to use the 1074 Work (including but not limited to damages for loss of goodwill, 1075 work stoppage, computer failure or malfunction, or any and all 1076 other commercial damages or losses), even if such Contributor 1077 has been advised of the possibility of such damages. 1078 1079 9. Accepting Warranty or Additional Liability. While redistributing 1080 the Work or Derivative Works thereof, You may choose to offer, 1081 and charge a fee for, acceptance of support, warranty, indemnity, 1082 or other liability obligations and/or rights consistent with this 1083 License. However, in accepting such obligations, You may act only 1084 on Your own behalf and on Your sole responsibility, not on behalf 1085 of any other Contributor, and only if You agree to indemnify, 1086 defend, and hold each Contributor harmless for any liability 1087 incurred by, or claims asserted against, such Contributor by reason 1088 of your accepting any such warranty or additional liability. 1089 1090 END OF TERMS AND CONDITIONS 1091 1092 APPENDIX: How to apply the Apache License to your work. 1093 1094 To apply the Apache License to your work, attach the following 1095 boilerplate notice, with the fields enclosed by brackets "[]" 1096 replaced with your own identifying information. (Don't include 1097 the brackets!) The text should be enclosed in the appropriate 1098 comment syntax for the file format. We also recommend that a 1099 file or class name and description of purpose be included on the 1100 same "printed page" as the copyright notice for easier 1101 identification within third-party archives. 1102 1103 Copyright [yyyy] [name of copyright owner] 1104 1105 Licensed under the Apache License, Version 2.0 (the "License"); 1106 you may not use this file except in compliance with the License. 1107 You may obtain a copy of the License at 1108 1109 http://www.apache.org/licenses/LICENSE-2.0 1110 1111 Unless required by applicable law or agreed to in writing, software 1112 distributed under the License is distributed on an "AS IS" BASIS, 1113 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1114 See the License for the specific language governing permissions and 1115 limitations under the License.