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 | */
|
17 | import { Tensor3D, Tensor4D } from '../tensor';
|
18 | import { TensorLike } from '../types';
|
19 | /**
|
20 | * Computes the transposed 2D convolution of an image, also known as a
|
21 | * deconvolution.
|
22 | *
|
23 | * @param x The input image, of rank 4 or rank 3, of shape
|
24 | * `[batch, height, width, inDepth]`. If rank 3, batch of 1 is assumed.
|
25 | * @param filter The filter, rank 4, of shape
|
26 | * `[filterHeight, filterWidth, outDepth, inDepth]`.
|
27 | * `inDepth` must match `inDepth` in `x`.
|
28 | * @param outputShape Output shape, of rank 4 or rank 3:
|
29 | * `[batch, height, width, outDepth]`. If rank 3, batch of 1 is assumed.
|
30 | * @param strides The strides of the original convolution:
|
31 | * `[strideHeight, strideWidth]`.
|
32 | * @param pad The type of padding algorithm used in the non-transpose version
|
33 | * of the op.
|
34 | * @param dimRoundingMode A string from: 'ceil', 'round', 'floor'. If none is
|
35 | * provided, it will default to truncate.
|
36 | *
|
37 | * @doc {heading: 'Operations', subheading: 'Convolution'}
|
38 | */
|
39 | declare function conv2dTranspose_<T extends Tensor3D | Tensor4D>(x: T | TensorLike, filter: Tensor4D | TensorLike, outputShape: [number, number, number, number] | [number, number, number], strides: [number, number] | number, pad: 'valid' | 'same' | number, dimRoundingMode?: 'floor' | 'round' | 'ceil'): T;
|
40 | export declare const conv2dTranspose: typeof conv2dTranspose_;
|
41 | export {};
|