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

Method linspace

src/python/lfs/py_tensor.cpp:1486–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484 }
1485
1486 PyTensor PyTensor::linspace(float start, float end, int64_t steps,
1487 const std::string& device,
1488 const std::string& dtype) {
1489 auto t = Tensor::linspace(start, end, static_cast<size_t>(steps), parse_device(device));
1490 if (dtype != "float32") {
1491 t = t.to(parse_dtype(dtype));
1492 }
1493 return PyTensor(std::move(t));
1494 }
1495
1496 PyTensor PyTensor::eye(int64_t n, const std::string& device,
1497 const std::string& dtype) {

Callers 4

_plot_vignettingFunction · 0.45
_plot_crfFunction · 0.45
test_linspaceMethod · 0.45

Calls 5

parse_deviceFunction · 0.85
parse_dtypeFunction · 0.85
PyTensorClass · 0.85
moveFunction · 0.85
toMethod · 0.45

Tested by 2

test_linspaceMethod · 0.36