pub struct Limits {Show 13 fields
pub max_model_bytes: usize,
pub max_apparent_bytes: usize,
pub max_flatbuffer_depth: usize,
pub max_flatbuffer_tables: usize,
pub max_regions: usize,
pub max_blocks: usize,
pub max_tensors: usize,
pub max_shapes: usize,
pub max_operators: usize,
pub max_edges: usize,
pub max_name_bytes: usize,
pub max_rank: usize,
pub max_constant_bytes: usize,
}Expand description
Resource ceilings applied before and during graph traversal.
Every field is public so a provider can derive stricter limits from its admission policy. The
defaults are finite and intentionally much smaller than the FlatBuffers runtime defaults.
max_rank bounds tensor ranks; serialized shape_t value lists may contain up to twice that
many entries because PAD carries a before/after pair for each dimension.
Fields§
§max_model_bytes: usize§max_apparent_bytes: usize§max_flatbuffer_depth: usize§max_flatbuffer_tables: usize§max_regions: usize§max_blocks: usize§max_tensors: usize§max_shapes: usize§max_operators: usize§max_edges: usize§max_name_bytes: usize§max_rank: usize§max_constant_bytes: usizeTrait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more