NVIDIA Holoscan SDK v0.4.0
Clara Holoscan v0.4.0

Function holoscan::inference::allocate_host_device_buffers

InferStatus holoscan::inference::allocate_host_device_buffers(DataMap &buffers, std::vector<int64_t> &dims_map, const std::string &mappings)

Allocate buffer on host and device.

Parameters
  • buffers – Map with keyword as model name or tensor name, and value as DataBuffer. The map is populated in this function.

  • dims – Dimension of the allocation

  • keyname – Storage name in the map against the created DataBuffer

Returns

InferStatus with appropriate code and message

© Copyright 2022, NVIDIA. Last updated on Jun 28, 2023.