MCPcopy
hub / github.com/tensorflow/tfjs / conv2d

Function conv2d

tfjs-layers/src/layers/convolutional.ts:161–169  ·  view source on GitHub ↗
(
    x: Tensor, kernel: Tensor, strides = [1, 1], padding = 'valid',
    dataFormat?: DataFormat, dilationRate?: [number, number])

Source from the content-addressed store, hash-verified

159 * @returns Result of the 2D pooling.
160 */
161export function conv2d(
162 x: Tensor, kernel: Tensor, strides = [1, 1], padding = 'valid',
163 dataFormat?: DataFormat, dilationRate?: [number, number]): Tensor {
164 return tidy(() => {
165 checkDataFormat(dataFormat);
166 return conv2dWithBiasActivation(
167 x, kernel, null, strides, padding, dataFormat, dilationRate);
168 });
169}
170
171/**
172 * 2D Convolution with an added bias and optional activation.

Callers 1

Calls 3

tidyFunction · 0.90
checkDataFormatFunction · 0.90
conv2dWithBiasActivationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…