Skip to main content

estimate_kernel_cost

Function estimate_kernel_cost 

Source
pub fn estimate_kernel_cost(pattern: &KernelPattern) -> OpCost
Expand description

Estimate the compute and memory cost of a classified kernel pattern.

Element size defaults to 4 bytes (f32) unless the pattern provides enough information to determine otherwise.