unmap a previously mapped buff (#1410)

albatross
Dean Lee 2020-04-23 01:16:05 +08:00 committed by GitHub
parent 144b37728f
commit 98ec06e125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ ModelDataRaw model_eval_frame(ModelState* s, cl_command_queue q,
assert(1==2);
#endif
clEnqueueUnmapMemObject(q, s->frame.net_input, (void*)new_frame_buf, 0, NULL, NULL);
// net outputs
ModelDataRaw net_outputs;
net_outputs.path = &s->output[PATH_IDX];