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
"
11
#include "
cloudViewer/core/Scalar.h
"
12
#include "
cloudViewer/core/SizeVector.h
"
13
#include "
cloudViewer/core/Tensor.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
Dtype.h
Scalar.h
SizeVector.h
Tensor.h
cloudViewer::benchmarks::Rand
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
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
libs
CVViewer
benchmarks
benchmark_utilities
Rand.h
Generated on Wed Jan 28 2026 09:00:58 for ACloudViewer by
1.9.1