fix error when memory_id is VTA_MEM_ID_OUT (#4330)
authorjason-song-dev <37959160+jason-song-dev@users.noreply.github.com>
Thu, 14 Nov 2019 03:42:22 +0000 (12:42 +0900)
committerTianqi Chen <tqchen@users.noreply.github.com>
Thu, 14 Nov 2019 03:42:22 +0000 (19:42 -0800)
vta/src/runtime.cc

index 79fc0e2..b657d63 100644 (file)
@@ -1016,7 +1016,7 @@ class CommandQueue {
           elem_bytes = VTA_ACC_ELEM_BYTES;
           break;
       case VTA_MEM_ID_OUT:
-          elem_bytes = VTA_INP_ELEM_BYTES;
+          elem_bytes = VTA_OUT_ELEM_BYTES;
           break;
       default:
           LOG(FATAL) << "Memory id not recognized:" << memory_id;