pub struct DomainRegistry { /* private fields */ }Expand description
Registry of known operator domains and their default opsets (docs/EAGER.md
§6.4).
Implementations§
Source§impl DomainRegistry
impl DomainRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
A registry pre-populated with the standard and common contrib domains
(docs/EAGER.md §6.1): the default ONNX domain at LATEST_ONNX_OPSET,
ai.onnx.ml at 3, and com.microsoft at 1.
Sourcepub fn register(&mut self, domain: &str, default_opset: u64)
pub fn register(&mut self, domain: &str, default_opset: u64)
Register (or update) a domain with a default opset (docs/EAGER.md §6.1
register_domain).
Sourcepub fn default_opset(&self, domain: &str) -> u64
pub fn default_opset(&self, domain: &str) -> u64
The registered default opset for domain, or LATEST_ONNX_OPSET for
an unregistered domain (docs/EAGER.md §6.4 resolve_opset).
Trait Implementations§
Source§impl Debug for DomainRegistry
impl Debug for DomainRegistry
Auto Trait Implementations§
impl Freeze for DomainRegistry
impl RefUnwindSafe for DomainRegistry
impl Send for DomainRegistry
impl Sync for DomainRegistry
impl Unpin for DomainRegistry
impl UnsafeUnpin for DomainRegistry
impl UnwindSafe for DomainRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more