Skip to main content

placeholder

Function placeholder 

Source
pub fn placeholder(dtype: DType, shape: &[i32]) -> Result<Array>
Expand description

A placeholder with this dtype and shape, standing for an input while a function is traced (as in MLX): operations can be recorded on it, but evaluating anything that depends on it fails. Placeholders are tracers.