Open haoyunfeix opened 4 years ago
LOG: '0.327' LOG: '0.260' LOG: '0.265' LOG: '0.381' LOG: '0.325' LOG: '0.387' LOG: '0.313' LOG: '0.508' LOG: '0.845' LOG: '0.487' LOG: '0.818' LOG: '0.664' LOG: '0.650' LOG: '0.807' LOG: '0.239' LOG: '0.550' LOG: '0.412' LOG: '0.813' LOG: '0.637' LOG: '0.260' LOG: '0.525' LOG: '0.328' LOG: '0.828' LOG: '0.508' LOG: '0.324' LOG: '0.474' LOG: '0.443' LOG: '1.512' LOG: '1.851' LOG: '0.907' LOG: '1.364' LOG: '0.844' LOG: '1.321' LOG: '0.842' LOG: '1.611' LOG: '0.235' LOG: '0.222' LOG: '0.229' LOG: '0.181' LOG: '0.304' LOG: '0.216' LOG: '0.307' LOG: '0.245' LOG: '0.222' LOG: '0.533' LOG: '0.245' LOG: '0.218' LOG: '0.316' LOG: '0.226' LOG: '0.370' LOG: '0.249' LOG: '0.249' LOG: '0.225' LOG: '0.218' LOG: '0.215' LOG: '0.235' LOG: '0.307' LOG: '0.232' LOG: '0.227' LOG: '0.217' LOG: '0.245' LOG: '0.267' LOG: '0.220' LOG: '0.221' LOG: '0.259' LOG: '0.312' LOG: '0.235' LOG: '0.202' LOG: '0.261' LOG: '0.267' LOG: '0.251' LOG: '0.230' LOG: '0.573' LOG: '0.273' LOG: '0.237' LOG: '0.326' LOG: '0.328' LOG: '0.350' LOG: '0.425' LOG: '0.282' LOG: '0.347' LOG: '0.328' LOG: '0.389' LOG: '0.770' LOG: '0.241' LOG: '0.807' LOG: '0.485' LOG: '1.360' LOG: '2.524' LOG: '0.923' LOG: '0.790' LOG: '0.792' LOG: '0.797' LOG: '1.609' LOG: '0.524' LOG: '1.379' LOG: '0.811' LOG: '2.511' LOG: '1.435' LOG: '0.475' LOG: '1.279' LOG: '0.724' LOG: '2.256' LOG: '1.239' LOG: '0.453' LOG: '1.278' LOG: '1.151' LOG: '4.599' LOG: '4.584' LOG: '1.618' LOG: '8.857' LOG: '1.335' LOG: '7.773' LOG: '2.438' LOG: '10.843' LOG: '0.198' LOG: '0.260' LOG: '0.306' LOG: '0.385' LOG: '0.234' LOG: '0.297' LOG: '0.371' LOG: '0.532' LOG: '0.375' LOG: '0.792' LOG: '0.184' LOG: '0.214' LOG: '0.278' LOG: '0.317' LOG: '0.794' LOG: '0.181' LOG: '0.207' LOG: '0.247' LOG: '0.274' LOG: '0.280' LOG: '0.281' LOG: '0.281' LOG: '0.292' LOG: '0.280' LOG: '0.214' LOG: '0.244' LOG: '0.276' LOG: '0.285' LOG: '0.335' LOG: '0.328' LOG: '0.220' LOG: '0.270' LOG: '0.326' LOG: '0.321' LOG: '0.476' LOG: '0.459' LOG: '0.316' LOG: '0.757' LOG: '0.695' LOG: '0.249' LOG: '0.255' LOG: '0.261' LOG: '0.299' LOG: '0.446' LOG: '0.992'
LOG: '0.298' LOG: '0.346' LOG: '0.598' LOG: '1.364' LOG: '0.525' LOG: '1.646' LOG: '1.076' LOG: '1.888' LOG: '3.104' LOG: '1.187' LOG: '1.078' LOG: '1.126' LOG: '1.170' LOG: '1.964' LOG: '0.638' LOG: '1.770' LOG: '1.045' LOG: '3.106' LOG: '1.828' LOG: '0.593' LOG: '1.924' LOG: '1.123' LOG: '2.836' LOG: '1.585' LOG: '0.556' LOG: '1.932' LOG: '1.915' LOG: '5.236' LOG: '6.851' LOG: '1.979' LOG: '4.647' LOG: '1.935' LOG: '4.127' LOG: '1.426' LOG: '5.587' LOG: '0.202' LOG: '0.211' LOG: '0.269' LOG: '0.343' LOG: '0.229' LOG: '0.278' LOG: '0.479' LOG: '0.972' LOG: '0.646' LOG: '1.562' LOG: '0.228' LOG: '0.251' LOG: '0.287' LOG: '0.404' LOG: '1.527' LOG: '0.206' LOG: '0.220' LOG: '0.205' LOG: '0.222' LOG: '0.253' LOG: '0.289' LOG: '0.273' LOG: '0.434' LOG: '0.348' LOG: '0.240' LOG: '0.264' LOG: '0.372' LOG: '0.342' LOG: '0.710' LOG: '0.598' LOG: '0.265' LOG: '0.330' LOG: '0.685' LOG: '0.566' LOG: '1.072' LOG: '0.855' LOG: '0.543' LOG: '1.754' LOG: '1.240' LOG: '0.321' LOG: '0.553' LOG: '0.355' LOG: '0.398' LOG: '0.883' LOG: '1.223'
LOG: '0.284' LOG: '0.351' LOG: '0.590' LOG: '1.263' LOG: '0.521' LOG: '1.658' LOG: '1.073' LOG: '2.105' LOG: '3.120' LOG: '1.136' LOG: '1.121' LOG: '1.177' LOG: '1.227' LOG: '1.937' LOG: '0.612' LOG: '1.698' LOG: '1.015' LOG: '3.102' LOG: '1.838' LOG: '0.591' LOG: '1.570' LOG: '0.909' LOG: '2.814' LOG: '1.566' LOG: '0.554' LOG: '1.621' LOG: '1.718' LOG: '5.175' LOG: '6.805' LOG: '1.829' LOG: '4.638' LOG: '1.950' LOG: '4.126' LOG: '1.426' LOG: '5.579' LOG: '0.208' LOG: '0.208' LOG: '0.267' LOG: '0.337' LOG: '0.218' LOG: '0.276' LOG: '0.407' LOG: '0.822' LOG: '0.554' LOG: '1.553' LOG: '0.210' LOG: '0.253' LOG: '0.273' LOG: '0.394' LOG: '1.528' LOG: '0.207' LOG: '0.209' LOG: '0.216' LOG: '0.217' LOG: '0.253' LOG: '0.288' LOG: '0.276' LOG: '0.412' LOG: '0.358' LOG: '0.232' LOG: '0.263' LOG: '0.378' LOG: '0.331' LOG: '0.720' LOG: '0.570' LOG: '0.259' LOG: '0.331' LOG: '0.691' LOG: '0.526' LOG: '1.072' LOG: '0.858' LOG: '0.546' LOG: '1.756' LOG: '1.350' LOG: '0.310' LOG: '0.636' LOG: '0.329' LOG: '0.613' LOG: '0.977' LOG: '1.749'
"name": "@tensorflow/tfjs-backend-webgpu", "version": "0.0.1-alpha.4", "main": "dist/tf-backend-webgpu.node.js", "types": "dist/index.d.ts", "jsnext:main": "dist/index.js", "module": "dist/index.js", "unpkg": "dist/tf-webgpu.min.js", "jsdelivr": "dist/tf-webgpu.min.js", "scripts": { "publish-local": "rimraf dist/ && yarn build && rollup -c && yalc push", "publish-npm": "./scripts/publish-npm.sh", "bundle": "rollup -c", "build-backend-webgl": "cd ../tfjs-backend-webgl && yarn && yarn build", "build-backend-cpu": "cd ../tfjs-backend-cpu && yarn && yarn build", "build-core": "cd ../tfjs-core && yarn && yarn build", "build-deps": "yarn build-core && yarn build-backend-cpu && yarn build-backend-webgl", "build": "yarn build-deps && rimraf dist/ && tsc && yarn bundle", "build-npm": "yarn build && rollup -c", "link-local": "yalc link", "unlink-local": "yalc remove", "lint": "tslint -p . -t verbose", "test": "yarn && yarn build-deps && karma start --browsers=chrome_webgpu --excludeTest='src/benchmark_ops_test.ts'", "test-ci": "./scripts/test-ci.sh", "benchmark": "yarn build && karma start --grep=benchmark --browsers=chrome_webgpu" }, "license": "Apache-2.0", "devDependencies": { "@tensorflow/tfjs-backend-webgl": "link:../tfjs-backend-webgl", "@tensorflow/tfjs-backend-cpu": "link:../tfjs-backend-cpu", "@babel/polyfill": "^7.8.7", "@open-wc/karma-esm": "^2.13.23", "@tensorflow/tfjs-core": "link:../tfjs-core", "@types/jasmine": "~2.5.53", "clang-format": "~1.2.2", "http-server": "~0.10.0", "jasmine-core": "~3.1.0", "karma": "~4.2.0", "karma-browserstack-launcher": "~1.4.0", "karma-chrome-launcher": "~2.2.0", "karma-firefox-launcher": "~1.1.0", "karma-commonjs": "^1.0.0", "karma-jasmine": "~1.1.1", "karma-typescript": "~5.0.2", "karma-typescript-es6-transform": "^5.0.2", "rimraf": "~2.6.2", "rollup": "~1.26.3", "rollup-plugin-commonjs": "~10.1.0", "rollup-plugin-node-resolve": "~5.2.0", "rollup-plugin-terser": "~5.1.1", "rollup-plugin-typescript2": "~0.25.2", "tslint": "~5.20.0", "tslint-no-circular-imports": "~0.7.0", "typescript": "3.5.3", "yalc": "~1.0.0-pre.21" }, "dependencies": { "@webgpu/glslang": "0.0.12", "@webgpu/types": "0.0.18" }, "peerDependencies": { "@tensorflow/tfjs-core": "link:../tfjs-core" } }
webgl uhd vs webgpu amd LOG: '0.313' LOG: '0.357' LOG: '0.495' LOG: '0.953' LOG: '0.465' LOG: '1.112' LOG: '0.649' LOG: '1.570' LOG: '3.001' LOG: '0.970' LOG: '0.441' LOG: '0.479' LOG: '0.554' LOG: '1.614' LOG: '0.616' LOG: '1.615' LOG: '0.901' LOG: '2.953' LOG: '1.596' LOG: '0.600' LOG: '1.455' LOG: '0.836' LOG: '2.720' LOG: '1.477' LOG: '0.564' LOG: '1.447' LOG: '1.459' LOG: '3.481' LOG: '3.337' LOG: '1.158' LOG: '3.180' LOG: '1.133' LOG: '3.537' LOG: '1.187' LOG: '4.589' LOG: '0.161' LOG: '0.231' LOG: '0.235' LOG: '0.336' LOG: '0.230' LOG: '0.237' LOG: '0.325' LOG: '0.464' LOG: '0.331' LOG: '0.724' LOG: '0.231' LOG: '0.226' LOG: '0.230' LOG: '0.244' LOG: '0.699' LOG: '0.261' LOG: '0.237' LOG: '0.237' LOG: '0.236' LOG: '0.230' LOG: '0.238' LOG: '0.229' LOG: '0.309' LOG: '0.314' LOG: '0.236' LOG: '0.238' LOG: '0.286' LOG: '0.240' LOG: '0.406' LOG: '0.347' LOG: '0.229' LOG: '0.240' LOG: '0.347' LOG: '0.335' LOG: '0.589' LOG: '0.505' LOG: '0.335' LOG: '0.905' LOG: '0.745' LOG: '0.234' LOG: '0.346' LOG: '0.274' LOG: '0.344' LOG: '0.493' LOG: '0.710' LOG: '0.370' LOG: '0.251' LOG: '0.361' LOG: '0.464' LOG: '0.310' LOG: '0.493' LOG: '0.296' LOG: '0.672' LOG: '1.480' LOG: '0.610' LOG: '1.017' LOG: '1.035' LOG: '1.034' LOG: '1.061' LOG: '0.292' LOG: '0.617' LOG: '0.416' LOG: '1.004' LOG: '0.692' LOG: '0.313' LOG: '0.581' LOG: '0.408' LOG: '0.824' LOG: '0.566' LOG: '0.399' LOG: '0.483' LOG: '0.847' LOG: '1.821' LOG: '1.003' LOG: '0.844' LOG: '1.387' LOG: '0.446' LOG: '1.385' LOG: '0.549' LOG: '1.713' LOG: '0.287' LOG: '0.332' LOG: '0.205' LOG: '0.277' LOG: '0.245' LOG: '0.368' LOG: '0.267' LOG: '0.269' LOG: '0.257' LOG: '0.410' LOG: '0.281' LOG: '0.289' LOG: '0.334' LOG: '0.212' LOG: '0.404' LOG: '0.279' LOG: '0.278' LOG: '0.278' LOG: '0.191' LOG: '0.301' LOG: '0.335' LOG: '0.335' LOG: '0.250' LOG: '0.285' LOG: '0.310' LOG: '0.347' LOG: '0.236' LOG: '0.218' LOG: '0.202' LOG: '0.286' LOG: '0.341' LOG: '0.220' LOG: '0.196' LOG: '0.276' LOG: '0.268' LOG: '0.298' LOG: '0.272' LOG: '0.414' LOG: '0.434' LOG: '0.370' LOG: '0.239' LOG: '0.184' LOG: '0.274' LOG: '0.702' LOG: '1.016'