UNPKG

1.46 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2020 Google LLC. 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 */
17import { Tensor1D, Tensor3D } from '../tensor';
18import { TensorLike } from '../types';
19/**
20 * Batch normalization, strictly for 3D. For the more relaxed version, see
21 * `tf.batchNorm`.
22 *
23 * @param x The input Tensor.
24 * @param mean A mean Tensor.
25 * @param variance A variance Tensor.
26 * @param offset An offset Tensor.
27 * @param scale A scale Tensor.
28 * @param varianceEpsilon A small float number to avoid dividing by 0.
29 */
30declare function batchNorm3d_(x: Tensor3D | TensorLike, mean: Tensor3D | Tensor1D | TensorLike, variance: Tensor3D | Tensor1D | TensorLike, offset?: Tensor3D | Tensor1D | TensorLike, scale?: Tensor3D | Tensor1D | TensorLike, varianceEpsilon?: number): Tensor3D;
31export declare const batchNorm3d: typeof batchNorm3d_;
32export {};