UNPKG

1.43 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2018 Google LLC
4 *
5 * Use of this source code is governed by an MIT-style
6 * license that can be found in the LICENSE file or at
7 * https://opensource.org/licenses/MIT.
8 * =============================================================================
9 */
10/// <amd-module name="@tensorflow/tfjs-layers/dist/keras_format/common" />
11/** @docalias (null | number)[] */
12export declare type Shape = Array<null | number>;
13export declare type DataType = 'float32' | 'int32' | 'bool' | 'complex64' | 'string';
14/** @docinline */
15export declare type DataFormat = 'channelsFirst' | 'channelsLast';
16export declare const VALID_DATA_FORMAT_VALUES: string[];
17export declare type InterpolationFormat = 'nearest' | 'bilinear';
18export declare const VALID_INTERPOLATION_FORMAT_VALUES: string[];
19export declare type DataFormatSerialization = 'channels_first' | 'channels_last';
20/** @docinline */
21export declare type PaddingMode = 'valid' | 'same' | 'causal';
22export declare const VALID_PADDING_MODE_VALUES: string[];
23/** @docinline */
24export declare type PoolMode = 'max' | 'avg';
25export declare const VALID_POOL_MODE_VALUES: string[];
26/** @docinline */
27export declare type BidirectionalMergeMode = 'sum' | 'mul' | 'concat' | 'ave';
28export declare const VALID_BIDIRECTIONAL_MERGE_MODES: string[];
29/** @docinline */
30export declare type SampleWeightMode = 'temporal';
31export declare const VALID_SAMPLE_WEIGHT_MODES: string[];