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

Method stack

src/python/lfs/py_tensor.cpp:1575–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1573 }
1574
1575 PyTensor PyTensor::stack(const std::vector<PyTensor>& tensors, int dim) {
1576 std::vector<Tensor> core_tensors;
1577 core_tensors.reserve(tensors.size());
1578 for (const auto& t : tensors) {
1579 core_tensors.push_back(t.tensor_);
1580 }
1581 return PyTensor(Tensor::stack(core_tensors, dim));
1582 }
1583
1584 PyTensor PyTensor::where(const PyTensor& condition, const PyTensor& x, const PyTensor& y) {
1585 return PyTensor(Tensor::where(condition.tensor_, x.tensor_, y.tensor_));

Callers 7

_mul2Function · 0.45
_homography_from_paramsFunction · 0.45
_apply_h_rg_lossFunction · 0.45
_apply_h_rgb_forwardFunction · 0.45
_plot_colorFunction · 0.45

Calls 4

PyTensorClass · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45