You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
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)
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);
});
});
});
The text was updated successfully, but these errors were encountered:
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
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:
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:
The text was updated successfully, but these errors were encountered: