From 3f849ade4d2558b3828d8a12f8e2eded70b57c23 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Tue, 31 Dec 2019 09:17:42 -0500 Subject: [PATCH 01/11] core --- tfjs-backend-webgpu/package.json | 4 ++-- tfjs-backend-webgpu/src/backend_webgpu.ts | 12 ++++-------- tfjs-backend-webgpu/yarn.lock | 14 +++----------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/tfjs-backend-webgpu/package.json b/tfjs-backend-webgpu/package.json index da0f26b6505..006dd3f03d2 100644 --- a/tfjs-backend-webgpu/package.json +++ b/tfjs-backend-webgpu/package.json @@ -20,7 +20,7 @@ }, "license": "Apache-2.0", "devDependencies": { - "@tensorflow/tfjs-core": "1.3.1", + "@tensorflow/tfjs-core": "link:../tfjs-core", "@types/jasmine": "~2.5.53", "clang-format": "~1.2.2", "http-server": "~0.10.0", @@ -48,6 +48,6 @@ "@webgpu/types": "0.0.18" }, "peerDependencies": { - "@tensorflow/tfjs-core": "1.3.1" + "@tensorflow/tfjs-core": "link:../tfjs-core" } } diff --git a/tfjs-backend-webgpu/src/backend_webgpu.ts b/tfjs-backend-webgpu/src/backend_webgpu.ts index 36caa78814b..4511158f425 100644 --- a/tfjs-backend-webgpu/src/backend_webgpu.ts +++ b/tfjs-backend-webgpu/src/backend_webgpu.ts @@ -20,15 +20,11 @@ import './flags_webgpu'; import {backend_util, DataStorage, DataType, engine, env, findBackend, KernelBackend, Rank, RecursiveArray, ShapeMap, slice_util, Tensor, Tensor2D, Tensor3D, Tensor4D, TimingInfo, util} from '@tensorflow/tfjs-core'; -// TODO(xing.xu): use FusedConv2DConfig from backend_util: -// https://github.com/tensorflow/tfjs/issues/2471 -// tslint:disable-next-line: no-imports-from-dist -import {FusedConv2DConfig} from '@tensorflow/tfjs-core/dist/ops/fused_util'; // TODO: Import reduce_util from backend_util with next release of core. -import {computeOptimalWindowSize} from '@tensorflow/tfjs-core/src/ops/reduce_util'; -// TODO: import sumOutType directly from '@tensorflow/tfjs-core' with next +import {computeOptimalWindowSize} from '@tensorflow/tfjs-core/dist/ops/reduce_util'; +// TODO: import sumOutType directly from '@tensorflow/tfjs-core' with next // release of core. -import {sumOutType} from '@tensorflow/tfjs-core/src/types'; +import {sumOutType} from '@tensorflow/tfjs-core/dist/types'; import {Glslang} from '@webgpu/glslang/dist/web-devel/glslang.onefile'; import {BufferManager} from './buffer_manager'; @@ -776,7 +772,7 @@ export class WebGPUBackend extends KernelBackend { fusedConv2d( {input, filter, convInfo, bias, activation, preluActivationWeights}: - FusedConv2DConfig): Tensor4D { + backend_util.FusedConv2DConfig): Tensor4D { const dataId = this.write(null /*values*/, convInfo.outShape, input.dtype); const output = engine().makeTensorFromDataId( dataId, convInfo.outShape, input.dtype, this); diff --git a/tfjs-backend-webgpu/yarn.lock b/tfjs-backend-webgpu/yarn.lock index 9fbbb1b6573..3371664f298 100644 --- a/tfjs-backend-webgpu/yarn.lock +++ b/tfjs-backend-webgpu/yarn.lock @@ -18,17 +18,9 @@ esutils "^2.0.2" js-tokens "^4.0.0" -"@tensorflow/tfjs-core@1.3.1": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-1.3.1.tgz#89e3253f320233120ee24d4ae62fca65c315580f" - integrity sha512-X4MKhpg1gLEZetKUMeQNW6diP3gbFFddeF6UT816sH8jOenX/8x2HnVmANpNnUxCTPhDniY3V9zhBWwbl13+Yg== - dependencies: - "@types/offscreencanvas" "~2019.3.0" - "@types/seedrandom" "2.4.27" - "@types/webgl-ext" "0.0.30" - "@types/webgl2" "0.0.4" - node-fetch "~2.1.2" - seedrandom "2.4.3" +"@tensorflow/tfjs-core@link:../tfjs-core": + version "0.0.0" + uid "" "@types/estree@*", "@types/estree@0.0.39": version "0.0.39" From 70da38d2ef8299f57a2070bb4d9e5302d754c892 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Tue, 31 Dec 2019 09:25:12 -0500 Subject: [PATCH 02/11] remove dist --- tfjs-backend-webgpu/src/backend_webgpu.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tfjs-backend-webgpu/src/backend_webgpu.ts b/tfjs-backend-webgpu/src/backend_webgpu.ts index 4511158f425..61a707886e1 100644 --- a/tfjs-backend-webgpu/src/backend_webgpu.ts +++ b/tfjs-backend-webgpu/src/backend_webgpu.ts @@ -20,11 +20,6 @@ import './flags_webgpu'; import {backend_util, DataStorage, DataType, engine, env, findBackend, KernelBackend, Rank, RecursiveArray, ShapeMap, slice_util, Tensor, Tensor2D, Tensor3D, Tensor4D, TimingInfo, util} from '@tensorflow/tfjs-core'; -// TODO: Import reduce_util from backend_util with next release of core. -import {computeOptimalWindowSize} from '@tensorflow/tfjs-core/dist/ops/reduce_util'; -// TODO: import sumOutType directly from '@tensorflow/tfjs-core' with next -// release of core. -import {sumOutType} from '@tensorflow/tfjs-core/dist/types'; import {Glslang} from '@webgpu/glslang/dist/web-devel/glslang.onefile'; import {BufferManager} from './buffer_manager'; @@ -831,7 +826,7 @@ export class WebGPUBackend extends KernelBackend { Tensor2D { const batchSize = x.shape[0]; const inSize = x.shape[1]; - const windowSize = computeOptimalWindowSize(inSize); + const windowSize = backend_util.computeOptimalWindowSize(inSize); const reduceInfo = {windowSize, inSize, batchSize}; const program = new ReduceProgram(reduceInfo, reduceType); const output = this.makeOutputArray(program.outputShape, dtype); @@ -862,7 +857,7 @@ export class WebGPUBackend extends KernelBackend { backend_util.computeOutAndReduceShapes(x.shape, axes); const reduceSize = util.sizeFromShape(reduceShape); const a2D = x.as2D(-1, reduceSize); - const outputDType = sumOutType(x.dtype); + const outputDType = backend_util.sumOutType(x.dtype); return this.reduce(a2D, 'sum', outputDType).reshape(outShape); } From 22e1141f75474c173478ad82d6490a77207c74e6 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Tue, 31 Dec 2019 09:30:21 -0500 Subject: [PATCH 03/11] import sumouttype --- tfjs-backend-webgpu/src/backend_webgpu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfjs-backend-webgpu/src/backend_webgpu.ts b/tfjs-backend-webgpu/src/backend_webgpu.ts index 61a707886e1..410f6d1ba7c 100644 --- a/tfjs-backend-webgpu/src/backend_webgpu.ts +++ b/tfjs-backend-webgpu/src/backend_webgpu.ts @@ -19,7 +19,7 @@ import './flags_webgpu'; -import {backend_util, DataStorage, DataType, engine, env, findBackend, KernelBackend, Rank, RecursiveArray, ShapeMap, slice_util, Tensor, Tensor2D, Tensor3D, Tensor4D, TimingInfo, util} from '@tensorflow/tfjs-core'; +import {backend_util, DataStorage, DataType, engine, env, findBackend, KernelBackend, Rank, RecursiveArray, ShapeMap, slice_util, sumOutType, Tensor, Tensor2D, Tensor3D, Tensor4D, TimingInfo, util} from '@tensorflow/tfjs-core'; import {Glslang} from '@webgpu/glslang/dist/web-devel/glslang.onefile'; import {BufferManager} from './buffer_manager'; @@ -857,7 +857,7 @@ export class WebGPUBackend extends KernelBackend { backend_util.computeOutAndReduceShapes(x.shape, axes); const reduceSize = util.sizeFromShape(reduceShape); const a2D = x.as2D(-1, reduceSize); - const outputDType = backend_util.sumOutType(x.dtype); + const outputDType = sumOutType(x.dtype); return this.reduce(a2D, 'sum', outputDType).reshape(outShape); } From d17f2d65c809fca416a4d10ed3a96d47d47ddea7 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Tue, 31 Dec 2019 09:39:07 -0500 Subject: [PATCH 04/11] exclude --- tfjs-backend-webgpu/src/backend_webgpu.ts | 3 ++- tfjs-backend-webgpu/src/setup_test.ts | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tfjs-backend-webgpu/src/backend_webgpu.ts b/tfjs-backend-webgpu/src/backend_webgpu.ts index 410f6d1ba7c..bb94516b726 100644 --- a/tfjs-backend-webgpu/src/backend_webgpu.ts +++ b/tfjs-backend-webgpu/src/backend_webgpu.ts @@ -1002,7 +1002,8 @@ export class WebGPUBackend extends KernelBackend { const program = new ResizeBilinearProgram(x.shape, newHeight, newWidth, alignCorners); - const output: Tensor4D = this.makeOutputArray(program.outputShape, x.dtype); + const output: Tensor4D = + this.makeOutputArray(program.outputShape, 'float32'); return this.compileAndRun(program, [x], output); } diff --git a/tfjs-backend-webgpu/src/setup_test.ts b/tfjs-backend-webgpu/src/setup_test.ts index 556d74bfe9a..dce10e40a0b 100644 --- a/tfjs-backend-webgpu/src/setup_test.ts +++ b/tfjs-backend-webgpu/src/setup_test.ts @@ -116,6 +116,7 @@ const TEST_FILTERS: TestFilter[] = [ 'broadcast 2D + 1D', // Actual != expected. 'upcasts when dtypes dont match', // Actual != expected. 'gradient', // square, sum not yet implemented. + 'divNoNan' // Equal not yet implemented. ] }, { @@ -177,18 +178,18 @@ const TEST_FILTERS: TestFilter[] = [ { include: 'resizeBilinear', excludes: [ - 'gradient', // Not yet implemented. + 'gradient', // Not yet implemented. + 'works for ints' // Actual != expected. ] }, {include: 'floor divide ', excludes: []}, { include: 'fused', excludes: [ - 'A x B', // fusedBatchMatMul not yet implemented. - 'A x B with elu', // elu not yet implemented. - 'A x B with elu and broadcasted bias', // elu not yet implemented. + 'A x B', // fusedBatchMatMul not yet implemented. + 'elu', // elu not yet implemented. 'A x B with bias only', // fusedBatchMatMul not yet implemented. - 'basic with elu', // elu not yet implemented. + 'basic with bias', // Actual != expected. 'gradient x=[2,3,3,1] f=[2,2,1,1] s=1 p=0', // conv2dDerInput not yet // implemented. 'gradient x=[2,3,3,1] f=[2,2,1,1] s=1 p=0 with bias', // conv2dDerInput From d3aa6e18004d2f9d500d6c2e23e20610b80a85d8 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 10:12:37 -0500 Subject: [PATCH 05/11] make tsconfig match exactly --- tfjs-backend-webgpu/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfjs-backend-webgpu/tsconfig.json b/tfjs-backend-webgpu/tsconfig.json index 1dd0670aac9..14e5bcd7106 100644 --- a/tfjs-backend-webgpu/tsconfig.json +++ b/tfjs-backend-webgpu/tsconfig.json @@ -7,7 +7,7 @@ "node_modules/" ], "compilerOptions": { - "outDir": "./dist", - "target": "es2017" + "esModuleInterop": true, + "outDir": "./dist" } } From 37f5ffebd8ee16b49c134f9c8755e8b49583d47f Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 10:24:40 -0500 Subject: [PATCH 06/11] add build --- tfjs-backend-webgpu/package.json | 16 +++++++------ tfjs-backend-webgpu/yarn.lock | 40 ++++++++++++++++---------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/tfjs-backend-webgpu/package.json b/tfjs-backend-webgpu/package.json index 006dd3f03d2..3f6ab0354e7 100644 --- a/tfjs-backend-webgpu/package.json +++ b/tfjs-backend-webgpu/package.json @@ -10,7 +10,9 @@ "scripts": { "publish-local": "rimraf dist/ && yarn build && rollup -c && yalc push", "publish-npm": "./scripts/publish-npm.sh", - "build": "tsc", + "build-core": "cd ../tfjs-core && yarn && yarn build", + "build": "yarn link-core-master && yarn build-core && rimraf dist/ && tsc", + "link-core-master": "./scripts/link-core-master.js && yarn", "link-local": "yalc link", "unlink-local": "yalc remove", "lint": "tslint -p . -t verbose", @@ -34,12 +36,12 @@ "karma-typescript-es6-transform": "^4.1.1", "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", + "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" }, diff --git a/tfjs-backend-webgpu/yarn.lock b/tfjs-backend-webgpu/yarn.lock index 3371664f298..a734e613744 100644 --- a/tfjs-backend-webgpu/yarn.lock +++ b/tfjs-backend-webgpu/yarn.lock @@ -3900,7 +3900,7 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-plugin-commonjs@10.1.0: +rollup-plugin-commonjs@~10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-10.1.0.tgz#417af3b54503878e084d127adf4d1caf8beb86fb" integrity sha512-jlXbjZSQg8EIeAAvepNwhJj++qJWNJw1Cl0YnOqKtP5Djx+fFGkp3WRh+W0ASCaFG5w1jhmzDxgu3SJuVxPF4Q== @@ -3911,7 +3911,7 @@ rollup-plugin-commonjs@10.1.0: resolve "^1.11.0" rollup-pluginutils "^2.8.1" -rollup-plugin-node-resolve@5.2.0: +rollup-plugin-node-resolve@~5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz#730f93d10ed202473b1fb54a5997a7db8c6d8523" integrity sha512-jUlyaDXts7TW2CqQ4GaO5VJ4PwwaV8VUGA7+km3n6k6xtOEacf61u0VXwN80phY/evMcaS+9eIeJ9MOyDxt5Zw== @@ -3922,21 +3922,21 @@ rollup-plugin-node-resolve@5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-terser@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.1.1.tgz#e9d2545ec8d467f96ba99b9216d2285aad8d5b66" - integrity sha512-McIMCDEY8EU6Y839C09UopeRR56wXHGdvKKjlfiZG/GrP6wvZQ62u2ko/Xh1MNH2M9WDL+obAAHySljIZYCuPQ== +rollup-plugin-terser@~5.1.1: + version "5.1.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.1.3.tgz#5f4c4603b12b4f8d093f4b6f31c9aa5eba98a223" + integrity sha512-FuFuXE5QUJ7snyxHLPp/0LFXJhdomKlIx/aK7Tg88Yubsx/UU/lmInoJafXJ4jwVVNcORJ1wRUC5T9cy5yk0wA== dependencies: "@babel/code-frame" "^7.0.0" jest-worker "^24.6.0" rollup-pluginutils "^2.8.1" - serialize-javascript "^1.7.0" + serialize-javascript "^2.1.2" terser "^4.1.0" -rollup-plugin-typescript2@0.25.2: - version "0.25.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.2.tgz#1a165df08560902da45b355413464caca1765d3a" - integrity sha512-+tpZj/ZIf2lwjyjX6xEW1S5Y38/21TB3p6poLodISIia8owMMfIKuFFnWcESE4FPBHkR8XPKqjY0PH9IUJJK+Q== +rollup-plugin-typescript2@~0.25.2: + version "0.25.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.3.tgz#a5fb2f0f85488789334ce540abe6c7011cbdf40f" + integrity sha512-ADkSaidKBovJmf5VBnZBZe+WzaZwofuvYdzGAKTN/J4hN7QJCFYAq7IrH9caxlru6T5qhX41PNFS1S4HqhsGQg== dependencies: find-cache-dir "^3.0.0" fs-extra "8.1.0" @@ -4002,10 +4002,10 @@ semver@^6.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -serialize-javascript@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65" - integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA== +serialize-javascript@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" + integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" @@ -4470,15 +4470,15 @@ tslib@^1.8.0, tslib@^1.8.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== -tslint-no-circular-imports@0.7.0: +tslint-no-circular-imports@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/tslint-no-circular-imports/-/tslint-no-circular-imports-0.7.0.tgz#9df0a15654d66b172e0b7843eed073fa5ae99b5f" integrity sha512-k3wxpeMC4ef40UbpfBVHEHIzKfNZq5/SCtAO1YjGsaNTklo+K53/TWLrym+poA65RJFDiYgYNWvkeIIkJNA0Vw== -tslint@5.20.0: - version "5.20.0" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.0.tgz#fac93bfa79568a5a24e7be9cdde5e02b02d00ec1" - integrity sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g== +tslint@~5.20.0: + version "5.20.1" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" + integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== dependencies: "@babel/code-frame" "^7.0.0" builtin-modules "^1.1.1" From e2ce5521bf79127ddefd6679ea9d1aedadb79b58 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 10:29:34 -0500 Subject: [PATCH 07/11] save From 627d06b3e4081fbbc2139ccad0b4eb6310e47c15 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 10:39:09 -0500 Subject: [PATCH 08/11] hbn --- tfjs-backend-webgpu/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tfjs-backend-webgpu/package.json b/tfjs-backend-webgpu/package.json index 3f6ab0354e7..a478fda94ed 100644 --- a/tfjs-backend-webgpu/package.json +++ b/tfjs-backend-webgpu/package.json @@ -11,8 +11,7 @@ "publish-local": "rimraf dist/ && yarn build && rollup -c && yalc push", "publish-npm": "./scripts/publish-npm.sh", "build-core": "cd ../tfjs-core && yarn && yarn build", - "build": "yarn link-core-master && yarn build-core && rimraf dist/ && tsc", - "link-core-master": "./scripts/link-core-master.js && yarn", + "build": "yarn build-core && rimraf dist/ && tsc", "link-local": "yalc link", "unlink-local": "yalc remove", "lint": "tslint -p . -t verbose", From 519b961bdc5b767a8546e53400e5e283ee4f1c26 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 11:03:12 -0500 Subject: [PATCH 09/11] add build core step --- tfjs-backend-webgpu/cloudbuild.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tfjs-backend-webgpu/cloudbuild.yml b/tfjs-backend-webgpu/cloudbuild.yml index f7b88aac116..147737c8cb0 100644 --- a/tfjs-backend-webgpu/cloudbuild.yml +++ b/tfjs-backend-webgpu/cloudbuild.yml @@ -13,13 +13,21 @@ steps: args: ['install'] waitFor: ['yarn-common'] +# Build core from master. +- name: 'node:10' + dir: 'tfjs-backend-webgpu' + id: 'build-core' + entrypoint: 'yarn' + args: ['build-core'] + waitFor: ['yarn-common'] + # Run tests. - name: 'node:10' dir: 'tfjs-backend-webgpu' entrypoint: 'yarn' id: 'test-webgpu' args: ['test-ci'] - waitFor: ['yarn'] + waitFor: ['build-core'] # General configuration timeout: 1800s From 38ef44c9e5796b4bd8765a8eaff6bd78670f384e Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 11:19:23 -0500 Subject: [PATCH 10/11] hbn --- tfjs-backend-webgpu/scripts/test-ci.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tfjs-backend-webgpu/scripts/test-ci.sh b/tfjs-backend-webgpu/scripts/test-ci.sh index 20fdd8fb7e6..73323a6720a 100755 --- a/tfjs-backend-webgpu/scripts/test-ci.sh +++ b/tfjs-backend-webgpu/scripts/test-ci.sh @@ -16,7 +16,6 @@ set -e -yarn yarn lint yarn build From 261afb830706aad85ef8fb5b2739d9ce80443c78 Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Thu, 2 Jan 2020 12:12:38 -0500 Subject: [PATCH 11/11] config --- tfjs-backend-webgpu/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfjs-backend-webgpu/tsconfig.json b/tfjs-backend-webgpu/tsconfig.json index 14e5bcd7106..1dd0670aac9 100644 --- a/tfjs-backend-webgpu/tsconfig.json +++ b/tfjs-backend-webgpu/tsconfig.json @@ -7,7 +7,7 @@ "node_modules/" ], "compilerOptions": { - "esModuleInterop": true, - "outDir": "./dist" + "outDir": "./dist", + "target": "es2017" } }