diff --git a/tfjs-core/src/ops/abs.ts b/tfjs-core/src/ops/abs.ts index 14f3da3003..969b0c8051 100644 --- a/tfjs-core/src/ops/abs.ts +++ b/tfjs-core/src/ops/abs.ts @@ -48,4 +48,4 @@ function abs_(x: T|TensorLike): T { } } -export const abs = op({abs_}); +export const abs = /* @__PURE__ */ op({abs_}); diff --git a/tfjs-core/src/ops/acos.ts b/tfjs-core/src/ops/acos.ts index e5b5a40f71..e54d3abe41 100644 --- a/tfjs-core/src/ops/acos.ts +++ b/tfjs-core/src/ops/acos.ts @@ -40,4 +40,4 @@ function acos_(x: T|TensorLike): T { return ENGINE.runKernel(Acos, inputs as unknown as NamedTensorMap); } -export const acos = op({acos_}); +export const acos = /* @__PURE__ */ op({acos_}); diff --git a/tfjs-core/src/ops/acosh.ts b/tfjs-core/src/ops/acosh.ts index fcec374358..f9c5e583c5 100644 --- a/tfjs-core/src/ops/acosh.ts +++ b/tfjs-core/src/ops/acosh.ts @@ -43,4 +43,4 @@ function acosh_(x: T|TensorLike): T { return ENGINE.runKernel(Acosh, inputs as unknown as NamedTensorMap); } -export const acosh = op({acosh_}); +export const acosh = /* @__PURE__ */ op({acosh_}); diff --git a/tfjs-core/src/ops/add.ts b/tfjs-core/src/ops/add.ts index 72734ef264..a89132eae2 100644 --- a/tfjs-core/src/ops/add.ts +++ b/tfjs-core/src/ops/add.ts @@ -57,4 +57,4 @@ function add_(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_}); diff --git a/tfjs-core/src/ops/add_n.ts b/tfjs-core/src/ops/add_n.ts index 5d944f5ec9..b4116e6771 100644 --- a/tfjs-core/src/ops/add_n.ts +++ b/tfjs-core/src/ops/add_n.ts @@ -69,4 +69,4 @@ function addN_(tensors: Array): T { return ENGINE.runKernel(AddN, inputs as unknown as NamedTensorMap); } -export const addN = op({addN_}); +export const addN = /* @__PURE__ */ op({addN_}); diff --git a/tfjs-core/src/ops/all.ts b/tfjs-core/src/ops/all.ts index 1bf343e9be..2d8bd48863 100644 --- a/tfjs-core/src/ops/all.ts +++ b/tfjs-core/src/ops/all.ts @@ -66,4 +66,4 @@ function all_( attrs as unknown as NamedAttrMap); } -export const all = op({all_}); +export const all = /* @__PURE__ */ op({all_}); diff --git a/tfjs-core/src/ops/any.ts b/tfjs-core/src/ops/any.ts index 21fb3c4bee..c1a6e97230 100644 --- a/tfjs-core/src/ops/any.ts +++ b/tfjs-core/src/ops/any.ts @@ -67,4 +67,4 @@ function any_( } // tslint:disable-next-line:variable-name -export const any = op({any_}); +export const any = /* @__PURE__ */ op({any_}); diff --git a/tfjs-core/src/ops/arg_max.ts b/tfjs-core/src/ops/arg_max.ts index 4da62241f7..d1c5deb8ff 100644 --- a/tfjs-core/src/ops/arg_max.ts +++ b/tfjs-core/src/ops/arg_max.ts @@ -60,4 +60,4 @@ function argMax_(x: Tensor|TensorLike, axis = 0): T { attrs as unknown as NamedAttrMap); } -export const argMax = op({argMax_}); +export const argMax = /* @__PURE__ */ op({argMax_}); diff --git a/tfjs-core/src/ops/arg_min.ts b/tfjs-core/src/ops/arg_min.ts index 939f2a326c..b55e81185a 100644 --- a/tfjs-core/src/ops/arg_min.ts +++ b/tfjs-core/src/ops/arg_min.ts @@ -60,4 +60,4 @@ function argMin_(x: Tensor|TensorLike, axis = 0): T { attrs as unknown as NamedAttrMap); } -export const argMin = op({argMin_}); +export const argMin = /* @__PURE__ */ op({argMin_}); diff --git a/tfjs-core/src/ops/asin.ts b/tfjs-core/src/ops/asin.ts index 919f472767..64d8459cf4 100644 --- a/tfjs-core/src/ops/asin.ts +++ b/tfjs-core/src/ops/asin.ts @@ -41,4 +41,4 @@ function asin_(x: T|TensorLike): T { return ENGINE.runKernel(Asin, inputs as unknown as NamedTensorMap); } -export const asin = op({asin_}); +export const asin = /* @__PURE__ */ op({asin_}); diff --git a/tfjs-core/src/ops/asinh.ts b/tfjs-core/src/ops/asinh.ts index d0d126ec9e..3b7314c947 100644 --- a/tfjs-core/src/ops/asinh.ts +++ b/tfjs-core/src/ops/asinh.ts @@ -44,4 +44,4 @@ function asinh_(x: T|TensorLike): T { return ENGINE.runKernel(Asinh, inputs as unknown as NamedTensorMap); } -export const asinh = op({asinh_}); +export const asinh = /* @__PURE__ */ op({asinh_}); diff --git a/tfjs-core/src/ops/atan.ts b/tfjs-core/src/ops/atan.ts index 53e5ecc387..b56e202836 100644 --- a/tfjs-core/src/ops/atan.ts +++ b/tfjs-core/src/ops/atan.ts @@ -43,4 +43,4 @@ function atan_(x: T|TensorLike): T { return ENGINE.runKernel(Atan, inputs as unknown as NamedTensorMap); } -export const atan = op({atan_}); +export const atan = /* @__PURE__ */ op({atan_}); diff --git a/tfjs-core/src/ops/atan2.ts b/tfjs-core/src/ops/atan2.ts index 120567aebc..1150a88f7c 100644 --- a/tfjs-core/src/ops/atan2.ts +++ b/tfjs-core/src/ops/atan2.ts @@ -52,4 +52,4 @@ function atan2_( return ENGINE.runKernel(Atan2, inputs as unknown as NamedTensorMap); } -export const atan2 = op({atan2_}); +export const atan2 = /* @__PURE__ */ op({atan2_}); diff --git a/tfjs-core/src/ops/atanh.ts b/tfjs-core/src/ops/atanh.ts index 00e4d47497..417cc5282e 100644 --- a/tfjs-core/src/ops/atanh.ts +++ b/tfjs-core/src/ops/atanh.ts @@ -44,4 +44,4 @@ function atanh_(x: T|TensorLike): T { return ENGINE.runKernel(Atanh, inputs as unknown as NamedTensorMap); } -export const atanh = op({atanh_}); +export const atanh = /* @__PURE__ */ op({atanh_}); diff --git a/tfjs-core/src/ops/avg_pool.ts b/tfjs-core/src/ops/avg_pool.ts index eb7d4399da..8e2ce5288e 100644 --- a/tfjs-core/src/ops/avg_pool.ts +++ b/tfjs-core/src/ops/avg_pool.ts @@ -92,4 +92,4 @@ function avgPool_( return res; } -export const avgPool = op({avgPool_}); +export const avgPool = /* @__PURE__ */ op({avgPool_}); diff --git a/tfjs-core/src/ops/avg_pool_3d.ts b/tfjs-core/src/ops/avg_pool_3d.ts index 3c79d75d6d..334d5afbcd 100644 --- a/tfjs-core/src/ops/avg_pool_3d.ts +++ b/tfjs-core/src/ops/avg_pool_3d.ts @@ -112,4 +112,4 @@ function avgPool3d_( return res; } -export const avgPool3d = op({avgPool3d_}); +export const avgPool3d = /* @__PURE__ */ op({avgPool3d_}); diff --git a/tfjs-core/src/ops/avg_pool_3d_grad.ts b/tfjs-core/src/ops/avg_pool_3d_grad.ts index 8a740f7e44..73729d23c6 100644 --- a/tfjs-core/src/ops/avg_pool_3d_grad.ts +++ b/tfjs-core/src/ops/avg_pool_3d_grad.ts @@ -96,4 +96,4 @@ function avgPool3dGrad_( return res; } -export const avgPool3dGrad = op({avgPool3dGrad_}); +export const avgPool3dGrad = /* @__PURE__ */ op({avgPool3dGrad_}); diff --git a/tfjs-core/src/ops/avg_pool_grad.ts b/tfjs-core/src/ops/avg_pool_grad.ts index bd7d48af50..8f87f1a135 100644 --- a/tfjs-core/src/ops/avg_pool_grad.ts +++ b/tfjs-core/src/ops/avg_pool_grad.ts @@ -93,4 +93,4 @@ function avgPoolGrad_( return res; } -export const avgPoolGrad = op({avgPoolGrad_}); +export const avgPoolGrad = /* @__PURE__ */ op({avgPoolGrad_}); diff --git a/tfjs-core/src/ops/basic_lstm_cell.ts b/tfjs-core/src/ops/basic_lstm_cell.ts index 13ef8f9541..d9f1e252f8 100644 --- a/tfjs-core/src/ops/basic_lstm_cell.ts +++ b/tfjs-core/src/ops/basic_lstm_cell.ts @@ -77,4 +77,4 @@ function basicLSTMCell_( return [newC, newH]; } -export const basicLSTMCell = op({basicLSTMCell_}); +export const basicLSTMCell = /* @__PURE__ */ op({basicLSTMCell_}); diff --git a/tfjs-core/src/ops/batch_to_space_nd.ts b/tfjs-core/src/ops/batch_to_space_nd.ts index 32d3f97fd9..7deeea9d8b 100644 --- a/tfjs-core/src/ops/batch_to_space_nd.ts +++ b/tfjs-core/src/ops/batch_to_space_nd.ts @@ -104,4 +104,4 @@ function batchToSpaceND_( attrs as unknown as NamedAttrMap); } -export const batchToSpaceND = op({batchToSpaceND_}); +export const batchToSpaceND = /* @__PURE__ */ op({batchToSpaceND_}); diff --git a/tfjs-core/src/ops/batchnorm.ts b/tfjs-core/src/ops/batchnorm.ts index 9f220c6b4a..5b3f1db27d 100644 --- a/tfjs-core/src/ops/batchnorm.ts +++ b/tfjs-core/src/ops/batchnorm.ts @@ -108,4 +108,4 @@ function batchNorm_( return reshape(res, $x.shape); } -export const batchNorm = op({batchNorm_}); +export const batchNorm = /* @__PURE__ */ op({batchNorm_}); diff --git a/tfjs-core/src/ops/batchnorm2d.ts b/tfjs-core/src/ops/batchnorm2d.ts index a53f78e151..0e1bca9205 100644 --- a/tfjs-core/src/ops/batchnorm2d.ts +++ b/tfjs-core/src/ops/batchnorm2d.ts @@ -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_}); diff --git a/tfjs-core/src/ops/batchnorm3d.ts b/tfjs-core/src/ops/batchnorm3d.ts index 225028622b..69c493b269 100644 --- a/tfjs-core/src/ops/batchnorm3d.ts +++ b/tfjs-core/src/ops/batchnorm3d.ts @@ -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_}); diff --git a/tfjs-core/src/ops/batchnorm4d.ts b/tfjs-core/src/ops/batchnorm4d.ts index 7e3d0b4794..4dc6aa6d89 100644 --- a/tfjs-core/src/ops/batchnorm4d.ts +++ b/tfjs-core/src/ops/batchnorm4d.ts @@ -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_}); diff --git a/tfjs-core/src/ops/bincount.ts b/tfjs-core/src/ops/bincount.ts index c9bb4fe978..0c7d952c46 100644 --- a/tfjs-core/src/ops/bincount.ts +++ b/tfjs-core/src/ops/bincount.ts @@ -67,4 +67,4 @@ function bincount_( attrs as unknown as NamedAttrMap); } -export const bincount = op({bincount_}); +export const bincount = /* @__PURE__ */ op({bincount_}); diff --git a/tfjs-core/src/ops/broadcast_args.ts b/tfjs-core/src/ops/broadcast_args.ts index 1378100b18..dbe5cf174a 100644 --- a/tfjs-core/src/ops/broadcast_args.ts +++ b/tfjs-core/src/ops/broadcast_args.ts @@ -59,4 +59,4 @@ function broadcastArgs_( return ENGINE.runKernel(BroadcastArgs, inputs as unknown as NamedTensorMap); } -export const broadcastArgs = op({ broadcastArgs_ }); +export const broadcastArgs = /* @__PURE__ */ op({ broadcastArgs_ }); diff --git a/tfjs-core/src/ops/broadcast_to.ts b/tfjs-core/src/ops/broadcast_to.ts index 46510ce1c4..9e5782b5dd 100644 --- a/tfjs-core/src/ops/broadcast_to.ts +++ b/tfjs-core/src/ops/broadcast_to.ts @@ -86,4 +86,4 @@ function broadcastTo_( attrs as unknown as NamedAttrMap); } -export const broadcastTo = op({broadcastTo_}); +export const broadcastTo = /* @__PURE__ */ op({broadcastTo_}); diff --git a/tfjs-core/src/ops/browser.ts b/tfjs-core/src/ops/browser.ts index dba53e59c8..df33b06518 100644 --- a/tfjs-core/src/ops/browser.ts +++ b/tfjs-core/src/ops/browser.ts @@ -371,4 +371,4 @@ export async function toPixels( return bytes; } -export const fromPixels = op({fromPixels_}); +export const fromPixels = /* @__PURE__ */ op({fromPixels_}); diff --git a/tfjs-core/src/ops/cast.ts b/tfjs-core/src/ops/cast.ts index 36055bd9d7..bee8b2f480 100644 --- a/tfjs-core/src/ops/cast.ts +++ b/tfjs-core/src/ops/cast.ts @@ -57,4 +57,4 @@ function cast_(x: T|TensorLike, dtype: DataType): T { attrs as unknown as NamedAttrMap); } -export const cast = op({cast_}); +export const cast = /* @__PURE__ */ op({cast_}); diff --git a/tfjs-core/src/ops/ceil.ts b/tfjs-core/src/ops/ceil.ts index 6838af571e..1c113343cc 100644 --- a/tfjs-core/src/ops/ceil.ts +++ b/tfjs-core/src/ops/ceil.ts @@ -42,4 +42,4 @@ function ceil_(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_}); diff --git a/tfjs-core/src/ops/clip_by_value.ts b/tfjs-core/src/ops/clip_by_value.ts index edffbd6387..642b9d0dad 100644 --- a/tfjs-core/src/ops/clip_by_value.ts +++ b/tfjs-core/src/ops/clip_by_value.ts @@ -60,4 +60,4 @@ function clipByValue_( attrs as unknown as NamedAttrMap); } -export const clipByValue = op({clipByValue_}); +export const clipByValue = /* @__PURE__ */ op({clipByValue_}); diff --git a/tfjs-core/src/ops/clone.ts b/tfjs-core/src/ops/clone.ts index aeade114b5..5906b9e764 100644 --- a/tfjs-core/src/ops/clone.ts +++ b/tfjs-core/src/ops/clone.ts @@ -47,4 +47,4 @@ function clone_(x: T|TensorLike): T { return ENGINE.runKernel(Identity, inputs as unknown as NamedTensorMap); } -export const clone = op({clone_}); +export const clone = /* @__PURE__ */ op({clone_}); diff --git a/tfjs-core/src/ops/complex.ts b/tfjs-core/src/ops/complex.ts index 3d7d8f5a92..c8105454c4 100644 --- a/tfjs-core/src/ops/complex.ts +++ b/tfjs-core/src/ops/complex.ts @@ -56,4 +56,4 @@ function complex_(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_}); diff --git a/tfjs-core/src/ops/concat.ts b/tfjs-core/src/ops/concat.ts index c2905da826..afd58226c3 100644 --- a/tfjs-core/src/ops/concat.ts +++ b/tfjs-core/src/ops/concat.ts @@ -93,4 +93,4 @@ function concat_(tensors: Array, axis = 0): T { attr as unknown as NamedAttrMap); } -export const concat = op({concat_}); +export const concat = /* @__PURE__ */ op({concat_}); diff --git a/tfjs-core/src/ops/concat_1d.ts b/tfjs-core/src/ops/concat_1d.ts index b310b31a56..84bcc7fc94 100644 --- a/tfjs-core/src/ops/concat_1d.ts +++ b/tfjs-core/src/ops/concat_1d.ts @@ -35,4 +35,4 @@ function concat1d_(tensors: Array): Tensor1D { return concat(tensors, 0 /* axis */); } -export const concat1d = op({concat1d_}); +export const concat1d = /* @__PURE__ */ op({concat1d_}); diff --git a/tfjs-core/src/ops/concat_2d.ts b/tfjs-core/src/ops/concat_2d.ts index 88012c56e9..206fbefd93 100644 --- a/tfjs-core/src/ops/concat_2d.ts +++ b/tfjs-core/src/ops/concat_2d.ts @@ -52,4 +52,4 @@ function concat2d_( return concat(tensors, axis); } -export const concat2d = op({concat2d_}); +export const concat2d = /* @__PURE__ */ op({concat2d_}); diff --git a/tfjs-core/src/ops/concat_3d.ts b/tfjs-core/src/ops/concat_3d.ts index 1915c37be7..c6534b28c0 100644 --- a/tfjs-core/src/ops/concat_3d.ts +++ b/tfjs-core/src/ops/concat_3d.ts @@ -56,4 +56,4 @@ function concat3d_( return concat(tensors, axis); } -export const concat3d = op({concat3d_}); +export const concat3d = /* @__PURE__ */ op({concat3d_}); diff --git a/tfjs-core/src/ops/concat_4d.ts b/tfjs-core/src/ops/concat_4d.ts index 221ec2b7cc..8c63779d38 100644 --- a/tfjs-core/src/ops/concat_4d.ts +++ b/tfjs-core/src/ops/concat_4d.ts @@ -33,4 +33,4 @@ function concat4d_( return concat(tensors, axis); } -export const concat4d = op({concat4d_}); +export const concat4d = /* @__PURE__ */ op({concat4d_}); diff --git a/tfjs-core/src/ops/confusion_matrix.ts b/tfjs-core/src/ops/confusion_matrix.ts index febded6a56..b4625987de 100644 --- a/tfjs-core/src/ops/confusion_matrix.ts +++ b/tfjs-core/src/ops/confusion_matrix.ts @@ -93,4 +93,4 @@ export function confusionMatrix_( return cast(product, 'int32'); } -export const confusionMatrix = op({confusionMatrix_}); +export const confusionMatrix = /* @__PURE__ */ op({confusionMatrix_}); diff --git a/tfjs-core/src/ops/conv1d.ts b/tfjs-core/src/ops/conv1d.ts index fb77ea02cf..90ca41ae18 100644 --- a/tfjs-core/src/ops/conv1d.ts +++ b/tfjs-core/src/ops/conv1d.ts @@ -113,4 +113,4 @@ function conv1d_( 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_}); diff --git a/tfjs-core/src/ops/conv2d.ts b/tfjs-core/src/ops/conv2d.ts index 6b3979e97c..033d92648b 100644 --- a/tfjs-core/src/ops/conv2d.ts +++ b/tfjs-core/src/ops/conv2d.ts @@ -116,4 +116,4 @@ function conv2d_( return res; } -export const conv2d = op({conv2d_}); +export const conv2d = /* @__PURE__ */ op({conv2d_}); diff --git a/tfjs-core/src/ops/conv2d_backprop_filter.ts b/tfjs-core/src/ops/conv2d_backprop_filter.ts index bda014360e..353e3fe3ca 100644 --- a/tfjs-core/src/ops/conv2d_backprop_filter.ts +++ b/tfjs-core/src/ops/conv2d_backprop_filter.ts @@ -92,4 +92,4 @@ function conv2DBackpropFilter_( attrs as unknown as NamedAttrMap) as Tensor4D; } -export const conv2DBackpropFilter = op({conv2DBackpropFilter_}); +export const conv2DBackpropFilter = /* @__PURE__ */ op({conv2DBackpropFilter_}); diff --git a/tfjs-core/src/ops/conv2d_backprop_input.ts b/tfjs-core/src/ops/conv2d_backprop_input.ts index aad5490f51..aa92b52cb3 100644 --- a/tfjs-core/src/ops/conv2d_backprop_input.ts +++ b/tfjs-core/src/ops/conv2d_backprop_input.ts @@ -108,4 +108,4 @@ function conv2DBackpropInput_( return res; } -export const conv2DBackpropInput = op({conv2DBackpropInput_}); +export const conv2DBackpropInput = /* @__PURE__ */ op({conv2DBackpropInput_}); diff --git a/tfjs-core/src/ops/conv2d_transpose.ts b/tfjs-core/src/ops/conv2d_transpose.ts index 3e39ef7c13..073425aae7 100644 --- a/tfjs-core/src/ops/conv2d_transpose.ts +++ b/tfjs-core/src/ops/conv2d_transpose.ts @@ -55,4 +55,4 @@ function conv2dTranspose_( outputShape, $x, $filter, strides, pad, 'NHWC', dimRoundingMode); } -export const conv2dTranspose = op({conv2dTranspose_}); +export const conv2dTranspose = /* @__PURE__ */ op({conv2dTranspose_}); diff --git a/tfjs-core/src/ops/conv3d.ts b/tfjs-core/src/ops/conv3d.ts index 9585819c2f..7947f42d31 100644 --- a/tfjs-core/src/ops/conv3d.ts +++ b/tfjs-core/src/ops/conv3d.ts @@ -117,4 +117,4 @@ function conv3d_( return res; } -export const conv3d = op({conv3d_}); +export const conv3d = /* @__PURE__ */ op({conv3d_}); diff --git a/tfjs-core/src/ops/conv3d_backprop_filter.ts b/tfjs-core/src/ops/conv3d_backprop_filter.ts index 2f87e6b95d..22b0eba3e3 100644 --- a/tfjs-core/src/ops/conv3d_backprop_filter.ts +++ b/tfjs-core/src/ops/conv3d_backprop_filter.ts @@ -82,4 +82,4 @@ function conv3DBackpropFilter_( attrs as unknown as NamedAttrMap) as Tensor5D; } -export const conv3DBackpropFilter = op({conv3DBackpropFilter_}); +export const conv3DBackpropFilter = /* @__PURE__ */ op({conv3DBackpropFilter_}); diff --git a/tfjs-core/src/ops/conv3d_backprop_input.ts b/tfjs-core/src/ops/conv3d_backprop_input.ts index 9810378b2b..976c30ebb8 100644 --- a/tfjs-core/src/ops/conv3d_backprop_input.ts +++ b/tfjs-core/src/ops/conv3d_backprop_input.ts @@ -104,4 +104,4 @@ function conv3DBackpropInput_( return res; } -export const conv3DBackpropInput = op({conv3DBackpropInput_}); +export const conv3DBackpropInput = /* @__PURE__ */ op({conv3DBackpropInput_}); diff --git a/tfjs-core/src/ops/conv3d_transpose.ts b/tfjs-core/src/ops/conv3d_transpose.ts index e194fa7711..09e474cde0 100644 --- a/tfjs-core/src/ops/conv3d_transpose.ts +++ b/tfjs-core/src/ops/conv3d_transpose.ts @@ -52,4 +52,4 @@ function conv3dTranspose_( return conv3DBackpropInput(outputShape, $x, $filter, strides, pad); } -export const conv3dTranspose = op({conv3dTranspose_}); +export const conv3dTranspose = /* @__PURE__ */ op({conv3dTranspose_}); diff --git a/tfjs-core/src/ops/cos.ts b/tfjs-core/src/ops/cos.ts index 139bbb72c7..6f3b266d4b 100644 --- a/tfjs-core/src/ops/cos.ts +++ b/tfjs-core/src/ops/cos.ts @@ -43,4 +43,4 @@ function cos_(x: T|TensorLike): T { return ENGINE.runKernel(Cos, inputs as unknown as NamedTensorMap); } -export const cos = op({cos_}); +export const cos = /* @__PURE__ */ op({cos_}); diff --git a/tfjs-core/src/ops/cosh.ts b/tfjs-core/src/ops/cosh.ts index 2cdc11ed4e..1bfb9f3e2a 100644 --- a/tfjs-core/src/ops/cosh.ts +++ b/tfjs-core/src/ops/cosh.ts @@ -42,4 +42,4 @@ function cosh_(x: T|TensorLike): T { return ENGINE.runKernel(Cosh, inputs as unknown as NamedTensorMap); } -export const cosh = op({cosh_}); +export const cosh = /* @__PURE__ */ op({cosh_}); diff --git a/tfjs-core/src/ops/cumprod.ts b/tfjs-core/src/ops/cumprod.ts index 1980f9d74f..e88cd9f5b2 100644 --- a/tfjs-core/src/ops/cumprod.ts +++ b/tfjs-core/src/ops/cumprod.ts @@ -66,4 +66,4 @@ function cumprod_( ); } -export const cumprod = op({ cumprod_ }); +export const cumprod = /* @__PURE__ */ op({ cumprod_ }); diff --git a/tfjs-core/src/ops/cumsum.ts b/tfjs-core/src/ops/cumsum.ts index c3672b7b8f..f6c781efa7 100644 --- a/tfjs-core/src/ops/cumsum.ts +++ b/tfjs-core/src/ops/cumsum.ts @@ -60,4 +60,4 @@ function cumsum_( attrs as unknown as NamedAttrMap); } -export const cumsum = op({cumsum_}); +export const cumsum = /* @__PURE__ */ op({cumsum_}); diff --git a/tfjs-core/src/ops/dense_bincount.ts b/tfjs-core/src/ops/dense_bincount.ts index 004ee01e4c..cab19e4660 100644 --- a/tfjs-core/src/ops/dense_bincount.ts +++ b/tfjs-core/src/ops/dense_bincount.ts @@ -75,4 +75,4 @@ function denseBincount_( attrs as unknown as NamedAttrMap); } -export const denseBincount = op({denseBincount_}); +export const denseBincount = /* @__PURE__ */ op({denseBincount_}); diff --git a/tfjs-core/src/ops/depth_to_space.ts b/tfjs-core/src/ops/depth_to_space.ts index 7c3b31d146..b48d5eb5a1 100644 --- a/tfjs-core/src/ops/depth_to_space.ts +++ b/tfjs-core/src/ops/depth_to_space.ts @@ -102,4 +102,4 @@ function depthToSpace_( attrs as unknown as NamedAttrMap); } -export const depthToSpace = op({depthToSpace_}); +export const depthToSpace = /* @__PURE__ */ op({depthToSpace_}); diff --git a/tfjs-core/src/ops/depthwise_conv2d.ts b/tfjs-core/src/ops/depthwise_conv2d.ts index ca78349480..67d8c0eee2 100644 --- a/tfjs-core/src/ops/depthwise_conv2d.ts +++ b/tfjs-core/src/ops/depthwise_conv2d.ts @@ -119,4 +119,4 @@ function depthwiseConv2d_( return res; } -export const depthwiseConv2d = op({depthwiseConv2d_}); +export const depthwiseConv2d = /* @__PURE__ */ op({depthwiseConv2d_}); diff --git a/tfjs-core/src/ops/diag.ts b/tfjs-core/src/ops/diag.ts index 64741ad2d8..20216db0e5 100644 --- a/tfjs-core/src/ops/diag.ts +++ b/tfjs-core/src/ops/diag.ts @@ -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_}); diff --git a/tfjs-core/src/ops/dilation2d.ts b/tfjs-core/src/ops/dilation2d.ts index 5f83ce4bf3..51c27da39f 100644 --- a/tfjs-core/src/ops/dilation2d.ts +++ b/tfjs-core/src/ops/dilation2d.ts @@ -107,4 +107,4 @@ function dilation2d_( return res; } -export const dilation2d = op({dilation2d_}); +export const dilation2d = /* @__PURE__ */ op({dilation2d_}); diff --git a/tfjs-core/src/ops/div.ts b/tfjs-core/src/ops/div.ts index 8599676c8e..7448306c0f 100644 --- a/tfjs-core/src/ops/div.ts +++ b/tfjs-core/src/ops/div.ts @@ -67,4 +67,4 @@ function div_(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_}); diff --git a/tfjs-core/src/ops/div_no_nan.ts b/tfjs-core/src/ops/div_no_nan.ts index c2a65ac20c..65840ba35a 100644 --- a/tfjs-core/src/ops/div_no_nan.ts +++ b/tfjs-core/src/ops/div_no_nan.ts @@ -69,4 +69,4 @@ function divNoNan_( return where(bEqualsZero, zeros, divResult) as T; } -export const divNoNan = op({divNoNan_}); +export const divNoNan = /* @__PURE__ */ op({divNoNan_}); diff --git a/tfjs-core/src/ops/dot.ts b/tfjs-core/src/ops/dot.ts index 6c958bb1a9..48667d57ba 100644 --- a/tfjs-core/src/ops/dot.ts +++ b/tfjs-core/src/ops/dot.ts @@ -79,4 +79,4 @@ function dot_(t1: Tensor|TensorLike, t2: Tensor|TensorLike): Tensor { } } -export const dot = op({dot_}); +export const dot = /* @__PURE__ */ op({dot_}); diff --git a/tfjs-core/src/ops/dropout.ts b/tfjs-core/src/ops/dropout.ts index e4efc7f160..ee9fbdba2f 100644 --- a/tfjs-core/src/ops/dropout.ts +++ b/tfjs-core/src/ops/dropout.ts @@ -76,4 +76,4 @@ function dropout_( return mul($x, multiplier); } -export const dropout = op({dropout_}); +export const dropout = /* @__PURE__ */ op({dropout_}); diff --git a/tfjs-core/src/ops/einsum.ts b/tfjs-core/src/ops/einsum.ts index bff64b0a0a..1fde865faa 100644 --- a/tfjs-core/src/ops/einsum.ts +++ b/tfjs-core/src/ops/einsum.ts @@ -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_}); diff --git a/tfjs-core/src/ops/elu.ts b/tfjs-core/src/ops/elu.ts index 75c752866b..e1820d8088 100644 --- a/tfjs-core/src/ops/elu.ts +++ b/tfjs-core/src/ops/elu.ts @@ -44,4 +44,4 @@ function elu_(x: T|TensorLike): T { return ENGINE.runKernel(Elu, inputs as unknown as NamedTensorMap); } -export const elu = op({elu_}); +export const elu = /* @__PURE__ */ op({elu_}); diff --git a/tfjs-core/src/ops/equal.ts b/tfjs-core/src/ops/equal.ts index c2f41e21a1..210e4fc619 100644 --- a/tfjs-core/src/ops/equal.ts +++ b/tfjs-core/src/ops/equal.ts @@ -53,4 +53,4 @@ function equal_( return ENGINE.runKernel(Equal, inputs as unknown as NamedTensorMap); } -export const equal = op({equal_}); +export const equal = /* @__PURE__ */ op({equal_}); diff --git a/tfjs-core/src/ops/erf.ts b/tfjs-core/src/ops/erf.ts index 300ebf7cab..2e949bd7ef 100644 --- a/tfjs-core/src/ops/erf.ts +++ b/tfjs-core/src/ops/erf.ts @@ -52,4 +52,4 @@ function erf_(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_}); diff --git a/tfjs-core/src/ops/euclidean_norm.ts b/tfjs-core/src/ops/euclidean_norm.ts index 33793b1b0f..cd8bbb4735 100644 --- a/tfjs-core/src/ops/euclidean_norm.ts +++ b/tfjs-core/src/ops/euclidean_norm.ts @@ -50,4 +50,4 @@ function euclideanNorm_( return norm(x, 'euclidean', axis, keepDims); } -export const euclideanNorm = op({euclideanNorm_}); +export const euclideanNorm = /* @__PURE__ */ op({euclideanNorm_}); diff --git a/tfjs-core/src/ops/exp.ts b/tfjs-core/src/ops/exp.ts index 4b8b9054ce..fe06482d0b 100644 --- a/tfjs-core/src/ops/exp.ts +++ b/tfjs-core/src/ops/exp.ts @@ -42,4 +42,4 @@ function exp_(x: T|TensorLike): T { const inputs: ExpInputs = {x: $x}; return ENGINE.runKernel(Exp, inputs as unknown as NamedTensorMap); } -export const exp = op({exp_}); +export const exp = /* @__PURE__ */ op({exp_}); diff --git a/tfjs-core/src/ops/expand_dims.ts b/tfjs-core/src/ops/expand_dims.ts index 660fa69cda..583bde048c 100644 --- a/tfjs-core/src/ops/expand_dims.ts +++ b/tfjs-core/src/ops/expand_dims.ts @@ -55,4 +55,4 @@ function expandDims_(x: Tensor|TensorLike, axis = 0): T { attrs as unknown as NamedAttrMap); } -export const expandDims = op({expandDims_}); +export const expandDims = /* @__PURE__ */ op({expandDims_}); diff --git a/tfjs-core/src/ops/expm1.ts b/tfjs-core/src/ops/expm1.ts index 21e53033da..5fc08d4383 100644 --- a/tfjs-core/src/ops/expm1.ts +++ b/tfjs-core/src/ops/expm1.ts @@ -43,4 +43,4 @@ function expm1_(x: T|TensorLike): T { const inputs: Expm1Inputs = {x: $x}; return ENGINE.runKernel(Expm1, inputs as unknown as NamedTensorMap); } -export const expm1 = op({expm1_}); +export const expm1 = /* @__PURE__ */ op({expm1_}); diff --git a/tfjs-core/src/ops/eye.ts b/tfjs-core/src/ops/eye.ts index 2af79361fe..312848b81d 100644 --- a/tfjs-core/src/ops/eye.ts +++ b/tfjs-core/src/ops/eye.ts @@ -79,4 +79,4 @@ function eye_( } } -export const eye = op({eye_}); +export const eye = /* @__PURE__ */ op({eye_}); diff --git a/tfjs-core/src/ops/floor.ts b/tfjs-core/src/ops/floor.ts index 721d271816..8405647afb 100644 --- a/tfjs-core/src/ops/floor.ts +++ b/tfjs-core/src/ops/floor.ts @@ -41,4 +41,4 @@ function floor_(x: T|TensorLike): T { const inputs: FloorInputs = {x: $x}; return ENGINE.runKernel(Floor, inputs as unknown as NamedTensorMap); } -export const floor = op({floor_}); +export const floor = /* @__PURE__ */ op({floor_}); diff --git a/tfjs-core/src/ops/floorDiv.ts b/tfjs-core/src/ops/floorDiv.ts index c7d83cb807..4d0a094004 100644 --- a/tfjs-core/src/ops/floorDiv.ts +++ b/tfjs-core/src/ops/floorDiv.ts @@ -62,4 +62,4 @@ function floorDiv_( return ENGINE.runKernel(FloorDiv, inputs as unknown as NamedTensorMap); } -export const floorDiv = op({floorDiv_}); +export const floorDiv = /* @__PURE__ */ op({floorDiv_}); diff --git a/tfjs-core/src/ops/fused/conv2d.ts b/tfjs-core/src/ops/fused/conv2d.ts index 5fcb589404..1fc1dff748 100644 --- a/tfjs-core/src/ops/fused/conv2d.ts +++ b/tfjs-core/src/ops/fused/conv2d.ts @@ -329,4 +329,4 @@ function fusedConv2d_({ return customOpWithBias(x4D, $filter, $bias) as T; } } -export const conv2d = op({fusedConv2d_}); +export const conv2d = /* @__PURE__ */ op({fusedConv2d_}); diff --git a/tfjs-core/src/ops/fused/depthwise_conv2d.ts b/tfjs-core/src/ops/fused/depthwise_conv2d.ts index 763c3bf336..8df3f7cab9 100644 --- a/tfjs-core/src/ops/fused/depthwise_conv2d.ts +++ b/tfjs-core/src/ops/fused/depthwise_conv2d.ts @@ -257,4 +257,4 @@ function fusedDepthwiseConv2d_({ return customOpWithBias(x4D, $filter, $bias) as T; } } -export const depthwiseConv2d = op({fusedDepthwiseConv2d_}); +export const depthwiseConv2d = /* @__PURE__ */ op({fusedDepthwiseConv2d_}); diff --git a/tfjs-core/src/ops/fused/mat_mul.ts b/tfjs-core/src/ops/fused/mat_mul.ts index 4d58be9cdf..b1ba4fd190 100644 --- a/tfjs-core/src/ops/fused/mat_mul.ts +++ b/tfjs-core/src/ops/fused/mat_mul.ts @@ -210,4 +210,4 @@ function fusedMatMul_({ } } - export const matMul = op({fusedMatMul_}); + export const matMul = /* @__PURE__ */ op({fusedMatMul_}); diff --git a/tfjs-core/src/ops/gather.ts b/tfjs-core/src/ops/gather.ts index f481b3c092..7ca40b3a40 100644 --- a/tfjs-core/src/ops/gather.ts +++ b/tfjs-core/src/ops/gather.ts @@ -64,4 +64,4 @@ function gather_( attrs as unknown as NamedAttrMap); } -export const gather = op({gather_}); +export const gather = /* @__PURE__ */ op({gather_}); diff --git a/tfjs-core/src/ops/gather_nd.ts b/tfjs-core/src/ops/gather_nd.ts index a4585d9606..305c539fb4 100644 --- a/tfjs-core/src/ops/gather_nd.ts +++ b/tfjs-core/src/ops/gather_nd.ts @@ -69,4 +69,4 @@ function gatherND_(x: Tensor|TensorLike, indices: Tensor|TensorLike): Tensor { return ENGINE.runKernel(GatherNd, inputs as unknown as NamedTensorMap); } -export const gatherND = op({gatherND_}); +export const gatherND = /* @__PURE__ */ op({gatherND_}); diff --git a/tfjs-core/src/ops/greater.ts b/tfjs-core/src/ops/greater.ts index 10ad05d115..570d31c53b 100644 --- a/tfjs-core/src/ops/greater.ts +++ b/tfjs-core/src/ops/greater.ts @@ -53,4 +53,4 @@ function greater_( return ENGINE.runKernel(Greater, inputs as unknown as NamedTensorMap); } -export const greater = op({greater_}); +export const greater = /* @__PURE__ */ op({greater_}); diff --git a/tfjs-core/src/ops/greater_equal.ts b/tfjs-core/src/ops/greater_equal.ts index 2d7e0754e9..2a4a727aff 100644 --- a/tfjs-core/src/ops/greater_equal.ts +++ b/tfjs-core/src/ops/greater_equal.ts @@ -53,4 +53,4 @@ function greaterEqual_( return ENGINE.runKernel(GreaterEqual, inputs as unknown as NamedTensorMap); } -export const greaterEqual = op({greaterEqual_}); +export const greaterEqual = /* @__PURE__ */ op({greaterEqual_}); diff --git a/tfjs-core/src/ops/imag.ts b/tfjs-core/src/ops/imag.ts index bfd12f9460..4c372ad244 100644 --- a/tfjs-core/src/ops/imag.ts +++ b/tfjs-core/src/ops/imag.ts @@ -43,4 +43,4 @@ function imag_(input: T|TensorLike): T { return ENGINE.runKernel(Imag, inputs as unknown as NamedTensorMap); } -export const imag = op({imag_}); +export const imag = /* @__PURE__ */ op({imag_}); diff --git a/tfjs-core/src/ops/image/crop_and_resize.ts b/tfjs-core/src/ops/image/crop_and_resize.ts index 90923927c7..b637cb8bbe 100644 --- a/tfjs-core/src/ops/image/crop_and_resize.ts +++ b/tfjs-core/src/ops/image/crop_and_resize.ts @@ -95,4 +95,4 @@ function cropAndResize_( return res as Tensor4D; } -export const cropAndResize = op({cropAndResize_}); +export const cropAndResize = /* @__PURE__ */ op({cropAndResize_}); diff --git a/tfjs-core/src/ops/image/flip_left_right.ts b/tfjs-core/src/ops/image/flip_left_right.ts index 6620cee6da..ad3c83a9f7 100644 --- a/tfjs-core/src/ops/image/flip_left_right.ts +++ b/tfjs-core/src/ops/image/flip_left_right.ts @@ -45,4 +45,4 @@ function flipLeftRight_(image: Tensor4D|TensorLike): Tensor4D { return res as Tensor4D; } -export const flipLeftRight = op({flipLeftRight_}); +export const flipLeftRight = /* @__PURE__ */ op({flipLeftRight_}); diff --git a/tfjs-core/src/ops/image/grayscale_to_rgb.ts b/tfjs-core/src/ops/image/grayscale_to_rgb.ts index 9227d987c0..a50343e508 100644 --- a/tfjs-core/src/ops/image/grayscale_to_rgb.ts +++ b/tfjs-core/src/ops/image/grayscale_to_rgb.ts @@ -56,4 +56,4 @@ function grayscaleToRGB_( return res; } -export const resizeBilinear = op({resizeBilinear_}); +export const resizeBilinear = /* @__PURE__ */ op({resizeBilinear_}); diff --git a/tfjs-core/src/ops/image/resize_nearest_neighbor.ts b/tfjs-core/src/ops/image/resize_nearest_neighbor.ts index 0316913e6e..730e49b3c5 100644 --- a/tfjs-core/src/ops/image/resize_nearest_neighbor.ts +++ b/tfjs-core/src/ops/image/resize_nearest_neighbor.ts @@ -90,4 +90,4 @@ function resizeNearestNeighbor_( return res; } -export const resizeNearestNeighbor = op({resizeNearestNeighbor_}); +export const resizeNearestNeighbor = /* @__PURE__ */ op({resizeNearestNeighbor_}); diff --git a/tfjs-core/src/ops/image/rotate_with_offset.ts b/tfjs-core/src/ops/image/rotate_with_offset.ts index 3c9f28cf0b..71a183a9ac 100644 --- a/tfjs-core/src/ops/image/rotate_with_offset.ts +++ b/tfjs-core/src/ops/image/rotate_with_offset.ts @@ -61,4 +61,4 @@ function rotateWithOffset_( return res as Tensor4D; } -export const rotateWithOffset = op({rotateWithOffset_}); +export const rotateWithOffset = /* @__PURE__ */ op({rotateWithOffset_}); diff --git a/tfjs-core/src/ops/image/threshold.ts b/tfjs-core/src/ops/image/threshold.ts index 0db80e2b34..6efa58004b 100644 --- a/tfjs-core/src/ops/image/threshold.ts +++ b/tfjs-core/src/ops/image/threshold.ts @@ -160,4 +160,4 @@ function otsu(histogram: Tensor1D, total: number):Tensor1D { return bestThresh; } -export const threshold = op({ threshold_ }); +export const threshold = /* @__PURE__ */ op({ threshold_ }); diff --git a/tfjs-core/src/ops/image/transform.ts b/tfjs-core/src/ops/image/transform.ts index 9e3f973609..f0d44a89b7 100644 --- a/tfjs-core/src/ops/image/transform.ts +++ b/tfjs-core/src/ops/image/transform.ts @@ -91,4 +91,4 @@ function transform_( attrs as unknown as NamedAttrMap); } -export const transform = op({transform_}); +export const transform = /* @__PURE__ */ op({transform_}); diff --git a/tfjs-core/src/ops/is_finite.ts b/tfjs-core/src/ops/is_finite.ts index bab632157b..9cfd66561f 100644 --- a/tfjs-core/src/ops/is_finite.ts +++ b/tfjs-core/src/ops/is_finite.ts @@ -43,4 +43,4 @@ function isFinite_(x: T|TensorLike): T { return ENGINE.runKernel(IsFinite, inputs as unknown as NamedTensorMap); } -export const isFinite = op({isFinite_}); +export const isFinite = /* @__PURE__ */ op({isFinite_}); diff --git a/tfjs-core/src/ops/is_inf.ts b/tfjs-core/src/ops/is_inf.ts index 2b2f695d5e..21230c07ac 100644 --- a/tfjs-core/src/ops/is_inf.ts +++ b/tfjs-core/src/ops/is_inf.ts @@ -43,4 +43,4 @@ function isInf_(x: T|TensorLike): T { return ENGINE.runKernel(IsInf, inputs as unknown as NamedTensorMap); } -export const isInf = op({isInf_}); +export const isInf = /* @__PURE__ */ op({isInf_}); diff --git a/tfjs-core/src/ops/is_nan.ts b/tfjs-core/src/ops/is_nan.ts index bb031d4e7e..42f83db4b4 100644 --- a/tfjs-core/src/ops/is_nan.ts +++ b/tfjs-core/src/ops/is_nan.ts @@ -42,4 +42,4 @@ function isNaN_(x: T|TensorLike): T { return ENGINE.runKernel(IsNan, inputs as unknown as NamedTensorMap); } -export const isNaN = op({isNaN_}); +export const isNaN = /* @__PURE__ */ op({isNaN_}); diff --git a/tfjs-core/src/ops/leaky_relu.ts b/tfjs-core/src/ops/leaky_relu.ts index 6b1f400d17..ce0a13219b 100644 --- a/tfjs-core/src/ops/leaky_relu.ts +++ b/tfjs-core/src/ops/leaky_relu.ts @@ -53,4 +53,4 @@ function leakyRelu_(x: T|TensorLike, alpha = 0.2): T { attrs as unknown as NamedAttrMap); } -export const leakyRelu = op({leakyRelu_}); +export const leakyRelu = /* @__PURE__ */ op({leakyRelu_}); diff --git a/tfjs-core/src/ops/less.ts b/tfjs-core/src/ops/less.ts index c02f8c945e..5910b69e9d 100644 --- a/tfjs-core/src/ops/less.ts +++ b/tfjs-core/src/ops/less.ts @@ -52,4 +52,4 @@ function less_( return ENGINE.runKernel(Less, inputs as unknown as NamedTensorMap); } -export const less = op({less_}); +export const less = /* @__PURE__ */ op({less_}); diff --git a/tfjs-core/src/ops/less_equal.ts b/tfjs-core/src/ops/less_equal.ts index c9e2076279..423e3f9ab2 100644 --- a/tfjs-core/src/ops/less_equal.ts +++ b/tfjs-core/src/ops/less_equal.ts @@ -53,4 +53,4 @@ function lessEqual_( return ENGINE.runKernel(LessEqual, inputs as unknown as NamedTensorMap); } -export const lessEqual = op({lessEqual_}); +export const lessEqual = /* @__PURE__ */ op({lessEqual_}); diff --git a/tfjs-core/src/ops/linalg/band_part.ts b/tfjs-core/src/ops/linalg/band_part.ts index 0bff06502d..c3763d2795 100644 --- a/tfjs-core/src/ops/linalg/band_part.ts +++ b/tfjs-core/src/ops/linalg/band_part.ts @@ -123,4 +123,4 @@ function bandPart_( shape) as T; } -export const bandPart = op({bandPart_}); +export const bandPart = /* @__PURE__ */ op({bandPart_}); diff --git a/tfjs-core/src/ops/linalg/gram_schmidt.ts b/tfjs-core/src/ops/linalg/gram_schmidt.ts index 7c68c341f6..b2be6eae97 100644 --- a/tfjs-core/src/ops/linalg/gram_schmidt.ts +++ b/tfjs-core/src/ops/linalg/gram_schmidt.ts @@ -106,4 +106,4 @@ function gramSchmidt_(xs: Tensor1D[]|Tensor2D): Tensor1D[]|Tensor2D { } } -export const gramSchmidt = op({gramSchmidt_}); +export const gramSchmidt = /* @__PURE__ */ op({gramSchmidt_}); diff --git a/tfjs-core/src/ops/linalg/qr.ts b/tfjs-core/src/ops/linalg/qr.ts index a1d3860b45..b78e8c260d 100644 --- a/tfjs-core/src/ops/linalg/qr.ts +++ b/tfjs-core/src/ops/linalg/qr.ts @@ -198,4 +198,4 @@ function qr2d(x: Tensor2D, fullMatrices = false): [Tensor2D, Tensor2D] { }) as [Tensor2D, Tensor2D]; } -export const qr = op({qr_}); +export const qr = /* @__PURE__ */ op({qr_}); diff --git a/tfjs-core/src/ops/local_response_normalization.ts b/tfjs-core/src/ops/local_response_normalization.ts index 980727f847..5d08cbc1da 100644 --- a/tfjs-core/src/ops/local_response_normalization.ts +++ b/tfjs-core/src/ops/local_response_normalization.ts @@ -77,4 +77,4 @@ function localResponseNormalization_( } } -export const localResponseNormalization = op({localResponseNormalization_}); +export const localResponseNormalization = /* @__PURE__ */ op({localResponseNormalization_}); diff --git a/tfjs-core/src/ops/log.ts b/tfjs-core/src/ops/log.ts index c0971a173f..de499454a5 100644 --- a/tfjs-core/src/ops/log.ts +++ b/tfjs-core/src/ops/log.ts @@ -42,4 +42,4 @@ function log_(x: T|TensorLike): T { const inputs: LogInputs = {x: $x}; return ENGINE.runKernel(Log, inputs as unknown as NamedTensorMap); } -export const log = op({log_}); +export const log = /* @__PURE__ */ op({log_}); diff --git a/tfjs-core/src/ops/log1p.ts b/tfjs-core/src/ops/log1p.ts index 6890674d21..0b085f201e 100644 --- a/tfjs-core/src/ops/log1p.ts +++ b/tfjs-core/src/ops/log1p.ts @@ -43,4 +43,4 @@ function log1p_(x: T|TensorLike): T { const inputs: Log1pInputs = {x: $x}; return ENGINE.runKernel(Log1p, inputs as unknown as NamedTensorMap); } -export const log1p = op({log1p_}); +export const log1p = /* @__PURE__ */ op({log1p_}); diff --git a/tfjs-core/src/ops/log_sigmoid.ts b/tfjs-core/src/ops/log_sigmoid.ts index adfa473ebe..9a6574ad14 100644 --- a/tfjs-core/src/ops/log_sigmoid.ts +++ b/tfjs-core/src/ops/log_sigmoid.ts @@ -60,4 +60,4 @@ function logSigmoid_(x: T|TensorLike): T { return customOp($x) as T; } -export const logSigmoid = op({logSigmoid_}); +export const logSigmoid = /* @__PURE__ */ op({logSigmoid_}); diff --git a/tfjs-core/src/ops/log_softmax.ts b/tfjs-core/src/ops/log_softmax.ts index c62ba8fddc..e1f975e00d 100644 --- a/tfjs-core/src/ops/log_softmax.ts +++ b/tfjs-core/src/ops/log_softmax.ts @@ -103,4 +103,4 @@ function logSoftmax_(logits: T|TensorLike, axis = -1): T { // attrs as unknown as NamedAttrMap); } -export const logSoftmax = op({logSoftmax_}); +export const logSoftmax = /* @__PURE__ */ op({logSoftmax_}); diff --git a/tfjs-core/src/ops/log_sum_exp.ts b/tfjs-core/src/ops/log_sum_exp.ts index 1bda7dd05e..cb9662dae5 100644 --- a/tfjs-core/src/ops/log_sum_exp.ts +++ b/tfjs-core/src/ops/log_sum_exp.ts @@ -78,4 +78,4 @@ function logSumExp_( return res as T; } -export const logSumExp = op({logSumExp_}); +export const logSumExp = /* @__PURE__ */ op({logSumExp_}); diff --git a/tfjs-core/src/ops/logical_and.ts b/tfjs-core/src/ops/logical_and.ts index 3c4aa08dc6..07ba686434 100644 --- a/tfjs-core/src/ops/logical_and.ts +++ b/tfjs-core/src/ops/logical_and.ts @@ -50,4 +50,4 @@ function logicalAnd_( return ENGINE.runKernel(LogicalAnd, inputs as unknown as NamedTensorMap); } -export const logicalAnd = op({logicalAnd_}); +export const logicalAnd = /* @__PURE__ */ op({logicalAnd_}); diff --git a/tfjs-core/src/ops/logical_not.ts b/tfjs-core/src/ops/logical_not.ts index 4e59b40325..7390979489 100644 --- a/tfjs-core/src/ops/logical_not.ts +++ b/tfjs-core/src/ops/logical_not.ts @@ -42,4 +42,4 @@ function logicalNot_(x: T|TensorLike): T { return ENGINE.runKernel(LogicalNot, inputs as unknown as NamedTensorMap); } -export const logicalNot = op({logicalNot_}); +export const logicalNot = /* @__PURE__ */ op({logicalNot_}); diff --git a/tfjs-core/src/ops/logical_or.ts b/tfjs-core/src/ops/logical_or.ts index dabab07219..b339878df3 100644 --- a/tfjs-core/src/ops/logical_or.ts +++ b/tfjs-core/src/ops/logical_or.ts @@ -47,4 +47,4 @@ function logicalOr_( const inputs: LogicalOrInputs = {a: $a, b: $b}; return ENGINE.runKernel(LogicalOr, inputs as unknown as NamedTensorMap); } -export const logicalOr = op({logicalOr_}); +export const logicalOr = /* @__PURE__ */ op({logicalOr_}); diff --git a/tfjs-core/src/ops/logical_xor.ts b/tfjs-core/src/ops/logical_xor.ts index b60d625421..0820a58e79 100644 --- a/tfjs-core/src/ops/logical_xor.ts +++ b/tfjs-core/src/ops/logical_xor.ts @@ -50,4 +50,4 @@ function logicalXor_( return logicalAnd(logicalOr(a, b), logicalNot(logicalAnd(a, b))); } -export const logicalXor = op({logicalXor_}); +export const logicalXor = /* @__PURE__ */ op({logicalXor_}); diff --git a/tfjs-core/src/ops/losses/absolute_difference.ts b/tfjs-core/src/ops/losses/absolute_difference.ts index 743245abec..fc43364984 100644 --- a/tfjs-core/src/ops/losses/absolute_difference.ts +++ b/tfjs-core/src/ops/losses/absolute_difference.ts @@ -59,4 +59,4 @@ function absoluteDifference_( return computeWeightedLoss(losses, $weights, reduction); } -export const absoluteDifference = op({absoluteDifference_}); +export const absoluteDifference = /* @__PURE__ */ op({absoluteDifference_}); diff --git a/tfjs-core/src/ops/losses/compute_weighted_loss.ts b/tfjs-core/src/ops/losses/compute_weighted_loss.ts index 7a86992f9c..ef079a3af9 100644 --- a/tfjs-core/src/ops/losses/compute_weighted_loss.ts +++ b/tfjs-core/src/ops/losses/compute_weighted_loss.ts @@ -81,4 +81,4 @@ function computeWeightedLoss_( throw Error(`Unknown reduction: ${reduction}`); } -export const computeWeightedLoss = op({computeWeightedLoss_}); +export const computeWeightedLoss = /* @__PURE__ */ op({computeWeightedLoss_}); diff --git a/tfjs-core/src/ops/losses/cosine_distance.ts b/tfjs-core/src/ops/losses/cosine_distance.ts index 8a483f1934..2a6983f21d 100644 --- a/tfjs-core/src/ops/losses/cosine_distance.ts +++ b/tfjs-core/src/ops/losses/cosine_distance.ts @@ -61,4 +61,4 @@ function cosineDistance_( const losses = sub(one, sum(mul($labels, $predictions), axis, true)); return computeWeightedLoss(losses, $weights, reduction); } -export const cosineDistance = op({cosineDistance_}); +export const cosineDistance = /* @__PURE__ */ op({cosineDistance_}); diff --git a/tfjs-core/src/ops/losses/hinge_loss.ts b/tfjs-core/src/ops/losses/hinge_loss.ts index 5cc0210419..7bddda9168 100644 --- a/tfjs-core/src/ops/losses/hinge_loss.ts +++ b/tfjs-core/src/ops/losses/hinge_loss.ts @@ -60,4 +60,4 @@ function hingeLoss_( const losses = relu(sub(one, mul($labels, $predictions))); return computeWeightedLoss(losses, $weights, reduction); } -export const hingeLoss = op({hingeLoss_}); +export const hingeLoss = /* @__PURE__ */ op({hingeLoss_}); diff --git a/tfjs-core/src/ops/losses/huber_loss.ts b/tfjs-core/src/ops/losses/huber_loss.ts index ccba8fe71f..6db6aac974 100644 --- a/tfjs-core/src/ops/losses/huber_loss.ts +++ b/tfjs-core/src/ops/losses/huber_loss.ts @@ -68,4 +68,4 @@ function huberLoss_( add(mul(scalar(0.5), square(quadratic)), mul(deltaScalar, linear)); return computeWeightedLoss(losses, $weights, reduction); } -export const huberLoss = op({huberLoss_}); +export const huberLoss = /* @__PURE__ */ op({huberLoss_}); diff --git a/tfjs-core/src/ops/losses/log_loss.ts b/tfjs-core/src/ops/losses/log_loss.ts index 5fd98ded69..0fae4f3265 100644 --- a/tfjs-core/src/ops/losses/log_loss.ts +++ b/tfjs-core/src/ops/losses/log_loss.ts @@ -67,4 +67,4 @@ function logLoss_( const losses = sub(l1, l2); return computeWeightedLoss(losses, $weights, reduction); } -export const logLoss = op({logLoss_}); +export const logLoss = /* @__PURE__ */ op({logLoss_}); diff --git a/tfjs-core/src/ops/losses/mean_squared_error.ts b/tfjs-core/src/ops/losses/mean_squared_error.ts index 7aef4c7e20..af1a110d0f 100644 --- a/tfjs-core/src/ops/losses/mean_squared_error.ts +++ b/tfjs-core/src/ops/losses/mean_squared_error.ts @@ -57,4 +57,4 @@ function meanSquaredError_( const losses = squaredDifference($labels, $predictions); return computeWeightedLoss(losses, $weights, reduction); } -export const meanSquaredError = op({meanSquaredError_}); +export const meanSquaredError = /* @__PURE__ */ op({meanSquaredError_}); diff --git a/tfjs-core/src/ops/losses/sigmoid_cross_entropy.ts b/tfjs-core/src/ops/losses/sigmoid_cross_entropy.ts index ba7f850317..f3f59d1b0c 100644 --- a/tfjs-core/src/ops/losses/sigmoid_cross_entropy.ts +++ b/tfjs-core/src/ops/losses/sigmoid_cross_entropy.ts @@ -118,4 +118,4 @@ function sigmoidCrossEntropy_( return computeWeightedLoss(losses, $weights, reduction); } -export const sigmoidCrossEntropy = op({sigmoidCrossEntropy_}); +export const sigmoidCrossEntropy = /* @__PURE__ */ op({sigmoidCrossEntropy_}); diff --git a/tfjs-core/src/ops/losses/softmax_cross_entropy.ts b/tfjs-core/src/ops/losses/softmax_cross_entropy.ts index de31cec896..16d21d21a0 100644 --- a/tfjs-core/src/ops/losses/softmax_cross_entropy.ts +++ b/tfjs-core/src/ops/losses/softmax_cross_entropy.ts @@ -153,4 +153,4 @@ function softmaxCrossEntropy_( return computeWeightedLoss(losses, $weights, reduction); } -export const softmaxCrossEntropy = op({softmaxCrossEntropy_}); +export const softmaxCrossEntropy = /* @__PURE__ */ op({softmaxCrossEntropy_}); diff --git a/tfjs-core/src/ops/mat_mul.ts b/tfjs-core/src/ops/mat_mul.ts index 6a821a7e5d..9a8c3129dd 100644 --- a/tfjs-core/src/ops/mat_mul.ts +++ b/tfjs-core/src/ops/mat_mul.ts @@ -56,4 +56,4 @@ function matMul_( attrs as unknown as NamedAttrMap); } -export const matMul = op({matMul_}); +export const matMul = /* @__PURE__ */ op({matMul_}); diff --git a/tfjs-core/src/ops/max.ts b/tfjs-core/src/ops/max.ts index fcd924da59..1f0d630771 100644 --- a/tfjs-core/src/ops/max.ts +++ b/tfjs-core/src/ops/max.ts @@ -66,4 +66,4 @@ function max_( attrs as unknown as NamedAttrMap); } -export const max = op({max_}); +export const max = /* @__PURE__ */ op({max_}); diff --git a/tfjs-core/src/ops/max_pool.ts b/tfjs-core/src/ops/max_pool.ts index 19ea2ac65c..5d07c5c82a 100644 --- a/tfjs-core/src/ops/max_pool.ts +++ b/tfjs-core/src/ops/max_pool.ts @@ -90,4 +90,4 @@ function maxPool_( return res; } -export const maxPool = op({maxPool_}); +export const maxPool = /* @__PURE__ */ op({maxPool_}); diff --git a/tfjs-core/src/ops/max_pool_3d.ts b/tfjs-core/src/ops/max_pool_3d.ts index 1bb9167e7d..c306e66374 100644 --- a/tfjs-core/src/ops/max_pool_3d.ts +++ b/tfjs-core/src/ops/max_pool_3d.ts @@ -103,4 +103,4 @@ function maxPool3d_( return res; } -export const maxPool3d = op({maxPool3d_}); +export const maxPool3d = /* @__PURE__ */ op({maxPool3d_}); diff --git a/tfjs-core/src/ops/max_pool_3d_grad.ts b/tfjs-core/src/ops/max_pool_3d_grad.ts index c3685e4c54..3e4f302246 100644 --- a/tfjs-core/src/ops/max_pool_3d_grad.ts +++ b/tfjs-core/src/ops/max_pool_3d_grad.ts @@ -107,4 +107,4 @@ function maxPool3dGrad_( return res; } -export const maxPool3dGrad = op({maxPool3dGrad_}); +export const maxPool3dGrad = /* @__PURE__ */ op({maxPool3dGrad_}); diff --git a/tfjs-core/src/ops/max_pool_grad.ts b/tfjs-core/src/ops/max_pool_grad.ts index 35ef9f6158..32ca887e8d 100644 --- a/tfjs-core/src/ops/max_pool_grad.ts +++ b/tfjs-core/src/ops/max_pool_grad.ts @@ -81,4 +81,4 @@ function maxPoolGrad_( attrs as unknown as NamedAttrMap) as Tensor4D; } -export const maxPoolGrad = op({maxPoolGrad_}); +export const maxPoolGrad = /* @__PURE__ */ op({maxPoolGrad_}); diff --git a/tfjs-core/src/ops/max_pool_with_argmax.ts b/tfjs-core/src/ops/max_pool_with_argmax.ts index 1fd1022c34..9dd079f1fb 100644 --- a/tfjs-core/src/ops/max_pool_with_argmax.ts +++ b/tfjs-core/src/ops/max_pool_with_argmax.ts @@ -76,4 +76,4 @@ function maxPoolWithArgmax_( return {result: result[0], indexes: result[1]}; } -export const maxPoolWithArgmax = op({maxPoolWithArgmax_}); +export const maxPoolWithArgmax = /* @__PURE__ */ op({maxPoolWithArgmax_}); diff --git a/tfjs-core/src/ops/maximum.ts b/tfjs-core/src/ops/maximum.ts index d32d567235..1abcb6d5d1 100644 --- a/tfjs-core/src/ops/maximum.ts +++ b/tfjs-core/src/ops/maximum.ts @@ -71,4 +71,4 @@ function maximum_( return ENGINE.runKernel(Maximum, inputs as unknown as NamedTensorMap); } -export const maximum = op({maximum_}); +export const maximum = /* @__PURE__ */ op({maximum_}); diff --git a/tfjs-core/src/ops/mean.ts b/tfjs-core/src/ops/mean.ts index a21a451a21..db504b1506 100644 --- a/tfjs-core/src/ops/mean.ts +++ b/tfjs-core/src/ops/mean.ts @@ -66,4 +66,4 @@ function mean_( attrs as unknown as NamedAttrMap); } -export const mean = op({mean_}); +export const mean = /* @__PURE__ */ op({mean_}); diff --git a/tfjs-core/src/ops/min.ts b/tfjs-core/src/ops/min.ts index 88ef43f40c..378483f957 100644 --- a/tfjs-core/src/ops/min.ts +++ b/tfjs-core/src/ops/min.ts @@ -66,4 +66,4 @@ function min_( attrs as unknown as NamedAttrMap) as T; } -export const min = op({min_}); +export const min = /* @__PURE__ */ op({min_}); diff --git a/tfjs-core/src/ops/minimum.ts b/tfjs-core/src/ops/minimum.ts index 4dbc1b3e13..4efc40edfb 100644 --- a/tfjs-core/src/ops/minimum.ts +++ b/tfjs-core/src/ops/minimum.ts @@ -72,4 +72,4 @@ function minimum_( return ENGINE.runKernel(Minimum, inputs as unknown as NamedTensorMap); } -export const minimum = op({minimum_}); +export const minimum = /* @__PURE__ */ op({minimum_}); diff --git a/tfjs-core/src/ops/mirror_pad.ts b/tfjs-core/src/ops/mirror_pad.ts index 87da1b7dcf..8b4db2b54d 100644 --- a/tfjs-core/src/ops/mirror_pad.ts +++ b/tfjs-core/src/ops/mirror_pad.ts @@ -89,4 +89,4 @@ function mirrorPad_( attrs as unknown as NamedAttrMap); } -export const mirrorPad = op({mirrorPad_}); +export const mirrorPad = /* @__PURE__ */ op({mirrorPad_}); diff --git a/tfjs-core/src/ops/mod.ts b/tfjs-core/src/ops/mod.ts index 5f020bf6f5..22acb8d619 100644 --- a/tfjs-core/src/ops/mod.ts +++ b/tfjs-core/src/ops/mod.ts @@ -63,4 +63,4 @@ function mod_(a: Tensor|TensorLike, b: Tensor|TensorLike): T { return ENGINE.runKernel(Mod, inputs as unknown as NamedTensorMap); } -export const mod = op({mod_}); +export const mod = /* @__PURE__ */ op({mod_}); diff --git a/tfjs-core/src/ops/moments.ts b/tfjs-core/src/ops/moments.ts index 4246c6d1f9..d022626abf 100644 --- a/tfjs-core/src/ops/moments.ts +++ b/tfjs-core/src/ops/moments.ts @@ -58,4 +58,4 @@ function moments_( return {mean: xMean, variance}; } -export const moments = op({moments_}); +export const moments = /* @__PURE__ */ op({moments_}); diff --git a/tfjs-core/src/ops/moving_average.ts b/tfjs-core/src/ops/moving_average.ts index cf8100423f..6852ca4607 100644 --- a/tfjs-core/src/ops/moving_average.ts +++ b/tfjs-core/src/ops/moving_average.ts @@ -81,4 +81,4 @@ function movingAverage_( return add($v, update); } -export const movingAverage = op({movingAverage_}); +export const movingAverage = /* @__PURE__ */ op({movingAverage_}); diff --git a/tfjs-core/src/ops/mul.ts b/tfjs-core/src/ops/mul.ts index 53de0e746e..18ebb3d466 100644 --- a/tfjs-core/src/ops/mul.ts +++ b/tfjs-core/src/ops/mul.ts @@ -59,4 +59,4 @@ function mul_(a: Tensor|TensorLike, b: Tensor|TensorLike): T { return ENGINE.runKernel(Multiply, inputs as unknown as NamedTensorMap); } -export const mul = op({mul_}); +export const mul = /* @__PURE__ */ op({mul_}); diff --git a/tfjs-core/src/ops/multi_rnn_cell.ts b/tfjs-core/src/ops/multi_rnn_cell.ts index c958e0eda6..617bcebb08 100644 --- a/tfjs-core/src/ops/multi_rnn_cell.ts +++ b/tfjs-core/src/ops/multi_rnn_cell.ts @@ -66,4 +66,4 @@ function multiRNNCell_( } return [newC, newH]; } -export const multiRNNCell = op({multiRNNCell_}); +export const multiRNNCell = /* @__PURE__ */ op({multiRNNCell_}); diff --git a/tfjs-core/src/ops/multinomial.ts b/tfjs-core/src/ops/multinomial.ts index 41522c7411..13563ddc8a 100644 --- a/tfjs-core/src/ops/multinomial.ts +++ b/tfjs-core/src/ops/multinomial.ts @@ -80,4 +80,4 @@ function multinomial_( return origRank === 1 ? reshape(res, [res.size]) as Tensor1D : res; } -export const multinomial = op({multinomial_}); +export const multinomial = /* @__PURE__ */ op({multinomial_}); diff --git a/tfjs-core/src/ops/neg.ts b/tfjs-core/src/ops/neg.ts index c45b334c47..7df6607a0e 100644 --- a/tfjs-core/src/ops/neg.ts +++ b/tfjs-core/src/ops/neg.ts @@ -43,4 +43,4 @@ function neg_(x: T|TensorLike): T { const inputs: NegInputs = {x: $x}; return ENGINE.runKernel(Neg, inputs as unknown as NamedTensorMap); } -export const neg = op({neg_}); +export const neg = /* @__PURE__ */ op({neg_}); diff --git a/tfjs-core/src/ops/norm.ts b/tfjs-core/src/ops/norm.ts index 54d82aac67..049dec92d5 100644 --- a/tfjs-core/src/ops/norm.ts +++ b/tfjs-core/src/ops/norm.ts @@ -137,4 +137,4 @@ function normImpl( throw new Error(`Error in norm: invalid axis: ${axis}`); } -export const norm = op({norm_}); +export const norm = /* @__PURE__ */ op({norm_}); diff --git a/tfjs-core/src/ops/not_equal.ts b/tfjs-core/src/ops/not_equal.ts index 21ee44db88..6387fdb674 100644 --- a/tfjs-core/src/ops/not_equal.ts +++ b/tfjs-core/src/ops/not_equal.ts @@ -52,4 +52,4 @@ function notEqual_( return ENGINE.runKernel(NotEqual, inputs as unknown as NamedTensorMap); } -export const notEqual = op({notEqual_}); +export const notEqual = /* @__PURE__ */ op({notEqual_}); diff --git a/tfjs-core/src/ops/one_hot.ts b/tfjs-core/src/ops/one_hot.ts index e77fd15ce2..dfbffc8cd1 100644 --- a/tfjs-core/src/ops/one_hot.ts +++ b/tfjs-core/src/ops/one_hot.ts @@ -65,4 +65,4 @@ function oneHot_( attrs as unknown as NamedAttrMap); } -export const oneHot = op({oneHot_}); +export const oneHot = /* @__PURE__ */ op({oneHot_}); diff --git a/tfjs-core/src/ops/ones_like.ts b/tfjs-core/src/ops/ones_like.ts index b12f74f95c..f9e6ba1a89 100644 --- a/tfjs-core/src/ops/ones_like.ts +++ b/tfjs-core/src/ops/ones_like.ts @@ -43,4 +43,4 @@ function onesLike_(x: T|TensorLike): T { return ENGINE.runKernel(OnesLike, inputs as unknown as NamedTensorMap); } -export const onesLike = op({onesLike_}); +export const onesLike = /* @__PURE__ */ op({onesLike_}); diff --git a/tfjs-core/src/ops/operation_test.ts b/tfjs-core/src/ops/operation_test.ts index 821b60410e..80d2741022 100644 --- a/tfjs-core/src/ops/operation_test.ts +++ b/tfjs-core/src/ops/operation_test.ts @@ -20,7 +20,7 @@ import {op} from './operation'; describeWithFlags('operation', ALL_ENVS, () => { it('executes and preserves function name', () => { const f = () => 2; - const opfn = op({'opName': f}); + const opfn = /* @__PURE__ */ op({'opName': f}); expect(opfn.name).toBe('opName__op'); expect(opfn()).toBe(2); @@ -28,7 +28,7 @@ describeWithFlags('operation', ALL_ENVS, () => { it('executes, preserves function name, strips underscore', () => { const f = () => 2; - const opfn = op({'opName_': f}); + const opfn = /* @__PURE__ */ op({'opName_': f}); expect(opfn.name).toBe('opName__op'); expect(opfn()).toBe(2); diff --git a/tfjs-core/src/ops/outer_product.ts b/tfjs-core/src/ops/outer_product.ts index 55ebb8a8b7..c3063867d4 100644 --- a/tfjs-core/src/ops/outer_product.ts +++ b/tfjs-core/src/ops/outer_product.ts @@ -52,4 +52,4 @@ function outerProduct_( return matMul(v12D, v22D); } -export const outerProduct = op({outerProduct_}); +export const outerProduct = /* @__PURE__ */ op({outerProduct_}); diff --git a/tfjs-core/src/ops/pad.ts b/tfjs-core/src/ops/pad.ts index 1f363f1a8c..eec8c3d1b1 100644 --- a/tfjs-core/src/ops/pad.ts +++ b/tfjs-core/src/ops/pad.ts @@ -64,4 +64,4 @@ function pad_( attrs as unknown as NamedAttrMap); } -export const pad = op({pad_}); +export const pad = /* @__PURE__ */ op({pad_}); diff --git a/tfjs-core/src/ops/pad1d.ts b/tfjs-core/src/ops/pad1d.ts index bade3fc998..e775fb4026 100644 --- a/tfjs-core/src/ops/pad1d.ts +++ b/tfjs-core/src/ops/pad1d.ts @@ -32,4 +32,4 @@ function pad1d_( return pad(x, [paddings], constantValue); } -export const pad1d = op({pad1d_}); +export const pad1d = /* @__PURE__ */ op({pad1d_}); diff --git a/tfjs-core/src/ops/pad2d.ts b/tfjs-core/src/ops/pad2d.ts index 170ffd1447..5225f2673f 100644 --- a/tfjs-core/src/ops/pad2d.ts +++ b/tfjs-core/src/ops/pad2d.ts @@ -33,4 +33,4 @@ function pad2d_( return pad(x, paddings, constantValue); } -export const pad2d = op({pad2d_}); +export const pad2d = /* @__PURE__ */ op({pad2d_}); diff --git a/tfjs-core/src/ops/pad3d.ts b/tfjs-core/src/ops/pad3d.ts index 654517acf5..39201a0bc4 100644 --- a/tfjs-core/src/ops/pad3d.ts +++ b/tfjs-core/src/ops/pad3d.ts @@ -34,4 +34,4 @@ function pad3d_( return pad(x, paddings, constantValue); } -export const pad3d = op({pad3d_}); +export const pad3d = /* @__PURE__ */ op({pad3d_}); diff --git a/tfjs-core/src/ops/pad4d.ts b/tfjs-core/src/ops/pad4d.ts index c4fde84db5..f3e7693f7f 100644 --- a/tfjs-core/src/ops/pad4d.ts +++ b/tfjs-core/src/ops/pad4d.ts @@ -38,4 +38,4 @@ function pad4d_( return pad(x, paddings, constantValue); } -export const pad4d = op({pad4d_}); +export const pad4d = /* @__PURE__ */ op({pad4d_}); diff --git a/tfjs-core/src/ops/pool.ts b/tfjs-core/src/ops/pool.ts index 5c5098e70b..84398b419e 100644 --- a/tfjs-core/src/ops/pool.ts +++ b/tfjs-core/src/ops/pool.ts @@ -164,4 +164,4 @@ function withSpaceToBatchBasePaddings( }); } -export const pool = op({pool_}); +export const pool = /* @__PURE__ */ op({pool_}); diff --git a/tfjs-core/src/ops/pow.ts b/tfjs-core/src/ops/pow.ts index 27360b9cbe..aabae62366 100644 --- a/tfjs-core/src/ops/pow.ts +++ b/tfjs-core/src/ops/pow.ts @@ -63,4 +63,4 @@ function pow_( return ENGINE.runKernel(Pow, inputs as unknown as NamedTensorMap); } -export const pow = op({pow_}); +export const pow = /* @__PURE__ */ op({pow_}); diff --git a/tfjs-core/src/ops/prelu.ts b/tfjs-core/src/ops/prelu.ts index 948ecb3d48..f500f5dc00 100644 --- a/tfjs-core/src/ops/prelu.ts +++ b/tfjs-core/src/ops/prelu.ts @@ -48,4 +48,4 @@ function prelu_(x: T|TensorLike, alpha: T|TensorLike): T { return ENGINE.runKernel(Prelu, inputs as unknown as NamedTensorMap); } -export const prelu = op({prelu_}); +export const prelu = /* @__PURE__ */ op({prelu_}); diff --git a/tfjs-core/src/ops/prod.ts b/tfjs-core/src/ops/prod.ts index da81575f78..f9e4821625 100644 --- a/tfjs-core/src/ops/prod.ts +++ b/tfjs-core/src/ops/prod.ts @@ -73,4 +73,4 @@ function prod_( attrs as unknown as NamedAttrMap); } -export const prod = op({prod_}); +export const prod = /* @__PURE__ */ op({prod_}); diff --git a/tfjs-core/src/ops/ragged_gather.ts b/tfjs-core/src/ops/ragged_gather.ts index d20d1241c8..24a741e36a 100644 --- a/tfjs-core/src/ops/ragged_gather.ts +++ b/tfjs-core/src/ops/ragged_gather.ts @@ -72,4 +72,4 @@ function raggedGather_( }; } -export const raggedGather = op({raggedGather_}); +export const raggedGather = /* @__PURE__ */ op({raggedGather_}); diff --git a/tfjs-core/src/ops/ragged_range.ts b/tfjs-core/src/ops/ragged_range.ts index 1458a29e43..e2f5f20b13 100644 --- a/tfjs-core/src/ops/ragged_range.ts +++ b/tfjs-core/src/ops/ragged_range.ts @@ -60,4 +60,4 @@ function raggedRange_( }; } -export const raggedRange = op({raggedRange_}); +export const raggedRange = /* @__PURE__ */ op({raggedRange_}); diff --git a/tfjs-core/src/ops/ragged_tensor_to_tensor.ts b/tfjs-core/src/ops/ragged_tensor_to_tensor.ts index 335a18fafd..2485a16a33 100644 --- a/tfjs-core/src/ops/ragged_tensor_to_tensor.ts +++ b/tfjs-core/src/ops/ragged_tensor_to_tensor.ts @@ -99,4 +99,4 @@ function raggedTensorToTensor_( return ENGINE.runKernel(RaggedTensorToTensor, inputs as {}, attrs as {}); } -export const raggedTensorToTensor = op({raggedTensorToTensor_}); +export const raggedTensorToTensor = /* @__PURE__ */ op({raggedTensorToTensor_}); diff --git a/tfjs-core/src/ops/rand.ts b/tfjs-core/src/ops/rand.ts index cac5141b1f..0245756ed3 100644 --- a/tfjs-core/src/ops/rand.ts +++ b/tfjs-core/src/ops/rand.ts @@ -55,4 +55,4 @@ function rand_( return ENGINE.makeTensor(values, shape, dtype) as Tensor; } -export const rand = op({rand_}); +export const rand = /* @__PURE__ */ op({rand_}); diff --git a/tfjs-core/src/ops/random_gamma.ts b/tfjs-core/src/ops/random_gamma.ts index 8296415fd5..36f537596d 100644 --- a/tfjs-core/src/ops/random_gamma.ts +++ b/tfjs-core/src/ops/random_gamma.ts @@ -60,4 +60,4 @@ function randomGamma_( return res.toTensor(); } -export const randomGamma = op({randomGamma_}); +export const randomGamma = /* @__PURE__ */ op({randomGamma_}); diff --git a/tfjs-core/src/ops/random_normal.ts b/tfjs-core/src/ops/random_normal.ts index 0cfdbd0d59..4a14f9476a 100644 --- a/tfjs-core/src/ops/random_normal.ts +++ b/tfjs-core/src/ops/random_normal.ts @@ -54,4 +54,4 @@ function randomNormal_( return res.toTensor(); } -export const randomNormal = op({randomNormal_}); +export const randomNormal = /* @__PURE__ */ op({randomNormal_}); diff --git a/tfjs-core/src/ops/random_standard_normal.ts b/tfjs-core/src/ops/random_standard_normal.ts index adf31bfbd5..417147dc55 100644 --- a/tfjs-core/src/ops/random_standard_normal.ts +++ b/tfjs-core/src/ops/random_standard_normal.ts @@ -44,4 +44,4 @@ function randomStandardNormal_( return randomNormal(shape, 0, 1, dtype, seed); } -export const randomStandardNormal = op({randomStandardNormal_}); +export const randomStandardNormal = /* @__PURE__ */ op({randomStandardNormal_}); diff --git a/tfjs-core/src/ops/random_uniform.ts b/tfjs-core/src/ops/random_uniform.ts index 8a55be8317..f911cc3de9 100644 --- a/tfjs-core/src/ops/random_uniform.ts +++ b/tfjs-core/src/ops/random_uniform.ts @@ -55,4 +55,4 @@ function randomUniform_( return res.toTensor(); } -export const randomUniform = op({randomUniform_}); +export const randomUniform = /* @__PURE__ */ op({randomUniform_}); diff --git a/tfjs-core/src/ops/real.ts b/tfjs-core/src/ops/real.ts index b3fa3738b0..b6e2ba8ef8 100644 --- a/tfjs-core/src/ops/real.ts +++ b/tfjs-core/src/ops/real.ts @@ -45,4 +45,4 @@ function real_(input: T|TensorLike): T { return ENGINE.runKernel(Real, inputs as unknown as NamedTensorMap); } -export const real = op({real_}); +export const real = /* @__PURE__ */ op({real_}); diff --git a/tfjs-core/src/ops/reciprocal.ts b/tfjs-core/src/ops/reciprocal.ts index 4c33fe5725..ae57cec7d2 100644 --- a/tfjs-core/src/ops/reciprocal.ts +++ b/tfjs-core/src/ops/reciprocal.ts @@ -42,4 +42,4 @@ function reciprocal_(x: T|TensorLike): T { const inputs: ReciprocalInputs = {x: $x}; return ENGINE.runKernel(Reciprocal, inputs as unknown as NamedTensorMap); } -export const reciprocal = op({reciprocal_}); +export const reciprocal = /* @__PURE__ */ op({reciprocal_}); diff --git a/tfjs-core/src/ops/relu.ts b/tfjs-core/src/ops/relu.ts index 77f751a908..2630fe5723 100644 --- a/tfjs-core/src/ops/relu.ts +++ b/tfjs-core/src/ops/relu.ts @@ -45,4 +45,4 @@ function relu_(x: T|TensorLike): T { return ENGINE.runKernel(Relu, inputs as unknown as NamedTensorMap); } -export const relu = op({relu_}); +export const relu = /* @__PURE__ */ op({relu_}); diff --git a/tfjs-core/src/ops/relu6.ts b/tfjs-core/src/ops/relu6.ts index d40322d462..9b84750a15 100644 --- a/tfjs-core/src/ops/relu6.ts +++ b/tfjs-core/src/ops/relu6.ts @@ -45,4 +45,4 @@ function relu6_(x: T|TensorLike): T { return ENGINE.runKernel(Relu6, inputs as unknown as NamedTensorMap); } -export const relu6 = op({relu6_}); +export const relu6 = /* @__PURE__ */ op({relu6_}); diff --git a/tfjs-core/src/ops/reshape.ts b/tfjs-core/src/ops/reshape.ts index 69e75b204d..d213719f6a 100644 --- a/tfjs-core/src/ops/reshape.ts +++ b/tfjs-core/src/ops/reshape.ts @@ -61,4 +61,4 @@ function reshape_( Reshape, inputs as unknown as NamedTensorMap, attrs as unknown as NamedAttrMap); } -export const reshape = op({reshape_}); +export const reshape = /* @__PURE__ */ op({reshape_}); diff --git a/tfjs-core/src/ops/reverse.ts b/tfjs-core/src/ops/reverse.ts index cb65439f0f..caa9f0333e 100644 --- a/tfjs-core/src/ops/reverse.ts +++ b/tfjs-core/src/ops/reverse.ts @@ -68,4 +68,4 @@ function reverse_( attrs as unknown as NamedAttrMap); } -export const reverse = op({reverse_}); +export const reverse = /* @__PURE__ */ op({reverse_}); diff --git a/tfjs-core/src/ops/reverse_1d.ts b/tfjs-core/src/ops/reverse_1d.ts index 38317dd8d9..5dc27f62a6 100644 --- a/tfjs-core/src/ops/reverse_1d.ts +++ b/tfjs-core/src/ops/reverse_1d.ts @@ -35,4 +35,4 @@ function reverse1d_(x: Tensor1D|TensorLike): Tensor1D { return reverse($x, 0); } -export const reverse1d = op({reverse1d_}); +export const reverse1d = /* @__PURE__ */ op({reverse1d_}); diff --git a/tfjs-core/src/ops/reverse_2d.ts b/tfjs-core/src/ops/reverse_2d.ts index 7f157f0235..45c869423f 100644 --- a/tfjs-core/src/ops/reverse_2d.ts +++ b/tfjs-core/src/ops/reverse_2d.ts @@ -37,4 +37,4 @@ function reverse2d_(x: Tensor2D|TensorLike, axis?: number|number[]): Tensor2D { return reverse($x, axis); } -export const reverse2d = op({reverse2d_}); +export const reverse2d = /* @__PURE__ */ op({reverse2d_}); diff --git a/tfjs-core/src/ops/reverse_3d.ts b/tfjs-core/src/ops/reverse_3d.ts index 8c0ea69a3a..a1d6f1f344 100644 --- a/tfjs-core/src/ops/reverse_3d.ts +++ b/tfjs-core/src/ops/reverse_3d.ts @@ -37,4 +37,4 @@ function reverse3d_(x: Tensor3D|TensorLike, axis?: number|number[]): Tensor3D { return reverse($x, axis); } -export const reverse3d = op({reverse3d_}); +export const reverse3d = /* @__PURE__ */ op({reverse3d_}); diff --git a/tfjs-core/src/ops/reverse_4d.ts b/tfjs-core/src/ops/reverse_4d.ts index 8681ac9351..1f39c953fc 100644 --- a/tfjs-core/src/ops/reverse_4d.ts +++ b/tfjs-core/src/ops/reverse_4d.ts @@ -37,4 +37,4 @@ function reverse4d_(x: Tensor4D|TensorLike, axis?: number|number[]): Tensor4D { return reverse($x, axis); } -export const reverse4d = op({reverse4d_}); +export const reverse4d = /* @__PURE__ */ op({reverse4d_}); diff --git a/tfjs-core/src/ops/round.ts b/tfjs-core/src/ops/round.ts index 595cd4efe0..8cb0daaea5 100644 --- a/tfjs-core/src/ops/round.ts +++ b/tfjs-core/src/ops/round.ts @@ -44,4 +44,4 @@ function round_(x: T|TensorLike): T { return ENGINE.runKernel(Round, inputs as unknown as NamedTensorMap); } -export const round = op({round_}); +export const round = /* @__PURE__ */ op({round_}); diff --git a/tfjs-core/src/ops/rsqrt.ts b/tfjs-core/src/ops/rsqrt.ts index eb19e98ecf..8a90db92a2 100644 --- a/tfjs-core/src/ops/rsqrt.ts +++ b/tfjs-core/src/ops/rsqrt.ts @@ -44,4 +44,4 @@ function rsqrt_(x: T|TensorLike): T { return ENGINE.runKernel(Rsqrt, inputs as unknown as NamedTensorMap); } -export const rsqrt = op({rsqrt_}); +export const rsqrt = /* @__PURE__ */ op({rsqrt_}); diff --git a/tfjs-core/src/ops/scatter_nd.ts b/tfjs-core/src/ops/scatter_nd.ts index 147107605f..6dfd19aceb 100644 --- a/tfjs-core/src/ops/scatter_nd.ts +++ b/tfjs-core/src/ops/scatter_nd.ts @@ -63,4 +63,4 @@ function scatterND_( attrs as unknown as NamedAttrMap) as Tensor; } -export const scatterND = op({scatterND_}); +export const scatterND = /* @__PURE__ */ op({scatterND_}); diff --git a/tfjs-core/src/ops/search_sorted.ts b/tfjs-core/src/ops/search_sorted.ts index 1aba4edb61..9be9022c2d 100644 --- a/tfjs-core/src/ops/search_sorted.ts +++ b/tfjs-core/src/ops/search_sorted.ts @@ -113,4 +113,4 @@ function searchSorted_( return ENGINE.runKernel(SearchSorted, inputs as {}, attrs as {}); } -export const searchSorted = op({searchSorted_}); +export const searchSorted = /* @__PURE__ */ op({searchSorted_}); diff --git a/tfjs-core/src/ops/selu.ts b/tfjs-core/src/ops/selu.ts index 3b67af0b4d..47f61405e2 100644 --- a/tfjs-core/src/ops/selu.ts +++ b/tfjs-core/src/ops/selu.ts @@ -46,4 +46,4 @@ function selu_(x: T|TensorLike): T { return ENGINE.runKernel(Selu, inputs as unknown as NamedTensorMap); } -export const selu = op({selu_}); +export const selu = /* @__PURE__ */ op({selu_}); diff --git a/tfjs-core/src/ops/separable_conv2d.ts b/tfjs-core/src/ops/separable_conv2d.ts index 5897c4ae16..58b5b67ee0 100644 --- a/tfjs-core/src/ops/separable_conv2d.ts +++ b/tfjs-core/src/ops/separable_conv2d.ts @@ -136,4 +136,4 @@ function separableConv2d_( return res as T; } -export const separableConv2d = op({separableConv2d_}); +export const separableConv2d = /* @__PURE__ */ op({separableConv2d_}); diff --git a/tfjs-core/src/ops/sigmoid.ts b/tfjs-core/src/ops/sigmoid.ts index 45d60d0c46..f1c550cd4d 100644 --- a/tfjs-core/src/ops/sigmoid.ts +++ b/tfjs-core/src/ops/sigmoid.ts @@ -43,4 +43,4 @@ function sigmoid_(x: T|TensorLike): T { return ENGINE.runKernel(Sigmoid, inputs as unknown as NamedTensorMap); } -export const sigmoid = op({sigmoid_}); +export const sigmoid = /* @__PURE__ */ op({sigmoid_}); diff --git a/tfjs-core/src/ops/sign.ts b/tfjs-core/src/ops/sign.ts index 33221a7762..0543b160c2 100644 --- a/tfjs-core/src/ops/sign.ts +++ b/tfjs-core/src/ops/sign.ts @@ -41,4 +41,4 @@ function sign_(x: T|TensorLike): T { const inputs: SignInputs = {x: $x}; return ENGINE.runKernel(Sign, inputs as unknown as NamedTensorMap); } -export const sign = op({sign_}); +export const sign = /* @__PURE__ */ op({sign_}); diff --git a/tfjs-core/src/ops/signal/frame.ts b/tfjs-core/src/ops/signal/frame.ts index 32549cdda9..56fed2e686 100644 --- a/tfjs-core/src/ops/signal/frame.ts +++ b/tfjs-core/src/ops/signal/frame.ts @@ -66,4 +66,4 @@ function frame_( return reshape(concat(output), [output.length, frameLength]); } -export const frame = op({frame_}); +export const frame = /* @__PURE__ */ op({frame_}); diff --git a/tfjs-core/src/ops/signal/hamming_window.ts b/tfjs-core/src/ops/signal/hamming_window.ts index 3cdcd85ea2..d0044b6fc1 100644 --- a/tfjs-core/src/ops/signal/hamming_window.ts +++ b/tfjs-core/src/ops/signal/hamming_window.ts @@ -34,4 +34,4 @@ import {cosineWindow} from '../signal_ops_util'; function hammingWindow_(windowLength: number): Tensor1D { return cosineWindow(windowLength, 0.54, 0.46); } -export const hammingWindow = op({hammingWindow_}); +export const hammingWindow = /* @__PURE__ */ op({hammingWindow_}); diff --git a/tfjs-core/src/ops/signal/hann_window.ts b/tfjs-core/src/ops/signal/hann_window.ts index a21603af2a..561de6237b 100644 --- a/tfjs-core/src/ops/signal/hann_window.ts +++ b/tfjs-core/src/ops/signal/hann_window.ts @@ -35,4 +35,4 @@ function hannWindow_(windowLength: number): Tensor1D { return cosineWindow(windowLength, 0.5, 0.5); } -export const hannWindow = op({hannWindow_}); +export const hannWindow = /* @__PURE__ */ op({hannWindow_}); diff --git a/tfjs-core/src/ops/signal/stft.ts b/tfjs-core/src/ops/signal/stft.ts index 23c99b2ea7..cf581a8423 100644 --- a/tfjs-core/src/ops/signal/stft.ts +++ b/tfjs-core/src/ops/signal/stft.ts @@ -51,4 +51,4 @@ function stft_( const windowedSignal = mul(framedSignal, windowFn(frameLength)); return rfft(windowedSignal, fftLength); } -export const stft = op({stft_}); +export const stft = /* @__PURE__ */ op({stft_}); diff --git a/tfjs-core/src/ops/sin.ts b/tfjs-core/src/ops/sin.ts index ef9532f3f9..1b4e9cf10c 100644 --- a/tfjs-core/src/ops/sin.ts +++ b/tfjs-core/src/ops/sin.ts @@ -43,4 +43,4 @@ function sin_(x: T|TensorLike): T { return ENGINE.runKernel(Sin, inputs as unknown as NamedTensorMap); } -export const sin = op({sin_}); +export const sin = /* @__PURE__ */ op({sin_}); diff --git a/tfjs-core/src/ops/sinh.ts b/tfjs-core/src/ops/sinh.ts index 108abfaea9..ef9f0b7d8c 100644 --- a/tfjs-core/src/ops/sinh.ts +++ b/tfjs-core/src/ops/sinh.ts @@ -42,4 +42,4 @@ function sinh_(x: T|TensorLike): T { return ENGINE.runKernel(Sinh, inputs as unknown as NamedTensorMap); } -export const sinh = op({sinh_}); +export const sinh = /* @__PURE__ */ op({sinh_}); diff --git a/tfjs-core/src/ops/slice.ts b/tfjs-core/src/ops/slice.ts index 46ae2daf7c..cf5e4d3b5c 100644 --- a/tfjs-core/src/ops/slice.ts +++ b/tfjs-core/src/ops/slice.ts @@ -75,4 +75,4 @@ function slice_>( attrs as unknown as NamedAttrMap); } -export const slice = op({slice_}); +export const slice = /* @__PURE__ */ op({slice_}); diff --git a/tfjs-core/src/ops/slice1d.ts b/tfjs-core/src/ops/slice1d.ts index d4bb3e05f1..358489e36d 100644 --- a/tfjs-core/src/ops/slice1d.ts +++ b/tfjs-core/src/ops/slice1d.ts @@ -36,4 +36,4 @@ function slice1d_( `slice1d expects a rank-1 tensor, but got a rank-${$x.rank} tensor`); return slice($x, [begin], [size]); } -export const slice1d = op({slice1d_}); +export const slice1d = /* @__PURE__ */ op({slice1d_}); diff --git a/tfjs-core/src/ops/slice2d.ts b/tfjs-core/src/ops/slice2d.ts index 569f76bf31..bb3d2369af 100644 --- a/tfjs-core/src/ops/slice2d.ts +++ b/tfjs-core/src/ops/slice2d.ts @@ -37,4 +37,4 @@ function slice2d_( `slice2d expects a rank-2 tensor, but got a rank-${$x.rank} tensor`); return slice($x, begin, size); } -export const slice2d = op({slice2d_}); +export const slice2d = /* @__PURE__ */ op({slice2d_}); diff --git a/tfjs-core/src/ops/slice3d.ts b/tfjs-core/src/ops/slice3d.ts index 5cc276637f..73c39acc7b 100644 --- a/tfjs-core/src/ops/slice3d.ts +++ b/tfjs-core/src/ops/slice3d.ts @@ -37,4 +37,4 @@ function slice3d_( `slice3d expects a rank-3 tensor, but got a rank-${$x.rank} tensor`); return slice($x, begin, size); } -export const slice3d = op({slice3d_}); +export const slice3d = /* @__PURE__ */ op({slice3d_}); diff --git a/tfjs-core/src/ops/slice4d.ts b/tfjs-core/src/ops/slice4d.ts index 3815dc7c13..cb50be36e0 100644 --- a/tfjs-core/src/ops/slice4d.ts +++ b/tfjs-core/src/ops/slice4d.ts @@ -37,4 +37,4 @@ function slice4d_( `slice4d expects a rank-4 tensor, but got a rank-${$x.rank} tensor`); return slice($x, begin, size); } -export const slice4d = op({slice4d_}); +export const slice4d = /* @__PURE__ */ op({slice4d_}); diff --git a/tfjs-core/src/ops/softmax.ts b/tfjs-core/src/ops/softmax.ts index ab996e7d01..55c646a013 100644 --- a/tfjs-core/src/ops/softmax.ts +++ b/tfjs-core/src/ops/softmax.ts @@ -66,4 +66,4 @@ function softmax_(logits: T|TensorLike, dim = -1): T { attrs as unknown as NamedAttrMap); } -export const softmax = op({softmax_}); +export const softmax = /* @__PURE__ */ op({softmax_}); diff --git a/tfjs-core/src/ops/softplus.ts b/tfjs-core/src/ops/softplus.ts index 0e4a7245ae..e0604b5c31 100644 --- a/tfjs-core/src/ops/softplus.ts +++ b/tfjs-core/src/ops/softplus.ts @@ -42,4 +42,4 @@ function softplus_(x: T|TensorLike): T { const inputs: SoftplusInputs = {x: $x}; return ENGINE.runKernel(Softplus, inputs as unknown as NamedTensorMap); } -export const softplus = op({softplus_}); +export const softplus = /* @__PURE__ */ op({softplus_}); diff --git a/tfjs-core/src/ops/space_to_batch_nd.ts b/tfjs-core/src/ops/space_to_batch_nd.ts index 7949980556..9b7b44ffe6 100644 --- a/tfjs-core/src/ops/space_to_batch_nd.ts +++ b/tfjs-core/src/ops/space_to_batch_nd.ts @@ -112,4 +112,4 @@ function spaceToBatchND_( attrs as unknown as NamedAttrMap); } -export const spaceToBatchND = op({spaceToBatchND_}); +export const spaceToBatchND = /* @__PURE__ */ op({spaceToBatchND_}); diff --git a/tfjs-core/src/ops/sparse/sparse_fill_empty_rows.ts b/tfjs-core/src/ops/sparse/sparse_fill_empty_rows.ts index 96665e8055..db258c3c8e 100644 --- a/tfjs-core/src/ops/sparse/sparse_fill_empty_rows.ts +++ b/tfjs-core/src/ops/sparse/sparse_fill_empty_rows.ts @@ -124,4 +124,4 @@ function sparseFillEmptyRows_( }; } -export const sparseFillEmptyRows = op({sparseFillEmptyRows_}); +export const sparseFillEmptyRows = /* @__PURE__ */ op({sparseFillEmptyRows_}); diff --git a/tfjs-core/src/ops/sparse/sparse_reshape.ts b/tfjs-core/src/ops/sparse/sparse_reshape.ts index 6e114f79c2..5bd750c7ea 100644 --- a/tfjs-core/src/ops/sparse/sparse_reshape.ts +++ b/tfjs-core/src/ops/sparse/sparse_reshape.ts @@ -89,4 +89,4 @@ function sparseReshape_( return {outputIndices: result[0], outputShape: result[1]}; } -export const sparseReshape = op({sparseReshape_}); +export const sparseReshape = /* @__PURE__ */ op({sparseReshape_}); diff --git a/tfjs-core/src/ops/sparse/sparse_segment_mean.ts b/tfjs-core/src/ops/sparse/sparse_segment_mean.ts index b0ea6b3c53..df5bedc8bd 100644 --- a/tfjs-core/src/ops/sparse/sparse_segment_mean.ts +++ b/tfjs-core/src/ops/sparse/sparse_segment_mean.ts @@ -87,4 +87,4 @@ function sparseSegmentMean_( return ENGINE.runKernel(SparseSegmentMean, inputs as {}); } -export const sparseSegmentMean = op({sparseSegmentMean_}); +export const sparseSegmentMean = /* @__PURE__ */ op({sparseSegmentMean_}); diff --git a/tfjs-core/src/ops/sparse/sparse_segment_sum.ts b/tfjs-core/src/ops/sparse/sparse_segment_sum.ts index 9434b7dcdf..23d64f1e55 100644 --- a/tfjs-core/src/ops/sparse/sparse_segment_sum.ts +++ b/tfjs-core/src/ops/sparse/sparse_segment_sum.ts @@ -87,4 +87,4 @@ function sparseSegmentSum_( return ENGINE.runKernel(SparseSegmentSum, inputs as {}); } -export const sparseSegmentSum = op({sparseSegmentSum_}); +export const sparseSegmentSum = /* @__PURE__ */ op({sparseSegmentSum_}); diff --git a/tfjs-core/src/ops/sparse_to_dense.ts b/tfjs-core/src/ops/sparse_to_dense.ts index c4752fc10f..e7c22898d0 100644 --- a/tfjs-core/src/ops/sparse_to_dense.ts +++ b/tfjs-core/src/ops/sparse_to_dense.ts @@ -93,4 +93,4 @@ function sparseToDense_( attrs as unknown as NamedAttrMap); } -export const sparseToDense = op({sparseToDense_}); +export const sparseToDense = /* @__PURE__ */ op({sparseToDense_}); diff --git a/tfjs-core/src/ops/spectral/fft.ts b/tfjs-core/src/ops/spectral/fft.ts index b4c744e3f7..287be88015 100644 --- a/tfjs-core/src/ops/spectral/fft.ts +++ b/tfjs-core/src/ops/spectral/fft.ts @@ -50,4 +50,4 @@ function fft_(input: Tensor): Tensor { return ENGINE.runKernel(FFT, inputs as unknown as NamedTensorMap); } -export const fft = op({fft_}); +export const fft = /* @__PURE__ */ op({fft_}); diff --git a/tfjs-core/src/ops/spectral/ifft.ts b/tfjs-core/src/ops/spectral/ifft.ts index 20981af580..541c7c42e7 100644 --- a/tfjs-core/src/ops/spectral/ifft.ts +++ b/tfjs-core/src/ops/spectral/ifft.ts @@ -50,4 +50,4 @@ function ifft_(input: Tensor): Tensor { return ENGINE.runKernel(IFFT, inputs as unknown as NamedTensorMap); } -export const ifft = op({ifft_}); +export const ifft = /* @__PURE__ */ op({ifft_}); diff --git a/tfjs-core/src/ops/spectral/irfft.ts b/tfjs-core/src/ops/spectral/irfft.ts index 39c2aec086..6f457b61f8 100644 --- a/tfjs-core/src/ops/spectral/irfft.ts +++ b/tfjs-core/src/ops/spectral/irfft.ts @@ -83,4 +83,4 @@ function irfft_(input: Tensor): Tensor { return ret; } -export const irfft = op({irfft_}); +export const irfft = /* @__PURE__ */ op({irfft_}); diff --git a/tfjs-core/src/ops/spectral/rfft.ts b/tfjs-core/src/ops/spectral/rfft.ts index a8ac6dca31..6b9706910f 100644 --- a/tfjs-core/src/ops/spectral/rfft.ts +++ b/tfjs-core/src/ops/spectral/rfft.ts @@ -96,4 +96,4 @@ function rfft_(input: Tensor, fftLength?: number): Tensor { complex(realComplexConjugate[0], imagComplexConjugate[0]), outputShape); } -export const rfft = op({rfft_}); +export const rfft = /* @__PURE__ */ op({rfft_}); diff --git a/tfjs-core/src/ops/split.ts b/tfjs-core/src/ops/split.ts index 32bb019686..e67d829dc1 100644 --- a/tfjs-core/src/ops/split.ts +++ b/tfjs-core/src/ops/split.ts @@ -71,4 +71,4 @@ function split_( attr as unknown as NamedAttrMap) as unknown as T[]; } -export const split = op({split_}); +export const split = /* @__PURE__ */ op({split_}); diff --git a/tfjs-core/src/ops/sqrt.ts b/tfjs-core/src/ops/sqrt.ts index 08fa6106d7..f37c6925ea 100644 --- a/tfjs-core/src/ops/sqrt.ts +++ b/tfjs-core/src/ops/sqrt.ts @@ -43,4 +43,4 @@ function sqrt_(x: T|TensorLike): T { return ENGINE.runKernel(Sqrt, inputs as unknown as NamedTensorMap); } -export const sqrt = op({sqrt_}); +export const sqrt = /* @__PURE__ */ op({sqrt_}); diff --git a/tfjs-core/src/ops/square.ts b/tfjs-core/src/ops/square.ts index a879463a97..8b275e1dce 100644 --- a/tfjs-core/src/ops/square.ts +++ b/tfjs-core/src/ops/square.ts @@ -39,4 +39,4 @@ function square_(x: T|TensorLike): T { return ENGINE.runKernel('Square', {x: $x}, attrs); } -export const square = op({square_}); +export const square = /* @__PURE__ */ op({square_}); diff --git a/tfjs-core/src/ops/squared_difference.ts b/tfjs-core/src/ops/squared_difference.ts index c251cc1873..1c145801e3 100644 --- a/tfjs-core/src/ops/squared_difference.ts +++ b/tfjs-core/src/ops/squared_difference.ts @@ -65,4 +65,4 @@ function squaredDifference_( SquaredDifference, inputs as unknown as NamedTensorMap, attrs); } -export const squaredDifference = op({squaredDifference_}); +export const squaredDifference = /* @__PURE__ */ op({squaredDifference_}); diff --git a/tfjs-core/src/ops/squeeze.ts b/tfjs-core/src/ops/squeeze.ts index 15beff87bc..009a5d91ca 100644 --- a/tfjs-core/src/ops/squeeze.ts +++ b/tfjs-core/src/ops/squeeze.ts @@ -43,4 +43,4 @@ function squeeze_(x: Tensor|TensorLike, axis?: number[]): T { return reshape($x, squeezeShape($x.shape, axis).newShape) as T; } -export const squeeze = op({squeeze_}); +export const squeeze = /* @__PURE__ */ op({squeeze_}); diff --git a/tfjs-core/src/ops/stack.ts b/tfjs-core/src/ops/stack.ts index 199c97ac9a..9cc1a44b39 100644 --- a/tfjs-core/src/ops/stack.ts +++ b/tfjs-core/src/ops/stack.ts @@ -62,4 +62,4 @@ function stack_( attrs as unknown as NamedAttrMap); } -export const stack = op({stack_}); +export const stack = /* @__PURE__ */ op({stack_}); diff --git a/tfjs-core/src/ops/step.ts b/tfjs-core/src/ops/step.ts index 26c9100262..2b30da7081 100644 --- a/tfjs-core/src/ops/step.ts +++ b/tfjs-core/src/ops/step.ts @@ -48,4 +48,4 @@ function step_(x: T|TensorLike, alpha = 0.0): T { Step, inputs as unknown as NamedTensorMap, attrs as unknown as NamedAttrMap); } -export const step = op({step_}); +export const step = /* @__PURE__ */ op({step_}); diff --git a/tfjs-core/src/ops/strided_slice.ts b/tfjs-core/src/ops/strided_slice.ts index 4a7d24f701..22165786e5 100644 --- a/tfjs-core/src/ops/strided_slice.ts +++ b/tfjs-core/src/ops/strided_slice.ts @@ -81,4 +81,4 @@ function stridedSlice_( attrs as unknown as NamedAttrMap); } -export const stridedSlice = op({stridedSlice_}); +export const stridedSlice = /* @__PURE__ */ op({stridedSlice_}); diff --git a/tfjs-core/src/ops/string/string_n_grams.ts b/tfjs-core/src/ops/string/string_n_grams.ts index 0a0ae1eadc..b17df03b33 100644 --- a/tfjs-core/src/ops/string/string_n_grams.ts +++ b/tfjs-core/src/ops/string/string_n_grams.ts @@ -96,4 +96,4 @@ function stringNGrams_( return {nGrams: result[0], nGramsSplits: result[1]}; } -export const stringNGrams = op({stringNGrams_}); +export const stringNGrams = /* @__PURE__ */ op({stringNGrams_}); diff --git a/tfjs-core/src/ops/string/string_split.ts b/tfjs-core/src/ops/string/string_split.ts index ccf0747e41..7a4ef9d9d6 100644 --- a/tfjs-core/src/ops/string/string_split.ts +++ b/tfjs-core/src/ops/string/string_split.ts @@ -78,4 +78,4 @@ function stringSplit_( return {indices: result[0], values: result[1], shape: result[2]}; } -export const stringSplit = op({stringSplit_}); +export const stringSplit = /* @__PURE__ */ op({stringSplit_}); diff --git a/tfjs-core/src/ops/string/string_to_hash_bucket_fast.ts b/tfjs-core/src/ops/string/string_to_hash_bucket_fast.ts index a5624a9992..acac976c34 100644 --- a/tfjs-core/src/ops/string/string_to_hash_bucket_fast.ts +++ b/tfjs-core/src/ops/string/string_to_hash_bucket_fast.ts @@ -57,4 +57,4 @@ function stringToHashBucketFast_( return ENGINE.runKernel(StringToHashBucketFast, inputs as {}, attrs as {}); } -export const stringToHashBucketFast = op({stringToHashBucketFast_}); +export const stringToHashBucketFast = /* @__PURE__ */ op({stringToHashBucketFast_}); diff --git a/tfjs-core/src/ops/sub.ts b/tfjs-core/src/ops/sub.ts index 06943e739f..57902c7045 100644 --- a/tfjs-core/src/ops/sub.ts +++ b/tfjs-core/src/ops/sub.ts @@ -57,4 +57,4 @@ function sub_(a: Tensor|TensorLike, b: Tensor|TensorLike): T { return ENGINE.runKernel(Sub, inputs as unknown as NamedTensorMap); } -export const sub = op({sub_}); +export const sub = /* @__PURE__ */ op({sub_}); diff --git a/tfjs-core/src/ops/sum.ts b/tfjs-core/src/ops/sum.ts index cf1dd4c5da..4d65163a99 100644 --- a/tfjs-core/src/ops/sum.ts +++ b/tfjs-core/src/ops/sum.ts @@ -70,4 +70,4 @@ function sum_( attrs as unknown as NamedAttrMap); } -export const sum = op({sum_}); +export const sum = /* @__PURE__ */ op({sum_}); diff --git a/tfjs-core/src/ops/tan.ts b/tfjs-core/src/ops/tan.ts index d8f5b09c45..187ce1838a 100644 --- a/tfjs-core/src/ops/tan.ts +++ b/tfjs-core/src/ops/tan.ts @@ -43,4 +43,4 @@ function tan_(x: T|TensorLike): T { return ENGINE.runKernel(Tan, inputs as unknown as NamedTensorMap); } -export const tan = op({tan_}); +export const tan = /* @__PURE__ */ op({tan_}); diff --git a/tfjs-core/src/ops/tanh.ts b/tfjs-core/src/ops/tanh.ts index 57efb332f7..499240151d 100644 --- a/tfjs-core/src/ops/tanh.ts +++ b/tfjs-core/src/ops/tanh.ts @@ -43,4 +43,4 @@ function tanh_(x: T|TensorLike): T { return ENGINE.runKernel(Tanh, inputs as unknown as NamedTensorMap); } -export const tanh = op({tanh_}); +export const tanh = /* @__PURE__ */ op({tanh_}); diff --git a/tfjs-core/src/ops/tile.ts b/tfjs-core/src/ops/tile.ts index 3688e653e4..737dd0c45b 100644 --- a/tfjs-core/src/ops/tile.ts +++ b/tfjs-core/src/ops/tile.ts @@ -66,4 +66,4 @@ function tile_(x: T|TensorLike, reps: number[]): T { attrs as unknown as NamedAttrMap); } -export const tile = op({tile_}); +export const tile = /* @__PURE__ */ op({tile_}); diff --git a/tfjs-core/src/ops/topk.ts b/tfjs-core/src/ops/topk.ts index b03108caf0..f184dcb4b6 100644 --- a/tfjs-core/src/ops/topk.ts +++ b/tfjs-core/src/ops/topk.ts @@ -77,4 +77,4 @@ function topk_( return {values, indices}; } -export const topk = op({topk_}); +export const topk = /* @__PURE__ */ op({topk_}); diff --git a/tfjs-core/src/ops/transpose.ts b/tfjs-core/src/ops/transpose.ts index 61df9ace5f..1bf5d1bce5 100644 --- a/tfjs-core/src/ops/transpose.ts +++ b/tfjs-core/src/ops/transpose.ts @@ -97,4 +97,4 @@ function transpose_( attrs as unknown as NamedAttrMap); } -export const transpose = op({transpose_}); +export const transpose = /* @__PURE__ */ op({transpose_}); diff --git a/tfjs-core/src/ops/truncated_normal.ts b/tfjs-core/src/ops/truncated_normal.ts index 06a21362cc..22541b9fa8 100644 --- a/tfjs-core/src/ops/truncated_normal.ts +++ b/tfjs-core/src/ops/truncated_normal.ts @@ -59,4 +59,4 @@ function truncatedNormal_( return res.toTensor(); } -export const truncatedNormal = op({truncatedNormal_}); +export const truncatedNormal = /* @__PURE__ */ op({truncatedNormal_}); diff --git a/tfjs-core/src/ops/unique.ts b/tfjs-core/src/ops/unique.ts index 3a850428dc..6ea1cf91a5 100644 --- a/tfjs-core/src/ops/unique.ts +++ b/tfjs-core/src/ops/unique.ts @@ -88,4 +88,4 @@ function unique_( return {values, indices}; } -export const unique = op({unique_}); +export const unique = /* @__PURE__ */ op({unique_}); diff --git a/tfjs-core/src/ops/unsorted_segment_sum.ts b/tfjs-core/src/ops/unsorted_segment_sum.ts index 810d434e9d..8e25c77376 100644 --- a/tfjs-core/src/ops/unsorted_segment_sum.ts +++ b/tfjs-core/src/ops/unsorted_segment_sum.ts @@ -59,4 +59,4 @@ function unsortedSegmentSum_( attrs as unknown as NamedAttrMap); } -export const unsortedSegmentSum = op({unsortedSegmentSum_}); +export const unsortedSegmentSum = /* @__PURE__ */ op({unsortedSegmentSum_}); diff --git a/tfjs-core/src/ops/unstack.ts b/tfjs-core/src/ops/unstack.ts index 85be30ac52..c578e00014 100644 --- a/tfjs-core/src/ops/unstack.ts +++ b/tfjs-core/src/ops/unstack.ts @@ -55,4 +55,4 @@ function unstack_(x: Tensor|TensorLike, axis = 0): Tensor[] { attrs as unknown as NamedAttrMap); } -export const unstack = op({unstack_}); +export const unstack = /* @__PURE__ */ op({unstack_}); diff --git a/tfjs-core/src/ops/where.ts b/tfjs-core/src/ops/where.ts index f0e92ec4f2..2d5eea32a9 100644 --- a/tfjs-core/src/ops/where.ts +++ b/tfjs-core/src/ops/where.ts @@ -71,4 +71,4 @@ function where_( return ENGINE.runKernel(Select, inputs as unknown as NamedTensorMap); } -export const where = op({where_}); +export const where = /* @__PURE__ */ op({where_}); diff --git a/tfjs-core/src/ops/zeros_like.ts b/tfjs-core/src/ops/zeros_like.ts index a3908d7e9e..cb77117ecc 100644 --- a/tfjs-core/src/ops/zeros_like.ts +++ b/tfjs-core/src/ops/zeros_like.ts @@ -42,4 +42,4 @@ function zerosLike_(x: T|TensorLike): T { const inputs: ZerosLikeInputs = {x: $x}; return ENGINE.runKernel(ZerosLike, inputs as unknown as NamedTensorMap); } -export const zerosLike = op({zerosLike_}); +export const zerosLike = /* @__PURE__ */ op({zerosLike_});