pub struct SacActorConfig {
pub num_layers: usize,
pub hidden_dim: usize,
pub use_orthogonal_init: bool,
pub activation: BurnActivation,
pub seed: Option<u64>,
}Expand description
Configuration for the SacActor architecture.
Analogous to crate::policy::mlp::MlpBurnConfig: depth, width,
activation, an orthogonal-vs-Kaiming init toggle, and an optional
construction seed for bit-exact reproducibility.
Fields§
§num_layers: usizeNumber of hidden layers in the shared trunk. Only 2 or 3 are
supported; anything else is treated as 2 (matching
crate::policy::mlp::MlpBurnConfig).
Width of every hidden layer.
use_orthogonal_init: boolIf true, initialize hidden-layer weights with
Initializer::Orthogonal (gain sqrt(2)) and the output heads
with gain = 0.01. Set false to fall back to Burn’s default
Kaiming-uniform init.
activation: BurnActivationActivation applied between hidden layers.
seed: Option<u64>Optional construction seed. When Some,
SacActor::with_config
builds every layer from a deterministic, StdRng-driven weight
buffer (see crate::policy::seeded_init) so two constructions
with the same seed produce bit-identical actors. When None
(the default) Burn’s unseedable Initializer path is used
verbatim.
Implementations§
Source§impl SacActorConfig
impl SacActorConfig
Sourcepub fn with_seed(self, seed: u64) -> Self
pub fn with_seed(self, seed: u64) -> Self
Set the construction seed, enabling the deterministic host-side
init path in SacActor::with_config.
Builder-style; returns self for chaining:
SacActorConfig::default().with_seed(42).
Trait Implementations§
Source§impl Clone for SacActorConfig
impl Clone for SacActorConfig
Source§fn clone(&self) -> SacActorConfig
fn clone(&self) -> SacActorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SacActorConfig
Source§impl Debug for SacActorConfig
impl Debug for SacActorConfig
Auto Trait Implementations§
impl Freeze for SacActorConfig
impl RefUnwindSafe for SacActorConfig
impl Send for SacActorConfig
impl Sync for SacActorConfig
impl Unpin for SacActorConfig
impl UnsafeUnpin for SacActorConfig
impl UnwindSafe for SacActorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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