Open orlando-labs opened 1 year ago
Hi @orlando-labs, there could probably be Torch::Ellipsis
and Torch::Slice
classes for this (similar to the C++ API). I'm not sure it would be especially Ruby-like, but would make it easier to port code.
Looks like the only way to go.
Hi, @ankane!
Working recently on some Fairseq models porting, I met the following line:
What can we do with such ellipsis indexing and step slicing while keeping Ruby clarity?
UPD: according to docs