Class: Torch::Distributed::TCPStore

Inherits:
Object
  • Object
show all
Defined in:
lib/torch/distributed.rb

Class Method Summary collapse

Class Method Details

.new(host, port, world_size, is_master, wait_for_workers: true, timeout: DEFAULT_TIMEOUT) ⇒ Object



445
446
447
# File 'lib/torch/distributed.rb', line 445

def self.new(host, port, world_size, is_master, wait_for_workers: true, timeout: DEFAULT_TIMEOUT)
  Torch::Distributed._create_tcp_store(host, port, world_size, is_master, (timeout * 1000).to_i, wait_for_workers)
end