oxidized-transformers 0.1.1

Transformers library (not functional yet)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::{Path, PathBuf};

use crate::error::BoxedError;

/// Represents a repository that contains a model or tokenizer.
pub trait Repo
where
    Self: Sized,
{
    /// Get a repository file.
    ///
    /// * `path` - The path to the file within the repository.
    ///
    /// Returns: The local file path.
    fn file(&self, path: impl AsRef<Path>) -> Result<Option<PathBuf>, BoxedError>;
}