INNER CODE UNIT · Rust

input_len

sonos/tract · api/ffi/src/lib.rs:698

            let input_len = (*model).0.input_count()?;
            Some(
                std::slice::from_raw_parts(inputs, input_len)
                    .iter()
                    .map(|tv| (**tv).0.clone())
                    .collect(),
            )
        } else {
            None
        };

        let profile = (*model).0.profile_json(input)?;
        *json = CString::new(profile)?.into_raw() as _;
        Ok(())
    })
}

/// Convert a TypedModel into a TypedRunnableModel.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…