1 | import { Tensor3D, Tensor4D } from '../tensor';
|
2 | import * as conv_util from './conv_util';
|
3 | /**
|
4 | * Computes the derivative of the filter of a 2D convolution.
|
5 | *
|
6 | * @param x The input tensor, of rank 4 or rank 3 of shape
|
7 | * [batch, height, width, inChannels]. If rank 3, batch of 1 is assumed.
|
8 | * @param dy The dy image, of rank 4 or rank 3, of shape
|
9 | * [batch, height, width, outDepth]. If rank 3, batch of 1 is assumed.
|
10 | * @param filterShape The shape of the filter, length 4,
|
11 | * [filterHeight, filterWidth, inDepth, outDepth].
|
12 | * @param strides The strides of the convolution: [strideHeight,
|
13 | * strideWidth].
|
14 | * @param pad A string from: 'same', 'valid'. The type of padding algorithm
|
15 | * used in the forward prop of the op.
|
16 | * @param dataFormat: An optional string from: "NHWC", "NCHW". Defaults to
|
17 | * "NHWC". Specify the data format of the input and output data. With the
|
18 | * default format "NHWC", the data is stored in the order of: [batch,
|
19 | * height, width, channels].
|
20 | * @param dimRoundingMode A string from: 'ceil', 'round', 'floor'. If none is
|
21 | * provided, it will default to truncate.
|
22 | */
|
23 | declare function conv2DBackpropFilter_<T extends Tensor3D | Tensor4D>(x: T, dy: T, filterShape: [number, number, number, number], strides: [number, number] | number, pad: 'valid' | 'same' | number | conv_util.ExplicitPadding, dataFormat?: 'NHWC' | 'NCHW', dimRoundingMode?: 'floor' | 'round' | 'ceil'): Tensor4D;
|
24 | export declare const conv2DBackpropFilter: typeof conv2DBackpropFilter_;
|
25 | export {};
|