1 | /// <amd-module name="@tensorflow/tfjs-core/dist/ops/conv3d" />
|
2 | import { Tensor4D, Tensor5D } from '../tensor';
|
3 | import { TensorLike } from '../types';
|
4 | /**
|
5 | * Computes a 3D convolution over the input x.
|
6 | *
|
7 | * @param x The input tensor, of rank 5 or rank 4, of shape
|
8 | * `[batch, depth, height, width, channels]`. If rank 4,
|
9 | * batch of 1 is assumed.
|
10 | * @param filter The filter, rank 5, of shape
|
11 | * `[filterDepth, filterHeight, filterWidth, inChannels, outChannels]`.
|
12 | * inChannels must match between input and filter.
|
13 | * @param strides The strides of the convolution: `[strideDepth, strideHeight,
|
14 | * strideWidth]`.
|
15 | * @param pad The type of padding algorithm.
|
16 | * - `same` and stride 1: output will be of same size as input,
|
17 | * regardless of filter size.
|
18 | * - `valid`: output will be smaller than input if filter is larger
|
19 | * than 1x1.
|
20 | * - For more info, see this guide:
|
21 | * [https://www.tensorflow.org/api_docs/python/tf/nn/convolution](
|
22 | * https://www.tensorflow.org/api_docs/python/tf/nn/convolution)
|
23 | * @param dataFormat: An optional string from: "NDHWC", "NCDHW". Defaults to
|
24 | * "NDHWC". Specify the data format of the input and output data. With the
|
25 | * default format "NDHWC", the data is stored in the order of: [batch,
|
26 | * depth, height, width, channels]. Only "NDHWC" is currently supported.
|
27 | * @param dilations The dilation rates: `[dilationDepth, dilationHeight,
|
28 | * dilationWidth]` in which we sample input values across the height
|
29 | * and width dimensions in atrous convolution. Defaults to `[1, 1, 1]`.
|
30 | * If `dilations` is a single number, then
|
31 | * `dilationDepth == dilationHeight == dilationWidth`. If it is greater
|
32 | * than 1, then all values of `strides` must be 1.
|
33 | *
|
34 | * @doc {heading: 'Operations', subheading: 'Convolution'}
|
35 | */
|
36 | declare function conv3d_<T extends Tensor4D | Tensor5D>(x: T | TensorLike, filter: Tensor5D | TensorLike, strides: [number, number, number] | number, pad: 'valid' | 'same', dataFormat?: 'NDHWC' | 'NCDHW', dilations?: [number, number, number] | number): T;
|
37 | export declare const conv3d: typeof conv3d_;
|
38 | export {};
|