ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Rand.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "cloudViewer/core/Dtype.h"
14 
15 namespace cloudViewer {
16 namespace benchmarks {
17 
19 core::Tensor Rand(const core::SizeVector& shape,
20  size_t seed,
21  const std::pair<core::Scalar, core::Scalar>& range,
22  core::Dtype dtype,
23  const core::Device& device = core::Device("CPU:0"));
24 
25 } // namespace benchmarks
26 } // namespace cloudViewer
core::Tensor Rand(const core::SizeVector &shape, size_t seed, const std::pair< core::Scalar, core::Scalar > &range, core::Dtype dtype, const core::Device &device)
Returns a Tensor with random values within the range range .
Definition: Rand.cpp:23
Generic file read and write utility for python interface.