|
EDM4eic
EIC data model
|
#include <MutableTensor.h>
Public Types | |
| using | object_type = Tensor |
| using | collection_type = TensorCollection |
Public Member Functions | |
| MutableTensor () | |
| default constructor | |
| MutableTensor (const std::int32_t elementType) | |
| Constructor initializing all members. | |
| MutableTensor (const MutableTensor &other)=default | |
| copy constructor | |
| MutableTensor & | operator= (MutableTensor other) & |
| copy-assignment operator | |
| MutableTensor & | operator= (MutableTensor other) &&=delete |
| MutableTensor | clone (bool cloneRelations=true) const |
| ~MutableTensor ()=default | |
| destructor | |
| std::int32_t | getElementType () const |
| Access the Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64. | |
| void | setElementType (const std::int32_t elementType) |
| Set the Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64. | |
| std::int32_t & | getElementType () |
| Get mutable reference to Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64. | |
| std::int32_t & | elementType () |
| Get reference to Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64. | |
| void | addToShape (const std::int64_t &) |
| std::size_t | shape_size () const |
| std::int64_t | getShape (std::size_t) const |
| std::vector< std::int64_t >::const_iterator | shape_begin () const |
| std::vector< std::int64_t >::const_iterator | shape_end () const |
| podio::RelationRange< std::int64_t > | getShape () const |
| void | addToFloatData (const float &) |
| std::size_t | floatData_size () const |
| float | getFloatData (std::size_t) const |
| std::vector< float >::const_iterator | floatData_begin () const |
| std::vector< float >::const_iterator | floatData_end () const |
| podio::RelationRange< float > | getFloatData () const |
| void | addToInt64Data (const std::int64_t &) |
| std::size_t | int64Data_size () const |
| std::int64_t | getInt64Data (std::size_t) const |
| std::vector< std::int64_t >::const_iterator | int64Data_begin () const |
| std::vector< std::int64_t >::const_iterator | int64Data_end () const |
| podio::RelationRange< std::int64_t > | getInt64Data () const |
| bool | isAvailable () const |
| check whether the object is actually available | |
| void | unlink () |
| disconnect from TensorObj instance | |
| bool | operator== (const MutableTensor &other) const |
| bool | operator== (const Tensor &other) const |
| bool | operator!= (const MutableTensor &other) const |
| bool | operator!= (const Tensor &other) const |
| bool | operator< (const MutableTensor &other) const |
| podio::ObjectID | id () const |
| const podio::ObjectID | getObjectID () const |
Friends | |
| class | TensorCollection |
| class | TensorMutableCollectionIterator |
| class | Tensor |
| void | swap (MutableTensor &a, MutableTensor &b) |
Tensor type for use in training in inference of ML models
| edm4eic::MutableTensor::MutableTensor | ( | ) |
default constructor
| edm4eic::MutableTensor::MutableTensor | ( | const std::int32_t | elementType | ) |
Constructor initializing all members.
|
default |
copy constructor
|
default |
destructor
| void edm4eic::MutableTensor::addToFloatData | ( | const float & | component | ) |
| void edm4eic::MutableTensor::addToInt64Data | ( | const std::int64_t & | component | ) |
| void edm4eic::MutableTensor::addToShape | ( | const std::int64_t & | component | ) |
| MutableTensor edm4eic::MutableTensor::clone | ( | bool | cloneRelations = true | ) | const |
create a mutable deep-copy of the object with identical relations if cloneRelations=false, the relations are not cloned and will be empty
| std::int32_t & edm4eic::MutableTensor::elementType | ( | ) |
Get reference to Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64.
| std::vector< float >::const_iterator edm4eic::MutableTensor::floatData_begin | ( | ) | const |
| std::vector< float >::const_iterator edm4eic::MutableTensor::floatData_end | ( | ) | const |
| std::size_t edm4eic::MutableTensor::floatData_size | ( | ) | const |
| std::int32_t & edm4eic::MutableTensor::getElementType | ( | ) |
Get mutable reference to Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64.
| std::int32_t edm4eic::MutableTensor::getElementType | ( | ) | const |
Access the Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64.
| podio::RelationRange< float > edm4eic::MutableTensor::getFloatData | ( | ) | const |
| float edm4eic::MutableTensor::getFloatData | ( | std::size_t | index | ) | const |
| podio::RelationRange< std::int64_t > edm4eic::MutableTensor::getInt64Data | ( | ) | const |
| std::int64_t edm4eic::MutableTensor::getInt64Data | ( | std::size_t | index | ) | const |
| const podio::ObjectID edm4eic::MutableTensor::getObjectID | ( | ) | const |
| podio::RelationRange< std::int64_t > edm4eic::MutableTensor::getShape | ( | ) | const |
| std::int64_t edm4eic::MutableTensor::getShape | ( | std::size_t | index | ) | const |
|
inline |
| std::vector< std::int64_t >::const_iterator edm4eic::MutableTensor::int64Data_begin | ( | ) | const |
| std::vector< std::int64_t >::const_iterator edm4eic::MutableTensor::int64Data_end | ( | ) | const |
| std::size_t edm4eic::MutableTensor::int64Data_size | ( | ) | const |
| bool edm4eic::MutableTensor::isAvailable | ( | ) | const |
check whether the object is actually available
|
inline |
|
inline |
|
inline |
| MutableTensor & edm4eic::MutableTensor::operator= | ( | MutableTensor | other | ) | & |
copy-assignment operator
|
delete |
|
inline |
| bool edm4eic::MutableTensor::operator== | ( | const Tensor & | other | ) | const |
| void edm4eic::MutableTensor::setElementType | ( | const std::int32_t | elementType | ) |
Set the Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64.
| std::vector< std::int64_t >::const_iterator edm4eic::MutableTensor::shape_begin | ( | ) | const |
| std::vector< std::int64_t >::const_iterator edm4eic::MutableTensor::shape_end | ( | ) | const |
| std::size_t edm4eic::MutableTensor::shape_size | ( | ) | const |
|
inline |
disconnect from TensorObj instance
|
friend |
|
friend |
|
friend |
|
friend |