-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
type:bugSomething isn't workingSomething isn't working
Description
As subject line says, TFJS 2.8.0 unfortunately seems like a broken version.
First, default parameter in cropAndResize
was unintentionally removed (and apparently just re-added via #4407) which causes quite a lot of errors in existing apps
Second, even when specifying resize method as bilinear
, cropAndResize
FAILS on WebGL
baclend:
Uncaught (in promise) Error: Failed to compile fragment shader.
at createFragmentShader (webgl_util.ts:103)
at GPGPUContext.createProgram (gpgpu_context.ts:280)
at compileProgram (gpgpu_math.ts:93)
at backend_webgl.ts:858
at MathBackendWebGL.getAndSaveBinary (backend_webgl.ts:902)
at MathBackendWebGL.runWebGLProgram (backend_webgl.ts:857)
at Object.cropAndResize3 [as kernelFunc] (CropAndResize.ts:35)
at kernelFunc3 (engine.ts:590)
at engine.ts:660
at Engine.scopedRun (engine.ts:453)
With WebGL code dump highlighting error in
204 setOutput(float(undefined));
IMO, this is is blocking bug - once fixed, TFJS packages should be republished!
(and I'm not sure how this passed any level of testing?)
Btw, same code confirmed working after downgrade to tfjs 2.7.0.
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't workingSomething isn't working