mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-23 02:38:28 +00:00
### Description
Run clang-format in CI. Formatted all c/c++, objective-c/c++ files.
Excluded
```
'onnxruntime/core/mlas/**',
'onnxruntime/contrib_ops/cuda/bert/tensorrt_fused_multihead_attention/**',
```
because they contain assembly or is data heavy
### Motivation and Context
Coding style consistency
30 lines
622 B
C++
30 lines
622 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace onnxruntime {
|
|
namespace utils {
|
|
|
|
/**
|
|
* Gets the random seed value used by onnxruntime.
|
|
*
|
|
* The random seed value can be override with SetRandomSeed().
|
|
*
|
|
* @return The random seed value.
|
|
*/
|
|
int64_t GetRandomSeed();
|
|
|
|
/**
|
|
* Sets the random seed value to be used by onnxruntime.
|
|
*
|
|
* If not called manually, the current clock will be used.
|
|
*
|
|
* @param seed The random seed value to use.
|
|
*/
|
|
void SetRandomSeed(int64_t seed);
|
|
|
|
} // namespace utils
|
|
} // namespace onnxruntime
|