Skip to content

Commit 1fce6f7

Browse files
author
Nikhil Thorat
authored
Add license to resnet.ts in posenet. (#258)
1 parent 5629014 commit 1fce6f7

File tree

8 files changed

+129
-14
lines changed

8 files changed

+129
-14
lines changed

body-pix/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

coco-ssd/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({

knn-classifier/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

mobilenet/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

posenet/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

posenet/src/resnet.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/**
2+
* @license
3+
* Copyright 2019 Google Inc. All Rights Reserved.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
* =============================================================================
16+
*/
17+
118
import * as tfconv from '@tensorflow/tfjs-converter';
219
import * as tf from '@tensorflow/tfjs-core';
320

toxicity/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

universal-sentence-encoder/rollup.config.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,22 @@ import node from 'rollup-plugin-node-resolve';
1919
import typescript from 'rollup-plugin-typescript2';
2020
import uglify from 'rollup-plugin-uglify';
2121

22-
const PREAMBLE =
23-
`// @tensorflow/tfjs-models Copyright ${(new Date).getFullYear()} Google`;
22+
const PREAMBLE = `/**
23+
* @license
24+
* Copyright ${(new Date).getFullYear()} Google LLC. All Rights Reserved.
25+
* Licensed under the Apache License, Version 2.0 (the "License");
26+
* you may not use this file except in compliance with the License.
27+
* You may obtain a copy of the License at
28+
*
29+
* http://www.apache.org/licenses/LICENSE-2.0
30+
*
31+
* Unless required by applicable law or agreed to in writing, software
32+
* distributed under the License is distributed on an "AS IS" BASIS,
33+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
* See the License for the specific language governing permissions and
35+
* limitations under the License.
36+
* =============================================================================
37+
*/`;
2438

2539
function minify() {
2640
return uglify({output: {preamble: PREAMBLE}});

0 commit comments

Comments
 (0)