pub struct Limits {
pub max_file_bytes: usize,
pub max_values: usize,
pub max_tensor_elements: usize,
pub max_total_elements: usize,
pub max_rank: usize,
}Fields§
§max_file_bytes: usize§max_values: usizeCap on graph values: inputs, constants and nodes together.
max_tensor_elements: usize§max_total_elements: usizeCap on the elements of all values together, so many legal tensors cannot add up to an allocation the per-tensor cap would have refused.
max_rank: usizeTrait Implementations§
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