NVIDIA Holoscan SDK v2.5.0
Holoscan v2.5.0

Class PingTensorRxOp

class PingTensorRxOp : public holoscan::Operator

Simple tensor receive operator.

This is an example of a native operator with one input port.

This operator is intended for use in test cases and example applications.

On each tick, it receives a TensorMap and loops over each tensor in the map. For each, it will print the tensor’s name and shape.

==Named Inputs==

  • in : nvidia::gxf::Tensor(s)

    • One or more received tensors (i.e. a TensorMap).

Public Functions

HOLOSCAN_OPERATOR_FORWARD_ARGS (PingTensorRxOp) PingTensorRxOp()=default
virtual void setup(OperatorSpec &spec) override

Define the operator specification.

Parameters

spec – The reference to the operator specification.

virtual void compute(InputContext &op_input, OutputContext&, ExecutionContext&) override

Implement the compute method.

This method is called by the runtime multiple times. The runtime calls this method until the operator is stopped.

Parameters
  • op_input – The input context of the operator.

  • op_output – The output context of the operator.

  • context – The execution context of the operator.

Previous Class PingRxOp
Next Class PingTensorTxOp
© Copyright 2022-2024, NVIDIA. Last updated on Oct 1, 2024.