Skip to content

Commit

Permalink
Mark all calls to 'op()' as pure (#7155)
Browse files Browse the repository at this point in the history
Mark calls to the `op()` function that creates the exported op as pure by using [`/* @__PURE__ */` annotations](https://esbuild.github.io/api/#ignore-annotations) (this also works for Rollup, but I can't find the docs). This comment instructs bundlers that the function call has no side-effects, so it can be removed if the result is not used.

This is okay for the `op` function because, although it references ENGINE, it does so [in a closure](https://github.com/tensorflow/tfjs/blob/master/tfjs-core/src/ops/operation.ts#L48-L61) that it never calls, so while its return value may cause side effects when called, it itself does not.

This has no immediate effect because we still maintain a list of `sideEffects` in the package.json, but it is a step towards removing that list.

Co-authored-by: Linchenn <40653845+Linchenn@users.noreply.github.com>
  • Loading branch information
mattsoulanille and Linchenn committed Dec 9, 2022
1 parent b92f803 commit 3e7d5b0
Show file tree
Hide file tree
Showing 226 changed files with 227 additions and 227 deletions.
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/abs.ts
Expand Up @@ -48,4 +48,4 @@ function abs_<T extends Tensor>(x: T|TensorLike): T {
}
}

export const abs = op({abs_});
export const abs = /* @__PURE__ */ op({abs_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/acos.ts
Expand Up @@ -40,4 +40,4 @@ function acos_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Acos, inputs as unknown as NamedTensorMap);
}
export const acos = op({acos_});
export const acos = /* @__PURE__ */ op({acos_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/acosh.ts
Expand Up @@ -43,4 +43,4 @@ function acosh_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Acosh, inputs as unknown as NamedTensorMap);
}
export const acosh = op({acosh_});
export const acosh = /* @__PURE__ */ op({acosh_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/add.ts
Expand Up @@ -57,4 +57,4 @@ function add_<T extends Tensor>(a: Tensor|TensorLike, b: Tensor|TensorLike): T {
return ENGINE.runKernel(Add, inputs as unknown as NamedTensorMap);
}

export const add = op({add_});
export const add = /* @__PURE__ */ op({add_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/add_n.ts
Expand Up @@ -69,4 +69,4 @@ function addN_<T extends Tensor>(tensors: Array<T|TensorLike>): T {
return ENGINE.runKernel(AddN, inputs as unknown as NamedTensorMap);
}

export const addN = op({addN_});
export const addN = /* @__PURE__ */ op({addN_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/all.ts
Expand Up @@ -66,4 +66,4 @@ function all_<T extends Tensor>(
attrs as unknown as NamedAttrMap);
}

export const all = op({all_});
export const all = /* @__PURE__ */ op({all_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/any.ts
Expand Up @@ -67,4 +67,4 @@ function any_<T extends Tensor>(
}

// tslint:disable-next-line:variable-name
export const any = op({any_});
export const any = /* @__PURE__ */ op({any_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/arg_max.ts
Expand Up @@ -60,4 +60,4 @@ function argMax_<T extends Tensor>(x: Tensor|TensorLike, axis = 0): T {
attrs as unknown as NamedAttrMap);
}

export const argMax = op({argMax_});
export const argMax = /* @__PURE__ */ op({argMax_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/arg_min.ts
Expand Up @@ -60,4 +60,4 @@ function argMin_<T extends Tensor>(x: Tensor|TensorLike, axis = 0): T {
attrs as unknown as NamedAttrMap);
}

export const argMin = op({argMin_});
export const argMin = /* @__PURE__ */ op({argMin_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/asin.ts
Expand Up @@ -41,4 +41,4 @@ function asin_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Asin, inputs as unknown as NamedTensorMap);
}
export const asin = op({asin_});
export const asin = /* @__PURE__ */ op({asin_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/asinh.ts
Expand Up @@ -44,4 +44,4 @@ function asinh_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Asinh, inputs as unknown as NamedTensorMap);
}
export const asinh = op({asinh_});
export const asinh = /* @__PURE__ */ op({asinh_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/atan.ts
Expand Up @@ -43,4 +43,4 @@ function atan_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Atan, inputs as unknown as NamedTensorMap);
}
export const atan = op({atan_});
export const atan = /* @__PURE__ */ op({atan_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/atan2.ts
Expand Up @@ -52,4 +52,4 @@ function atan2_<T extends Tensor>(
return ENGINE.runKernel(Atan2, inputs as unknown as NamedTensorMap);
}

export const atan2 = op({atan2_});
export const atan2 = /* @__PURE__ */ op({atan2_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/atanh.ts
Expand Up @@ -44,4 +44,4 @@ function atanh_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Atanh, inputs as unknown as NamedTensorMap);
}
export const atanh = op({atanh_});
export const atanh = /* @__PURE__ */ op({atanh_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/avg_pool.ts
Expand Up @@ -92,4 +92,4 @@ function avgPool_<T extends Tensor3D|Tensor4D>(
return res;
}

export const avgPool = op({avgPool_});
export const avgPool = /* @__PURE__ */ op({avgPool_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/avg_pool_3d.ts
Expand Up @@ -112,4 +112,4 @@ function avgPool3d_<T extends Tensor4D|Tensor5D>(
return res;
}

export const avgPool3d = op({avgPool3d_});
export const avgPool3d = /* @__PURE__ */ op({avgPool3d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/avg_pool_3d_grad.ts
Expand Up @@ -96,4 +96,4 @@ function avgPool3dGrad_<T extends Tensor4D|Tensor5D>(
return res;
}

export const avgPool3dGrad = op({avgPool3dGrad_});
export const avgPool3dGrad = /* @__PURE__ */ op({avgPool3dGrad_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/avg_pool_grad.ts
Expand Up @@ -93,4 +93,4 @@ function avgPoolGrad_<T extends Tensor3D|Tensor4D>(
return res;
}

export const avgPoolGrad = op({avgPoolGrad_});
export const avgPoolGrad = /* @__PURE__ */ op({avgPoolGrad_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/basic_lstm_cell.ts
Expand Up @@ -77,4 +77,4 @@ function basicLSTMCell_(
return [newC, newH];
}

export const basicLSTMCell = op({basicLSTMCell_});
export const basicLSTMCell = /* @__PURE__ */ op({basicLSTMCell_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/batch_to_space_nd.ts
Expand Up @@ -104,4 +104,4 @@ function batchToSpaceND_<T extends Tensor>(
attrs as unknown as NamedAttrMap);
}

export const batchToSpaceND = op({batchToSpaceND_});
export const batchToSpaceND = /* @__PURE__ */ op({batchToSpaceND_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/batchnorm.ts
Expand Up @@ -108,4 +108,4 @@ function batchNorm_<R extends Rank>(
return reshape(res, $x.shape);
}

export const batchNorm = op({batchNorm_});
export const batchNorm = /* @__PURE__ */ op({batchNorm_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/batchnorm2d.ts
Expand Up @@ -77,4 +77,4 @@ function batchNorm2d_(
return batchNorm($x, $mean, $variance, $offset, $scale, varianceEpsilon);
}

export const batchNorm2d = op({batchNorm2d_});
export const batchNorm2d = /* @__PURE__ */ op({batchNorm2d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/batchnorm3d.ts
Expand Up @@ -77,4 +77,4 @@ function batchNorm3d_(
return batchNorm($x, $mean, $variance, $offset, $scale, varianceEpsilon);
}

export const batchNorm3d = op({batchNorm3d_});
export const batchNorm3d = /* @__PURE__ */ op({batchNorm3d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/batchnorm4d.ts
Expand Up @@ -76,4 +76,4 @@ function batchNorm4d_(
return batchNorm($x, $mean, $variance, $offset, $scale, varianceEpsilon);
}

export const batchNorm4d = op({batchNorm4d_});
export const batchNorm4d = /* @__PURE__ */ op({batchNorm4d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/bincount.ts
Expand Up @@ -67,4 +67,4 @@ function bincount_<T extends Tensor1D>(
attrs as unknown as NamedAttrMap);
}

export const bincount = op({bincount_});
export const bincount = /* @__PURE__ */ op({bincount_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/broadcast_args.ts
Expand Up @@ -59,4 +59,4 @@ function broadcastArgs_<R extends Rank>(
return ENGINE.runKernel(BroadcastArgs, inputs as unknown as NamedTensorMap);
}

export const broadcastArgs = op({ broadcastArgs_ });
export const broadcastArgs = /* @__PURE__ */ op({ broadcastArgs_ });
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/broadcast_to.ts
Expand Up @@ -86,4 +86,4 @@ function broadcastTo_<R extends Rank>(
attrs as unknown as NamedAttrMap);
}

export const broadcastTo = op({broadcastTo_});
export const broadcastTo = /* @__PURE__ */ op({broadcastTo_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/browser.ts
Expand Up @@ -371,4 +371,4 @@ export async function toPixels(
return bytes;
}

export const fromPixels = op({fromPixels_});
export const fromPixels = /* @__PURE__ */ op({fromPixels_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/cast.ts
Expand Up @@ -57,4 +57,4 @@ function cast_<T extends Tensor>(x: T|TensorLike, dtype: DataType): T {
attrs as unknown as NamedAttrMap);
}

export const cast = op({cast_});
export const cast = /* @__PURE__ */ op({cast_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/ceil.ts
Expand Up @@ -42,4 +42,4 @@ function ceil_<T extends Tensor>(x: T|TensorLike): T {
const inputs: CeilInputs = {x: $x};
return ENGINE.runKernel(Ceil, inputs as unknown as NamedTensorMap);
}
export const ceil = op({ceil_});
export const ceil = /* @__PURE__ */ op({ceil_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/clip_by_value.ts
Expand Up @@ -60,4 +60,4 @@ function clipByValue_<T extends Tensor>(
attrs as unknown as NamedAttrMap);
}

export const clipByValue = op({clipByValue_});
export const clipByValue = /* @__PURE__ */ op({clipByValue_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/clone.ts
Expand Up @@ -47,4 +47,4 @@ function clone_<T extends Tensor>(x: T|TensorLike): T {
return ENGINE.runKernel(Identity, inputs as unknown as NamedTensorMap);
}

export const clone = op({clone_});
export const clone = /* @__PURE__ */ op({clone_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/complex.ts
Expand Up @@ -56,4 +56,4 @@ function complex_<T extends Tensor>(real: T|TensorLike, imag: T|TensorLike): T {
return ENGINE.runKernel(Complex, inputs as unknown as NamedTensorMap);
}

export const complex = op({complex_});
export const complex = /* @__PURE__ */ op({complex_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/concat.ts
Expand Up @@ -93,4 +93,4 @@ function concat_<T extends Tensor>(tensors: Array<T|TensorLike>, axis = 0): T {
attr as unknown as NamedAttrMap);
}

export const concat = op({concat_});
export const concat = /* @__PURE__ */ op({concat_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/concat_1d.ts
Expand Up @@ -35,4 +35,4 @@ function concat1d_(tensors: Array<Tensor1D|TensorLike>): Tensor1D {
return concat(tensors, 0 /* axis */);
}

export const concat1d = op({concat1d_});
export const concat1d = /* @__PURE__ */ op({concat1d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/concat_2d.ts
Expand Up @@ -52,4 +52,4 @@ function concat2d_(
return concat(tensors, axis);
}

export const concat2d = op({concat2d_});
export const concat2d = /* @__PURE__ */ op({concat2d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/concat_3d.ts
Expand Up @@ -56,4 +56,4 @@ function concat3d_(
return concat(tensors, axis);
}

export const concat3d = op({concat3d_});
export const concat3d = /* @__PURE__ */ op({concat3d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/concat_4d.ts
Expand Up @@ -33,4 +33,4 @@ function concat4d_(
return concat(tensors, axis);
}

export const concat4d = op({concat4d_});
export const concat4d = /* @__PURE__ */ op({concat4d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/confusion_matrix.ts
Expand Up @@ -93,4 +93,4 @@ export function confusionMatrix_(
return cast(product, 'int32');
}

export const confusionMatrix = op({confusionMatrix_});
export const confusionMatrix = /* @__PURE__ */ op({confusionMatrix_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv1d.ts
Expand Up @@ -113,4 +113,4 @@ function conv1d_<T extends Tensor2D|Tensor3D>(
return reshape(res, [res.shape[0], res.shape[2], res.shape[3]]) as T;
}

export const conv1d = op({conv1d_});
export const conv1d = /* @__PURE__ */ op({conv1d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv2d.ts
Expand Up @@ -116,4 +116,4 @@ function conv2d_<T extends Tensor3D|Tensor4D>(
return res;
}

export const conv2d = op({conv2d_});
export const conv2d = /* @__PURE__ */ op({conv2d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv2d_backprop_filter.ts
Expand Up @@ -92,4 +92,4 @@ function conv2DBackpropFilter_<T extends Tensor3D|Tensor4D>(
attrs as unknown as NamedAttrMap) as Tensor4D;
}

export const conv2DBackpropFilter = op({conv2DBackpropFilter_});
export const conv2DBackpropFilter = /* @__PURE__ */ op({conv2DBackpropFilter_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv2d_backprop_input.ts
Expand Up @@ -108,4 +108,4 @@ function conv2DBackpropInput_<T extends Tensor3D|Tensor4D>(
return res;
}

export const conv2DBackpropInput = op({conv2DBackpropInput_});
export const conv2DBackpropInput = /* @__PURE__ */ op({conv2DBackpropInput_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv2d_transpose.ts
Expand Up @@ -55,4 +55,4 @@ function conv2dTranspose_<T extends Tensor3D|Tensor4D>(
outputShape, $x, $filter, strides, pad, 'NHWC', dimRoundingMode);
}

export const conv2dTranspose = op({conv2dTranspose_});
export const conv2dTranspose = /* @__PURE__ */ op({conv2dTranspose_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv3d.ts
Expand Up @@ -117,4 +117,4 @@ function conv3d_<T extends Tensor4D|Tensor5D>(
return res;
}

export const conv3d = op({conv3d_});
export const conv3d = /* @__PURE__ */ op({conv3d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv3d_backprop_filter.ts
Expand Up @@ -82,4 +82,4 @@ function conv3DBackpropFilter_<T extends Tensor4D|Tensor5D>(
attrs as unknown as NamedAttrMap) as Tensor5D;
}

export const conv3DBackpropFilter = op({conv3DBackpropFilter_});
export const conv3DBackpropFilter = /* @__PURE__ */ op({conv3DBackpropFilter_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv3d_backprop_input.ts
Expand Up @@ -104,4 +104,4 @@ function conv3DBackpropInput_<T extends Tensor4D|Tensor5D>(
return res;
}

export const conv3DBackpropInput = op({conv3DBackpropInput_});
export const conv3DBackpropInput = /* @__PURE__ */ op({conv3DBackpropInput_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/conv3d_transpose.ts
Expand Up @@ -52,4 +52,4 @@ function conv3dTranspose_<T extends Tensor4D|Tensor5D>(
return conv3DBackpropInput(outputShape, $x, $filter, strides, pad);
}

export const conv3dTranspose = op({conv3dTranspose_});
export const conv3dTranspose = /* @__PURE__ */ op({conv3dTranspose_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/cos.ts
Expand Up @@ -43,4 +43,4 @@ function cos_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Cos, inputs as unknown as NamedTensorMap);
}
export const cos = op({cos_});
export const cos = /* @__PURE__ */ op({cos_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/cosh.ts
Expand Up @@ -42,4 +42,4 @@ function cosh_<T extends Tensor>(x: T|TensorLike): T {

return ENGINE.runKernel(Cosh, inputs as unknown as NamedTensorMap);
}
export const cosh = op({cosh_});
export const cosh = /* @__PURE__ */ op({cosh_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/cumprod.ts
Expand Up @@ -66,4 +66,4 @@ function cumprod_<T extends Tensor>(
);
}

export const cumprod = op({ cumprod_ });
export const cumprod = /* @__PURE__ */ op({ cumprod_ });
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/cumsum.ts
Expand Up @@ -60,4 +60,4 @@ function cumsum_<T extends Tensor>(
attrs as unknown as NamedAttrMap);
}

export const cumsum = op({cumsum_});
export const cumsum = /* @__PURE__ */ op({cumsum_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/dense_bincount.ts
Expand Up @@ -75,4 +75,4 @@ function denseBincount_<T extends Tensor1D|Tensor2D>(
attrs as unknown as NamedAttrMap);
}

export const denseBincount = op({denseBincount_});
export const denseBincount = /* @__PURE__ */ op({denseBincount_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/depth_to_space.ts
Expand Up @@ -102,4 +102,4 @@ function depthToSpace_(
attrs as unknown as NamedAttrMap);
}

export const depthToSpace = op({depthToSpace_});
export const depthToSpace = /* @__PURE__ */ op({depthToSpace_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/depthwise_conv2d.ts
Expand Up @@ -119,4 +119,4 @@ function depthwiseConv2d_<T extends Tensor3D|Tensor4D>(
return res;
}

export const depthwiseConv2d = op({depthwiseConv2d_});
export const depthwiseConv2d = /* @__PURE__ */ op({depthwiseConv2d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/diag.ts
Expand Up @@ -54,4 +54,4 @@ function diag_(x: Tensor): Tensor {
return ENGINE.runKernel(Diag, inputs as unknown as NamedTensorMap);
}

export const diag = op({diag_});
export const diag = /* @__PURE__ */ op({diag_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/dilation2d.ts
Expand Up @@ -107,4 +107,4 @@ function dilation2d_<T extends Tensor3D|Tensor4D>(
return res;
}

export const dilation2d = op({dilation2d_});
export const dilation2d = /* @__PURE__ */ op({dilation2d_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/div.ts
Expand Up @@ -67,4 +67,4 @@ function div_<T extends Tensor>(a: Tensor|TensorLike, b: Tensor|TensorLike): T {
inputs as unknown as NamedTensorMap, attrs) as T;
}

export const div = op({div_});
export const div = /* @__PURE__ */ op({div_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/div_no_nan.ts
Expand Up @@ -69,4 +69,4 @@ function divNoNan_<T extends Tensor>(
return where(bEqualsZero, zeros, divResult) as T;
}

export const divNoNan = op({divNoNan_});
export const divNoNan = /* @__PURE__ */ op({divNoNan_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/dot.ts
Expand Up @@ -79,4 +79,4 @@ function dot_(t1: Tensor|TensorLike, t2: Tensor|TensorLike): Tensor {
}
}

export const dot = op({dot_});
export const dot = /* @__PURE__ */ op({dot_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/dropout.ts
Expand Up @@ -76,4 +76,4 @@ function dropout_(
return mul($x, multiplier);
}

export const dropout = op({dropout_});
export const dropout = /* @__PURE__ */ op({dropout_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/einsum.ts
Expand Up @@ -109,4 +109,4 @@ export function einsum_(equation: string, ...tensors: Tensor[]): Tensor {
attrs as unknown as NamedAttrMap);
}

export const einsum = op({einsum_});
export const einsum = /* @__PURE__ */ op({einsum_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/elu.ts
Expand Up @@ -44,4 +44,4 @@ function elu_<T extends Tensor>(x: T|TensorLike): T {
return ENGINE.runKernel(Elu, inputs as unknown as NamedTensorMap);
}

export const elu = op({elu_});
export const elu = /* @__PURE__ */ op({elu_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/equal.ts
Expand Up @@ -53,4 +53,4 @@ function equal_<T extends Tensor>(
return ENGINE.runKernel(Equal, inputs as unknown as NamedTensorMap);
}

export const equal = op({equal_});
export const equal = /* @__PURE__ */ op({equal_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/erf.ts
Expand Up @@ -52,4 +52,4 @@ function erf_<T extends Tensor>(x: T|TensorLike): T {
const inputs: ErfInputs = {x: $x};
return ENGINE.runKernel(Erf, inputs as unknown as NamedTensorMap);
}
export const erf = op({erf_});
export const erf = /* @__PURE__ */ op({erf_});
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/euclidean_norm.ts
Expand Up @@ -50,4 +50,4 @@ function euclideanNorm_(
return norm(x, 'euclidean', axis, keepDims);
}

export const euclideanNorm = op({euclideanNorm_});
export const euclideanNorm = /* @__PURE__ */ op({euclideanNorm_});

0 comments on commit 3e7d5b0

Please sign in to comment.