NVIDIA Holoscan SDK v3.0.0

Function holoscan::utils::get_data_per_model(InputContext&, const std::vector&, HoloInfer::DataMap&, std::map>&, bool, const std::string&, cudaStream_t&)

gxf_result_t holoscan::utils::get_data_per_model(InputContext &op_input, const std::vector<std::string> &in_tensors, HoloInfer::DataMap &data_per_input_tensor, std::map<std::string, std::vector<int>> &dims_per_tensor, bool cuda_buffer_out, const std::string &module, cudaStream_t &cuda_stream_out)

Extracts data from GXF Receivers.

Parameters
  • op_input – Input context

  • in_tensors – Input tensor names

  • data_per_input_tensorMap is updated with output tensor name as key mapped to data buffer

  • dims_per_tensorMap is updated with tensor name as key mapped to dimension of input tensor

  • cuda_buffer_out – Flag defining the location of output memory (Device or Host)

  • module – Module that called for data extraction

  • cuda_stream_out – Any stream used from the input port will be stored here.

Returns

GXF result code

Previous Function holoscan::utils::get_data_per_model(InputContext&, const std::vector<std::string>&, HoloInfer::DataMap&, std::map<std::string, std::vector<int>>&, bool, const std::string&, gxf_context_t&, CudaStreamHandler&)
Next Function holoscan::utils::set_activation_per_model
© Copyright 2022-2025, NVIDIA. Last updated on Mar 12, 2025.