-
Notifications
You must be signed in to change notification settings - Fork 945
Move the rest of the math ops to logical #54
Conversation
Reviewed 6 of 7 files at r1, 17 of 18 files at r2. src/math/math_gpu.ts, line 101 at r2 (raw file):
one thought: getCustomSetupFunc could be part of the GPGPUProgram, though you lose a little flexibility. I'm fine either way, just throwing ideas out there :) src/math/math_gpu.ts, line 359 at r2 (raw file):
rename this to ResizeBilinear3DProgram src/math/webgl/batchnorm_gpu_test.ts, line 130 at r2 (raw file):
does 2, 9 not work, or do you not like that test? src/math/webgl/resize_bilinear_gpu.ts, line 42 at r2 (raw file):
i think this fits on prev line Comments from Reviewable |
Review status: 17 of 22 files reviewed at latest revision, 4 unresolved discussions, some commit checks pending. src/math/math_gpu.ts, line 101 at r2 (raw file): Previously, nsthorat (Nikhil Thorat) wrote…
Done. src/math/math_gpu.ts, line 359 at r2 (raw file): Previously, nsthorat (Nikhil Thorat) wrote…
Done. src/math/webgl/batchnorm_gpu_test.ts, line 130 at r2 (raw file): Previously, nsthorat (Nikhil Thorat) wrote…
[2, 9] corresponds to the texture shape, which is what the old uploadBatchNormDownload was expecting. [2, 3, 3] is the logical shape which is what the rewritten uploadDownload is expecting. (I didn't want any dependency/usage of texture shapes in the tests) src/math/webgl/resize_bilinear_gpu.ts, line 42 at r2 (raw file): Previously, nsthorat (Nikhil Thorat) wrote…
Done. Comments from Reviewable |
* migrate addScaledMat and conv2d to logical sampling and improve shader compiler * fix conv2d zero paddig and make the project build * migrate rest of conv shaders to logical * replace zero pad with if * migrate pool ops * removing math.reshape * Merge remote-tracking branch 'origin/master' into reshape * migrate copy op to logical * remove duplicate copy file * move the rest of math ops to logical * address comments
This resolves #18
This change is