UNPKG

2.02 kBTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/conv3d_transpose" />
2/**
3 * @license
4 * Copyright 2020 Google LLC. All Rights Reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 * =============================================================================
17 */
18import { Tensor4D, Tensor5D } from '../tensor';
19import { TensorLike } from '../types';
20/**
21 * Computes the transposed 3D convolution of a volume, also known as a
22 * deconvolution.
23 *
24 * @param x The input image, of rank 5 or rank 4, of shape
25 * `[batch, depth, height, width, inDepth]`. If rank 4, batch of 1 is assumed.
26 * @param filter The filter, rank 4, of shape
27 * `[depth, filterHeight, filterWidth, outDepth, inDepth]`.
28 * `inDepth` must match `inDepth` in `x`.
29 * @param outputShape Output shape, of rank 5 or rank 4:
30 * `[batch, depth, height, width, outDepth]`. If rank 3, batch of 1 is
31 * assumed.
32 * @param strides The strides of the original convolution:
33 * `[strideDepth, strideHeight, strideWidth]`.
34 * @param pad The type of padding algorithm used in the non-transpose version
35 * of the op.
36 *
37 * @doc {heading: 'Operations', subheading: 'Convolution'}
38 */
39declare function conv3dTranspose_<T extends Tensor4D | Tensor5D>(x: T | TensorLike, filter: Tensor5D | TensorLike, outputShape: [number, number, number, number, number] | [number, number, number, number], strides: [number, number, number] | number, pad: 'valid' | 'same'): T;
40export declare const conv3dTranspose: typeof conv3dTranspose_;
41export {};