mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 19:58:35 +00:00
Expose candle gather op in pyo3. (#1870)
This commit is contained in:
@ -324,6 +324,12 @@ class Tensor:
|
||||
"""
|
||||
pass
|
||||
|
||||
def gather(self, index, dim):
|
||||
"""
|
||||
Gathers values along an axis specified by dim.
|
||||
"""
|
||||
pass
|
||||
|
||||
def get(self, index: int) -> Tensor:
|
||||
"""
|
||||
Gets the value at the specified index.
|
||||
|
Reference in New Issue
Block a user