Skip to contents

Get the element type of a buffer.

Usage

elt_type(x)

Arguments

x

(PJRTBuffer)
Buffer.

Examples

buf <- pjrt_buffer(c(1.0, 2.0, 3.0))
elt_type(buf)
#> <f32>