Skip to content

Commit

Permalink
Add @license tag to missing files (tensorflow#119)
Browse files Browse the repository at this point in the history
* add @license tag to licenses in ts files"

* add @license tag to js files

* Merge branch 'master' into license
  • Loading branch information
dsmilkov authored Sep 11, 2017
1 parent 9db5b1a commit a7e64c6
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 8,321 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
/* Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

import {
Array1D,
CostReduction,
FeedEntry,
Graph,
InCPUMemoryShuffledInputProviderBuilder,
NDArrayMath,
NDArrayMathGPU,
SGDOptimizer,
Session,
Tensor
} from '../deeplearnjs';
/**
* @license
* Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/

// tslint:disable-next-line:max-line-length
import {Array1D, CostReduction, FeedEntry, Graph, InCPUMemoryShuffledInputProviderBuilder, NDArrayMath, NDArrayMathGPU, Session, SGDOptimizer, Tensor} from '../deeplearnjs';


class ComplementaryColorModel {
Expand Down Expand Up @@ -142,8 +137,8 @@ class ComplementaryColorModel {
const colors = this.denormalizeColor(Array.prototype.slice.call(values));

// Make sure the values are within range.
complementColor = colors.map(
v => Math.round(Math.max(Math.min(v, 255), 0)));
complementColor =
colors.map(v => Math.round(Math.max(Math.min(v, 255), 0)));
});
return complementColor;
}
Expand Down
Loading

0 comments on commit a7e64c6

Please sign in to comment.