You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using NumCpp to read bin files exported from numpy. There is no issue when the file size is below 2GB, but when the file size exceeds 2GB, nc::load throws an error.
python:
import numpy as np
a = np.zeros((32,18000000),dtype=np.float32)
a.tofile('pred_np.bin')
cpp:
#include "NumCpp.hpp"
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
std::string inFilename = "F:\\MNEProject\\eigen\\data_file\\pred_np.bin";
auto a = nc::load<float>(inFilename);
return EXIT_SUCCESS;
}
error:
File: E:/CppLibrary/NumCpp/include/NumCpp/Functions/fromfile.hpp
Function: fromfile
Line: 78
Error: error occured while reading the fileterminate called after throwing an instance of 'std::invalid_argument
'
what(): File: E:/CppLibrary/NumCpp/include/NumCpp/Functions/fromfile.hpp
Function: fromfile
Line: 78
Error: error occured while reading the file
The text was updated successfully, but these errors were encountered:
* starting rc2.13.0 branch
* attempting to fix actions
* attempting to fix actions
* fixed a typo from last commit
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* attempting to fix actions
* made random generator inline
* fixed filesize error in fromfile in support of Issue #219
* updated clang version for actions
* tweaking actions
* updated docs, still fidling with actions
* reverting back to clang18 for actions
---------
Co-authored-by: = <=>
I am currently using NumCpp to read bin files exported from numpy. There is no issue when the file size is below 2GB, but when the file size exceeds 2GB,
nc::load
throws an error.python:
cpp:
error:
The text was updated successfully, but these errors were encountered: