Class ov::TensorAccessor#

template<class TContainer>
class TensorAccessor : public ov::ITensorAccessor#

Tensor data accessor functor.

Creates the ov::Tensor found in tensors container. This accessor does not take ownership of tensors container. Supports following containers:

Template Parameters:

TContainer – Type of tensor container.

Public Functions

inline constexpr TensorAccessor(const TContainer *tensors)#

Construct a new Tensor Accessor object for tensors container.

Parameters:

tensors – Pointer to container with tensors.

virtual Tensor operator()(size_t port) const override#

Get tensor for given port number.

Parameters:

port – Port number to get data.

Returns:

Tensor to data or empty tensor if data not found.

virtual Tensor operator()(size_t port) const

Get tensor at port.

Parameters:

port – Number of data port (operator input) to get tensor.

Returns:

Tensor to data at port.

virtual Tensor operator()(size_t port) const

Get tensor at port.

Parameters:

port – Number of data port (operator input) to get tensor.

Returns:

Tensor to data at port.

virtual Tensor operator()(size_t port) const

Get tensor at port.

Parameters:

port – Number of data port (operator input) to get tensor.

Returns:

Tensor to data at port.