MCPcopy Create free account
hub / github.com/apache/arrow / byte_width

Method byte_width

cpp/src/arrow/c/dlpack.cc:326–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 bool is_readonly() const { return flag_is_set(DLPACK_FLAG_BITMASK_READ_ONLY); }
325
326 int32_t byte_width() const { return tensor().dtype.bits / 8; }
327
328 /// Number of element in this tensor's buffer.
329 ///

Calls

no outgoing calls

Tested by 15

test_byte_widthMethod · 0.36
test_byte_widthMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
GenerateStringFunction · 0.36
CheckDLTensorFunction · 0.36
RawDataMethod · 0.36
TYPED_TESTFunction · 0.36
CheckTensorRoundTripMethod · 0.36