diff --git a/js/web/lib/wasm/jsep/webgpu/ops/unary-op.ts b/js/web/lib/wasm/jsep/webgpu/ops/unary-op.ts index ea904fff21b48..2b390e4e633c5 100644 --- a/js/web/lib/wasm/jsep/webgpu/ops/unary-op.ts +++ b/js/web/lib/wasm/jsep/webgpu/ops/unary-op.ts @@ -259,6 +259,7 @@ export const tan = (context: ComputeContext): void => { }; export const tanh = (context: ComputeContext): void => { + // TODO: revisit after https://github.com/gpuweb/gpuweb/issues/4458 is resolved context.compute(createElementwiseProgramInfo( context.inputs[0], 'Tanh', a => `sign(${a}) * (1 - exp(-2 * abs(${a}))) / (1 + exp(-2 * abs(${a})))`)); };