For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Introduction
    • Overview
    • Relevant Technologies
    • Getting Started
  • Setup
    • SDK Installation
    • Additional Setup
    • Third Party Hardware Setup
  • Using the SDK
    • Holoscan Core
    • GPU Resident Execution
    • Holoscan by Example
    • Create an Application
    • Create a Distributed Application
    • Create an Operator
    • Create an Operator via Decorator
    • Create a Condition
    • Dynamic Flow Control
    • CUDA Stream Handling
    • Logging
    • Data Logging
    • Debugging
    • Python Operator Bindings
  • Operators
    • Operators and Extensions
    • Visualization
    • Inference
    • Testing
    • Video I/O Vendor Implementation Guide
  • Components
    • Schedulers
    • Conditions
    • Resources
    • Analytics
  • AI Skills
    • Ai Skills
  • API reference
              • Get Data Per Model
              • Report Error
              • Set Activation Per Model
              • Transmit Data Per Model
  • Performance
    • Performance Considerations
    • Flow Tracking
    • GXF Job Statistics
    • Nsight Profiling
  • HoloHub
    • HoloHub Overview
  • FAQ
    • FAQ
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoDocumentation
API referenceC++ APIHoloscanNamespacesUtilsFunctions

holoscan::utils::get_data_per_model

Beta
||View as Markdown|
Previous

holoscan::utils::GxfTensorBuffer

Next

holoscan::utils::report_error

Extracts data from GXF Receivers (with context and cuda stream handler)
Extracts data from GXF Receivers (with cuda stream out)
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,
gxf_context_t &context,
CudaStreamHandler &cuda_stream_handler
)

Extracts data from GXF Receivers.

This version of get_data_per_model uses the legacy CudaStreamHandler utility. Use the variant without a cuda_stream_handler argument to use the built-in CudaObjectHandler instead.

Returns: GXF result code

Parameters

op_input
InputContext &

Input context

in_tensors
const std::vector<std::string> &

Input tensor names

data_per_input_tensor
HoloInfer::DataMap &

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

dims_per_tensor
std::map<std::string, std::vector<int>> &

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

cuda_buffer_out
bool

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

module
const std::string &

Module that called for data extraction

context
gxf_context_t &

GXF execution context

cuda_stream_handler
CudaStreamHandler &

Cuda stream handler