pub struct DistributedConfig { /* private fields */ }Expand description
検証済みの分散学習設定。DistributedConfig::builder から作る。
Implementations§
Source§impl DistributedConfig
impl DistributedConfig
Sourcepub fn builder(
world_size: usize,
rank: usize,
rendezvous_addr: SocketAddr,
) -> DistributedConfigBuilder
pub fn builder( world_size: usize, rank: usize, rendezvous_addr: SocketAddr, ) -> DistributedConfigBuilder
builder を作る(world_size・rank・集合点アドレスは build で検証する)。
集合点アドレスはランク 0 が bind し、他ランクが接続する先。SocketAddr だけを受け、
ホスト名解決(DNS)は行わない。
Sourcepub fn world_size(&self) -> usize
pub fn world_size(&self) -> usize
world_size(全ランク数)。
Sourcepub fn rendezvous_addr(&self) -> SocketAddr
pub fn rendezvous_addr(&self) -> SocketAddr
集合点アドレス(IPv4-mapped IPv6 は IPv4 へ正規化済み)。
Sourcepub fn is_non_loopback_allowed(&self) -> bool
pub fn is_non_loopback_allowed(&self) -> bool
非 loopback が明示 opt-in されているか。
Trait Implementations§
Source§impl Clone for DistributedConfig
impl Clone for DistributedConfig
Auto Trait Implementations§
impl Freeze for DistributedConfig
impl RefUnwindSafe for DistributedConfig
impl Send for DistributedConfig
impl Sync for DistributedConfig
impl Unpin for DistributedConfig
impl UnsafeUnpin for DistributedConfig
impl UnwindSafe for DistributedConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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