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

TENSOR_QUANT8_ASYMM tensor is not supported #74

Open
Christywl opened this issue Jun 25, 2018 · 0 comments
Open

TENSOR_QUANT8_ASYMM tensor is not supported #74

Christywl opened this issue Jun 25, 2018 · 0 comments
Labels
enhancement New feature or request p3

Comments

@Christywl
Copy link
Contributor

Test Env:
Chromium Version : nightly build 65.0.3324.0 (revision f9e1a31)
OS : Mac OS X 10.13.4

Expected Result:
Could set a Uint8Array data for a TENSOR_QUANT8_ASYMM tensor

Actual Result:
fail to set a Uint8Array data for a TENSOR_QUANT8_ASYMM tensor:

AssertionError: expected [Function] to not throw an error but 'Error: Invalid value 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0' was thrown
    at nn.createModel.then (unit-test/test-Model.js:801:16)

How to reproduce:
1.Download and install Chromium
2.Launch Chromium
3. Run test case on Chromium: https://brucedai.github.io/nt/test/index-local.html?backend=webgl2
4. Check the result for this test in setOperandValue API
codes:
https://github.com/intel/webml-polyfill/blob/master/test/unit-test/test-Model.js#L795:

    it('setting an Uint8Array data for a TENSOR_QUANT8_ASYMM tensor is ok', function() {
      return nn.createModel(options).then((model)=>{
        let op = {type: nn.TENSOR_QUANT8_ASYMM, dimensions: TENSOR_DIMENSIONS, scale: 0.8, zeroPoint: 1};
        model.addOperand(op);
        let data = new Uint8Array(product(op.dimensions));
        data.fill(0);
        assert.doesNotThrow(() => {
          model.setOperandValue(0, data);
        });
      });
    });
@Christywl Christywl changed the title [webgl2] fail to set a Uint8Array data for a TENSOR_QUANT8_ASYMM tensor TENSOR_QUANT8_ASYMM tensor is not supported Jun 25, 2018
@ibelem ibelem added feature enhancement New feature or request and removed feature labels Jul 10, 2018
@ibelem ibelem added the p3 label Aug 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request p3
Projects
None yet
Development

No branches or pull requests

2 participants