Random tensor creation
| 1513 | |
| 1514 | // Random tensor creation |
| 1515 | PyTensor PyTensor::rand(const std::vector<int64_t>& shape, |
| 1516 | const std::string& device, |
| 1517 | const std::string& dtype) { |
| 1518 | return PyTensor(Tensor::rand(to_tensor_shape(shape), parse_device(device), parse_dtype(dtype))); |
| 1519 | } |
| 1520 | |
| 1521 | PyTensor PyTensor::randn(const std::vector<int64_t>& shape, |
| 1522 | const std::string& device, |
nothing calls this directly
no test coverage detected