mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Fix overflow causing test failure on x86 (#20425)
### Description <!-- Describe your changes. --> Fix comparison that was not updated when the threshold was converted to bytes. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Fix CI failure
This commit is contained in:
parent
5eae33fc6b
commit
ed6f1adcb8
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ Status FromTensorProtos(gsl::span<const ONNX_NAMESPACE::TensorProto> trainable_t
|
|||
fbs_buffer_size = std::max(fbs_buffer_size, m_bytes);
|
||||
fbs_buffer_size = ((fbs_buffer_size + m_bytes - 1) / m_bytes) * m_bytes;
|
||||
|
||||
const bool use_external_data = fbs_buffer_size >= external_data_threshold * m_bytes;
|
||||
const bool use_external_data = fbs_buffer_size >= external_data_threshold;
|
||||
|
||||
fbs::utils::ExternalDataWriter external_data_writer = nullptr;
|
||||
std::optional<std::ofstream> external_data_stream;
|
||||
|
|
|
|||
Loading…
Reference in a new issue