MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / gather

Method gather

src/python/lfs/py_tensor.cpp:1257–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255 }
1256
1257 PyTensor PyTensor::gather(int dim, const PyTensor& indices) const {
1258 return PyTensor(tensor_.gather(dim, indices.tensor_));
1259 }
1260
1261 PyTensor PyTensor::masked_select(const PyTensor& mask) const {
1262 return PyTensor(tensor_.masked_select(mask.tensor_));

Callers 4

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

PyTensorClass · 0.85

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36