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 was 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);
});
});
});