Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

[WebGL2] An error occurs for AVERAGE_POOL_2D operation with WebGL2 backend on Android #271

Closed
Christywl opened this issue Oct 24, 2018 · 2 comments
Assignees
Labels
bug Something isn't working verified

Comments

@Christywl
Copy link
Contributor

Christywl commented Oct 24, 2018

Test Env:
Chromium Version: nightly build 70.0.3503.0 (b7ce158)
Platform: Android Goolge Pixel 2(8.1.0)

Expected Result:
The test should pass.

Actual Result:
An error occurs for AVERAGE_POOL_2D operation with WebGL2 backend.

Uncaught (in promise) Error: [Tensor] Tensor shape[1] 10000 > MAX_TEXTURE_SIZE 4096
    at Tensor.createGLTexture (webml-polyfill.js:884)
    at AveragePool2D._createIndexMap (webml-polyfill.js:8881)
    at AveragePool2D.call (webml-polyfill.js:8896)
    at webml-polyfill.js:8201
    at Array.forEach (<anonymous>)
    at webml-polyfill.js:8163
    at new Promise (<anonymous>)
    at Model._execute (webml-polyfill.js:8155)
    at webml-polyfill.js:8119
    at Model.execute (webml-polyfill.js:8134)

avg_pool_2d

How to Reproduce:

  1. Launch chromium and disable WebML flag

  2. Visit https://brucedai.github.io/nt/test/avg_pool_2d.html?backend=webgl2

    • check result for Avg pool float example/2
    • check result for Avg pool float example/4

Similar issue: #182

@GreyZzzzzzXh GreyZzzzzzXh self-assigned this Oct 24, 2018
@ibelem ibelem added the bug Something isn't working label Oct 25, 2018
@GreyZzzzzzXh
Copy link

This bug has been fixed by replacing webgl2 with tfjs-core (PR #297).

@Christywl
Copy link
Contributor Author

This issue can't reproduce on webgl backend on Android nightly build 6540a81.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working verified
Projects
None yet
Development

No branches or pull requests

3 participants