i am using nodejs to deploy a model to web. But when i use these commands in a .min.js file to predict:
let tensor = tf.zeros([1, 80, 80, 3], tf.float32) let model = await tf.loadGraphModel(modelUrl) let outputs = await model.predict(tensor) console.log(outputs)
web console gives error. Could you help me resolve the following error:
webgl_util.js:199 Uncaught (in promise) Error: Requested texture size [-3x6400] is invalid.
at webgl_util.js:199 at fX (gpgpu_util.js:57) at gpgpu_util.js:89 at e.t.createFloat32MatrixTexture (gpgpu_context.js:141) at e.t.acquireTexture (texture_manager.js:71) at t.n.acquireTexture (backend_webgl.js:1072) at t.n.uploadToGPU (backend_webgl.js:1042) at t.n.runWebGLProgram (backend_webgl.js:848) at Object.kernelFunc (StridedSlice.js:72) at n (engine.js:636)