Skip to main content

detect_format

Function detect_format 

Source
pub fn detect_format(data: &[u8]) -> ModelFormat
Expand description

Detect model format from bytes

§Arguments

  • data - At least first 1KB of the file

§Returns

Detected ModelFormat with extracted metadata