-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to access the ggml_tensor data? #512
Comments
The gpt-2 example was recently updated to use You shouldn't need to access the tensor data unless you are trying to set the inputs (in which case you can use |
"Processing part 1 of 3" instead of "Processing part 0"
Hi, this may be a silly question but how can I access the data stored in a
ggml_tensor
? For example, inexamples/gpt-2/main.cpp
when I try printing some vector as below I get a segmentation fault:The above method used to work for me in a previous version of ggml, but do longer works on the current master.
The text was updated successfully, but these errors were encountered: