pub trait Saveable {
// Required methods
fn save_binary(&self) -> SerializationResult<Vec<u8>>;
fn type_id(&self) -> &'static str;
// Provided methods
fn version(&self) -> String { ... }
fn metadata(&self) -> HashMap<String, String> { ... }
}Expand description
Core trait for objects that can be saved 保存可能オブジェクトのコアトレイト
Required Methods§
Sourcefn save_binary(&self) -> SerializationResult<Vec<u8>>
fn save_binary(&self) -> SerializationResult<Vec<u8>>
Save object to binary format オブジェクトをバイナリ形式で保存
Provided Methods§
Implementors§
impl<T> Saveable for Linear<T>where
T: Float + Debug + Default + FromPrimitive + ToPrimitive + Zero + One + 'static + Send + Sync + Copy + ScalarOperand + Sum + Display,
impl<T: Float + 'static> Saveable for Tensor<T>
Tensor serialization utilities テンソルシリアライゼーションユーティリティ