Demo entry 6354498



Submitted by anonymous on Apr 07, 2017 at 13:14
Language: C++. Code size: 411 Bytes.

  ipuMemcpy(input, (unsigned int *)(inputAddr[0]), tensor_input, HOST_TO_DEVICE);
  ipuInvoke(offinst, 0);
  ipuMemcpy((void*)(outputAddr[0]), output_tmp, conv_output, DEVICE_TO_HOST);

  ipuMemcpy(output_tmp, (unsigned int *)(inputAddr[1]), conv_output, HOST_TO_DEVICE);
  ipuInvoke(offinst, 1);
  ipuMemcpy((void*)(outputAddr[1]), output, tensor_output, DEVICE_TO_HOST);

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).