mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/quantize
@mlx-bun/quantize/quantizer
castTensor
Function castTensor
castTensor
(
name
:
string
,
array
:
MlxArray
,
dtype
:
ConvertDtype
|
undefined
,
)
:
MlxArray
Cast one floating tensor to
dtype
(lazy); anything else passes through.
Parameters
name
:
string
array
:
MlxArray
dtype
:
ConvertDtype
|
undefined
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...
Cast one floating tensor to
dtype(lazy); anything else passes through.