Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tfjs-core/src/ops/fused_ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const applyActivation =
* - `activation` Name of activation kernel (defaults to `linear`).
* - `preluActivationWeights` Tensor of prelu weights.
*/
function matMul_<T extends Tensor>({
function fusedMatMul_<T extends Tensor>({
a,
b,
transposeA = false,
Expand Down Expand Up @@ -305,7 +305,7 @@ function matMul_<T extends Tensor>({
* @param preluActivationWeights Tensor of prelu weights to be applied as part
* of a `prelu` activation, typically the same shape as `x`.
*/
function conv2d_<T extends Tensor3D|Tensor4D>({
function fusedConv2d_<T extends Tensor3D|Tensor4D>({
x,
filter,
strides,
Expand Down Expand Up @@ -508,7 +508,7 @@ function conv2d_<T extends Tensor3D|Tensor4D>({
* @param preluActivationWeights Tensor of prelu weights to be applied as part
* of a `prelu` activation, typically the same shape as `x`.
*/
function depthwiseConv2d_<T extends Tensor3D|Tensor4D>({
function fusedDepthwiseConv2d_<T extends Tensor3D|Tensor4D>({
x,
filter,
strides,
Expand Down Expand Up @@ -655,8 +655,8 @@ function depthwiseConv2d_<T extends Tensor3D|Tensor4D>({
return res as T;
}

export const matMul = op({matMul_});
export const conv2d = op({conv2d_});
export const depthwiseConv2d = op({depthwiseConv2d_});
export const matMul = op({fusedMatMul_});
export const conv2d = op({fusedConv2d_});
export const depthwiseConv2d = op({fusedDepthwiseConv2d_});

export {Activation};