We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c0370 commit 9448b12Copy full SHA for 9448b12
hls4ml/templates/vitis_accelerator/libs/DataBatcher.hpp
@@ -83,10 +83,7 @@ template <class T, class U> class DataBatcher {
83
84
std::cout << "Loading data from memory buffer" << std::endl;
85
originalSampleCount = size / _sampleInputSize;
86
- inputData.resize(size);
87
- for (uint64_t i = 0; i < size; i++) {
88
- inputData[i] = static_cast<T>(data[i]);
89
- }
+ inputData = std::vector<T>(data, data + size);
90
91
// Zero-pad
92
numBatches = std::ceil(static_cast<double>(originalSampleCount) / _batchsize);
0 commit comments