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

Method randint

src/python/lfs/py_tensor.cpp:1533–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531 }
1532
1533 PyTensor PyTensor::randint(int64_t low, int64_t high,
1534 const std::vector<int64_t>& shape,
1535 const std::string& device) {
1536 return PyTensor(Tensor::randint(to_tensor_shape(shape), static_cast<int>(low), static_cast<int>(high),
1537 parse_device(device)));
1538 }
1539
1540 // *_like variants
1541 PyTensor PyTensor::zeros_like(const PyTensor& other) {

Callers

nothing calls this directly

Calls 3

PyTensorClass · 0.85
to_tensor_shapeFunction · 0.85
parse_deviceFunction · 0.85

Tested by

no test coverage detected