onnxruntime/include/onnxruntime/core/common/denormal.h
2021-12-15 00:58:42 -08:00

12 lines
358 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace onnxruntime {
// Set or unset flush-to-zero and denormal=as-zero if SSE3 instructions are supported.
// Return true if SSE3 instruction is supported, otherwise return false.
bool SetDenormalAsZero(bool on);
} // namespace onnxruntime