- From: Dwayne Robinson <notifications@github.com>
- Date: Thu, 29 Feb 2024 02:56:30 -0800
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 29 February 2024 10:56:34 UTC
> Seems like it should be (long long or BigInt) then. The WebNN user calls a function to apply an operation on a multidimensional tensor (e.g. fill a constant, fill a sequence, pad with a constant value) or to create a multidimensional tensor, where those tensors can be of various data types (including float64/int64/uint64/...), and the caller passes a scalar parameter to that function call which should be able to represent any of the target tensors potential values. Using `BigInt` or `long long` would just introduce the *opposite* problem, as integer types cannot express float64 point precision (3.4 would be truncated to 3). The current definition @miaobin has prototyped for a constant sequence fill is: ``` MLOperand constant(MLOperandDescriptor desc, (double or bigint) start, (double or bigint) step); ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1388#issuecomment-1970885557 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1388/1970885557@github.com>
Received on Thursday, 29 February 2024 10:56:34 UTC