meridian.backend.to_tensor

Converts input data to the currently active backend tensor type.

data The data to convert.
dtype The desired data type of the resulting tensor. The accepted types depend on the active backend (e.g., jax.numpy.dtype or tf.DType).

A tensor representation of the data for the active backend.