Skip to main content

var_builder_from_path

Function var_builder_from_path 

Source
pub fn var_builder_from_path(
    path: &Path,
    format: Format,
    opts: &LoadOptions,
) -> Result<VarBuilder<'static>>
Expand description

Build a [VarBuilder] over a local weight file of the given Format.

Free-standing counterpart to WeightSource::var_builder_from_path, for paths with no associated hub repo.