tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

elementwise-unary.https.any.js (661B)


      1 // META: title=validation tests for WebNN API element-wise unary operations
      2 // META: global=window
      3 // META: variant=?cpu
      4 // META: variant=?gpu
      5 // META: variant=?npu
      6 // META: script=../resources/utils_validation.js
      7 
      8 'use strict';
      9 
     10 const kElementwiseUnaryOperators = [
     11  'abs', 'ceil', 'cos', 'erf', 'exp', 'floor', 'identity', 'log', 'neg',
     12  'reciprocal', 'roundEven', 'sign', 'sin', 'sqrt', 'tan'
     13 ];
     14 
     15 kElementwiseUnaryOperators.forEach((operatorName) => {
     16  validateInputFromAnotherBuilder(operatorName);
     17 });
     18 
     19 const label = 'elementwise_unary_op';
     20 kElementwiseUnaryOperators.forEach((operatorName) => {
     21  validateSingleInputOperation(operatorName, label);
     22 });