[−][src]Struct nasbench::NasBench
NAS benchmark dataset.
Methods
impl NasBench
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
Loads a NasBench
instance from the given binary file.
Note that this function assumes the file contains bytes produced by NasBench::to_writer
method.
pub fn models(&self) -> &HashMap<ModelSpec, ModelStats>
[src]
Returns models contained in this dataset.
pub fn to_writer<W: Write>(&self, writer: W) -> Result<()>
[src]
Serializes the state of this dataset to the given writer.
pub fn from_reader<R: Read>(reader: R) -> Result<Self>
[src]
Deserializes a NasBench
instance from the given reader.
pub fn from_tfrecord_reader<R: Read>(
reader: R,
validate_module_hash: bool
) -> Result<Self>
[src]
reader: R,
validate_module_hash: bool
) -> Result<Self>
Deserializes a NasBench
instance from the given reader (tfrecord format).
See Download the dataset for available dataset.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NasBench
impl Send for NasBench
impl Sync for NasBench
impl Unpin for NasBench
impl UnwindSafe for NasBench
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,