Skip to content

Plan #1

Closed
Closed
@ankane

Description

@ankane

Next

  • add num_workers option to data loader
  • add tensor.storage method
  • add support for loading saved optimizers (load_state_dict)

Performance

  • Disable global VM lock for C++ functions

Simplicity

  • Try using Declarations.yaml instead of native_functions.yaml

Other

  • decide on name (Torch-rb, Torch.rb, Torchrb, Torch Ruby, other suggestions?)
  • test on Windows

Hold

  • Numo bridge for from_numo method - numo_bridge branch (need to test Numo views and more)

Blocked

Maybe

  • support positional or keyword arguments to make code easier to port - positional branch
  • flatten namespace - Torch::NN::F.relu -> Torch.relu, Torch::NN::Linear -> Torch::Linear, etc
  • use autoload instead of require
  • move more logic to C++ frontend (less flexibility but easier maintenance)

Later

Decided against

  • Return tensor for comparison operators (==, >, >=, <, <=). Unlike Python, this causes Torch.tensor(0) == 1 to return a truthy value, and there's no way to override truthy in Ruby.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions