Skip to content

Commit cf37db5

Browse files
pyu10055lina128
andauthored
cherry pick g3 fix to release branch (#3138)
INTERNAL * Remove duplicate declaration. (#3030) BUG Remove duplicate declaration. * Add license. (#3027) BUG Add license to pad3d.ts. Co-authored-by: Na Li <linazhao@google.com>
1 parent f62dcbe commit cf37db5

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

tfjs-core/src/ops/pad3d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* @license
3+
* Copyright 2020 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+
* http://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+
*/
117
import {Tensor3D} from '../tensor';
218
import {TensorLike} from '../types';
319
import {assert} from '../util';

tfjs-core/src/ops/rand_util.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -286,21 +286,3 @@ function skewness(values: TypedArray|number[]) {
286286
}
287287
return (1 / n) * sum3 / Math.pow((1 / (n - 1)) * sum2, 3 / 2);
288288
}
289-
290-
export interface RandomBase {
291-
nextValue(): number;
292-
}
293-
294-
export interface RandomGamma {
295-
nextValue(): number;
296-
}
297-
298-
export interface RandNormalDataTypes {
299-
float32: Float32Array;
300-
int32: Int32Array;
301-
}
302-
303-
export interface RandGammaDataTypes {
304-
float32: Float32Array;
305-
int32: Int32Array;
306-
}

0 commit comments

Comments
 (0)