MLGraphBuilder.constant()
should take an AllowSharedBufferSource
#788
Labels
MLGraphBuilder.constant()
should take an AllowSharedBufferSource
#788
Currently,
constant()
takes anArrayBufferView
(https://www.w3.org/TR/webnn/#ref-for-dom-mlgraphbuilder-constant)AllowSharedBufferSource
is specified here as the following:Since this buffer data is always immediately copied (https://www.w3.org/TR/webnn/#dom-mlgraphbuilder-constant) I see no reason why we shouldn't allow passing an
ArrayBuffer
,SharedArrayBuffer
or sharedArrayBufferView
to this method, as well.The text was updated successfully, but these errors were encountered: