Skip to contents

Tests whether x is a TensorDataType object.

Usage

is_dtype(x)

Arguments

x

An object to test.

Value

TRUE or FALSE.

Examples

is_dtype("f32")
#> [1] FALSE
is_dtype(as_dtype("f32"))
#> [1] TRUE