From cf37db59dfab182aa03f752c86ec4f41d26d32fe Mon Sep 17 00:00:00 2001 From: Ping Yu <4018+pyu10055@users.noreply.github.com> Date: Wed, 22 Apr 2020 13:19:41 -0700 Subject: [PATCH] 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 --- tfjs-core/src/ops/pad3d.ts | 16 ++++++++++++++++ tfjs-core/src/ops/rand_util.ts | 18 ------------------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/tfjs-core/src/ops/pad3d.ts b/tfjs-core/src/ops/pad3d.ts index 88b0325f081..82817419044 100644 --- a/tfjs-core/src/ops/pad3d.ts +++ b/tfjs-core/src/ops/pad3d.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright 2020 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 {Tensor3D} from '../tensor'; import {TensorLike} from '../types'; import {assert} from '../util'; diff --git a/tfjs-core/src/ops/rand_util.ts b/tfjs-core/src/ops/rand_util.ts index 889b3bfc153..fae0174cb0c 100644 --- a/tfjs-core/src/ops/rand_util.ts +++ b/tfjs-core/src/ops/rand_util.ts @@ -286,21 +286,3 @@ function skewness(values: TypedArray|number[]) { } return (1 / n) * sum3 / Math.pow((1 / (n - 1)) * sum2, 3 / 2); } - -export interface RandomBase { - nextValue(): number; -} - -export interface RandomGamma { - nextValue(): number; -} - -export interface RandNormalDataTypes { - float32: Float32Array; - int32: Int32Array; -} - -export interface RandGammaDataTypes { - float32: Float32Array; - int32: Int32Array; -}