IOLink 1.16.1
Loading...
Searching...
No Matches
iolink::TensorViewProvider Class Reference

Static Public Member Functions

static bool isTensor (const std::shared_ptr< View > view) noexcept
 Check if the given view is a TensorView.
 
static std::shared_ptr< TensorViewtoTensor (const std::shared_ptr< View > view) noexcept
 Convert a View to a TensorView.
 

Member Function Documentation

◆ isTensor()

static bool iolink::TensorViewProvider::isTensor ( const std::shared_ptr< View view)
staticnoexcept

Check if the given view is a TensorView.

Parameters
viewThe view to check.
Returns
true if the view is a TensorView, false otherwise.

◆ toTensor()

static std::shared_ptr< TensorView > iolink::TensorViewProvider::toTensor ( const std::shared_ptr< View view)
staticnoexcept

Convert a View to a TensorView.

Parameters
viewThe view to convert.
Returns
A shared pointer to the TensorView if the conversion is successful, and null if the view is not a TensorView.

The documentation for this class was generated from the following file: