Definition at line 40 of file CpuTensor.h.
Public Types | |
| using | Container_t |
| using | Index_t |
| using | Matrix_t = TCpuMatrix<AFloat> |
| using | MemoryLayout = TMVA::Experimental::MemoryLayout |
| using | Scalar_t = AFloat |
| using | Shape_t = typename TMVA::Experimental::RTensor<AFloat>::Shape_t |
| using | Slice_t |
| using | Value_t |
Public Member Functions | |
| TCpuTensor () | |
| TCpuTensor (AFloat *data, const Shape_t &shape, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| TCpuTensor (const TCpuBuffer< AFloat > &buffer, Shape_t shape, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from a TCpuBuffer and a shape | |
| TCpuTensor (const TCpuMatrix< AFloat > &matrix, size_t dim=3, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from a TCpuMatrix. | |
| TCpuTensor (Shape_t shape, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from a shape. | |
| TCpuTensor (size_t bsize, size_t depth, size_t height, size_t width, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from batch size, depth, height, width | |
| TCpuTensor (size_t bsize, size_t depth, size_t hw, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from batch size, depth, height*width | |
| TCpuTensor (size_t n, size_t m, MemoryLayout memlayout=MemoryLayout::ColumnMajor) | |
| constructors from n m | |
| TCpuTensor< AFloat > | At (size_t i) |
| TCpuTensor< AFloat > | At (size_t i) const |
| Iterator | begin () noexcept |
| RTensor< Value_t, Container_t > | Copy (MemoryLayout layout=MemoryLayout::RowMajor) const |
| Copy RTensor to new object. | |
| Iterator | end () noexcept |
| RTensor< Value_t, Container_t > | ExpandDims (int idx) const |
| Expand dimensions. | |
| size_t | GetBufferUseCount () const |
| std::shared_ptr< Container_t > | GetContainer () |
| const std::shared_ptr< Container_t > | GetContainer () const |
| size_t | GetCSize () const |
| Value_t * | GetData () |
| const Value_t * | GetData () const |
| TCpuBuffer< AFloat > & | GetDeviceBuffer () |
| const TCpuBuffer< AFloat > & | GetDeviceBuffer () const |
| size_t | GetFirstSize () const |
| size_t | GetHSize () const |
| MemoryLayout | GetLayout () const |
| TCpuMatrix< AFloat > | GetMatrix () const |
| MemoryLayout | GetMemoryLayout () const |
| size_t | GetNcols () const |
| size_t | GetNoElements () const |
| size_t | GetNrows () const |
| AFloat * | GetRawDataPointer () |
| Return raw pointer to the elements stored contiguously in column-major order. | |
| const AFloat * | GetRawDataPointer () const |
| const Shape_t & | GetShape () const |
| std::size_t | GetSize () const |
| const Shape_t & | GetStrides () const |
| size_t | GetWSize () const |
| bool | IsOwner () const |
| bool | IsView () const |
| template<typename Function_t> | |
| void | Map (Function_t &f) |
| Map the given function over the matrix elements. | |
| template<typename Function_t> | |
| void | MapFrom (Function_t &f, const TCpuTensor< AFloat > &A) |
Same as maps but takes the input values from the tensor A and writes the results in this tensor. | |
| operator TMatrixT< AFloat > () const | |
| Convert to a TMatrixT<AFloat_t> object. | |
| AFloat & | operator() (size_t i, size_t j) |
| AFloat | operator() (size_t i, size_t j) const |
| AFloat & | operator() (size_t i, size_t j, size_t k) |
| AFloat | operator() (size_t i, size_t j, size_t k) const |
| Value_t & | operator() (const Index_t &idx) |
| Access elements. | |
| const Value_t & | operator() (const Index_t &idx) const |
| Access elements. | |
| Value_t & | operator() (Idx... idx) |
| Access elements. | |
| const Value_t & | operator() (Idx... idx) const |
| Access elements. | |
| TCpuMatrix< AFloat > | operator[] (size_t i) const |
| void | Print (const char *name="Tensor") const |
| void | PrintShape (const char *name="Tensor") const |
| TCpuTensor< AFloat > | Reshape (Shape_t shape) const |
| RTensor< Value_t, Container_t > | Reshape (const Shape_t &shape) const |
| Reshape tensor. | |
| RTensor< Value_t, Container_t > | Resize (const Shape_t &shape) |
| Resize tensor. | |
| RTensor< Value_t, Container_t > | Slice (const Slice_t &slice) |
| Create a slice of the tensor. | |
| RTensor< Value_t, Container_t > | Squeeze () const |
| Squeeze dimensions. | |
| RTensor< Value_t, Container_t > | Transpose () const |
| Transpose. | |
| void | Zero () |
Protected Member Functions | |
| void | ReshapeInplace (const Shape_t &shape) |
| Reshape tensor in place. | |
Private Attributes | |
| std::shared_ptr< Container_t > | fContainer |
| Value_t * | fData |
| MemoryLayout | fLayout |
| Shape_t | fShape |
| std::size_t | fSize |
| Shape_t | fStrides |
Friends | |
| class | TCpuMatrix< AFloat > |
#include <TMVA/DNN/Architectures/Cpu/CpuTensor.h>
|
inherited |
Definition at line 170 of file RTensor.hxx.
|
inherited |
Definition at line 168 of file RTensor.hxx.
| using TMVA::DNN::TCpuTensor< AFloat >::Matrix_t = TCpuMatrix<AFloat> |
Definition at line 49 of file CpuTensor.h.
| using TMVA::DNN::TCpuTensor< AFloat >::MemoryLayout = TMVA::Experimental::MemoryLayout |
Definition at line 48 of file CpuTensor.h.
| using TMVA::DNN::TCpuTensor< AFloat >::Scalar_t = AFloat |
Definition at line 50 of file CpuTensor.h.
| using TMVA::DNN::TCpuTensor< AFloat >::Shape_t = typename TMVA::Experimental::RTensor<AFloat>::Shape_t |
Definition at line 47 of file CpuTensor.h.
|
inherited |
Definition at line 169 of file RTensor.hxx.
|
inherited |
Definition at line 166 of file RTensor.hxx.
|
inline |
Definition at line 53 of file CpuTensor.h.
|
inline |
constructors from n m
Definition at line 57 of file CpuTensor.h.
|
inline |
constructors from batch size, depth, height*width
Definition at line 62 of file CpuTensor.h.
|
inline |
constructors from batch size, depth, height, width
Definition at line 70 of file CpuTensor.h.
|
inline |
constructors from a shape.
Definition at line 80 of file CpuTensor.h.
|
inline |
Definition at line 87 of file CpuTensor.h.
|
inline |
constructors from a TCpuBuffer and a shape
Definition at line 99 of file CpuTensor.h.
|
inline |
constructors from a TCpuMatrix.
Memory layout is forced to be same as matrix (i.e. columnlayout)
Definition at line 108 of file CpuTensor.h.
|
inline |
Definition at line 221 of file CpuTensor.h.
|
inline |
Definition at line 234 of file CpuTensor.h.
|
inlinenoexceptinherited |
Definition at line 306 of file RTensor.hxx.
|
inlineinherited |
Copy RTensor to new object.
| [in] | layout | Memory layout of the new RTensor |
Definition at line 254 of file RTensor.hxx.
|
inlinenoexceptinherited |
Definition at line 309 of file RTensor.hxx.
|
inlineinherited |
Expand dimensions.
| [in] | idx | Index in shape vector where dimension is added |
Definition at line 259 of file RTensor.hxx.
|
inline |
Definition at line 300 of file CpuTensor.h.
|
inlineinherited |
Definition at line 247 of file RTensor.hxx.
|
inlineinherited |
Definition at line 248 of file RTensor.hxx.
|
inline |
Definition at line 161 of file CpuTensor.h.
|
inlineinherited |
Definition at line 245 of file RTensor.hxx.
|
inlineinherited |
Definition at line 246 of file RTensor.hxx.
|
inline |
Definition at line 146 of file CpuTensor.h.
|
inline |
Definition at line 145 of file CpuTensor.h.
|
inline |
Definition at line 155 of file CpuTensor.h.
|
inline |
Definition at line 168 of file CpuTensor.h.
|
inline |
Definition at line 194 of file CpuTensor.h.
|
inline |
Definition at line 197 of file CpuTensor.h.
|
inlineinherited |
Definition at line 249 of file RTensor.hxx.
|
inline |
Definition at line 191 of file CpuTensor.h.
|
inline |
Definition at line 149 of file CpuTensor.h.
|
inline |
Definition at line 190 of file CpuTensor.h.
|
inline |
Return raw pointer to the elements stored contiguously in column-major order.
Definition at line 141 of file CpuTensor.h.
|
inline |
Definition at line 142 of file CpuTensor.h.
|
inlineinherited |
Definition at line 243 of file RTensor.hxx.
|
inlineinherited |
Definition at line 242 of file RTensor.hxx.
|
inlineinherited |
Definition at line 244 of file RTensor.hxx.
|
inline |
Definition at line 177 of file CpuTensor.h.
|
inlineinherited |
Definition at line 251 of file RTensor.hxx.
|
inlineinherited |
Definition at line 250 of file RTensor.hxx.
|
inline |
Map the given function over the matrix elements.
Executed in parallel using TThreadExecutor.
Definition at line 325 of file CpuTensor.h.
|
inline |
Same as maps but takes the input values from the tensor A and writes the results in this tensor.
Definition at line 354 of file CpuTensor.h.
|
inline |
Convert to a TMatrixT<AFloat_t> object.
Performs a deep copy of the matrix elements.
Definition at line 128 of file CpuTensor.h.
|
inline |
Definition at line 251 of file CpuTensor.h.
|
inline |
Definition at line 272 of file CpuTensor.h.
|
inline |
Definition at line 261 of file CpuTensor.h.
|
inline |
Definition at line 280 of file CpuTensor.h.
|
inlineinherited |
Access elements.
| [in] | idx | Index vector |
Definition at line 236 of file RTensor.hxx.
|
inlineinherited |
Access elements.
| [in] | idx | Index vector |
Definition at line 237 of file RTensor.hxx.
|
inherited |
Access elements.
| [in] | idx | Indices |
Definition at line 238 of file RTensor.hxx.
|
inherited |
Access elements.
| [in] | idx | Indices |
Definition at line 239 of file RTensor.hxx.
|
inline |
Definition at line 237 of file CpuTensor.h.
|
inline |
Definition at line 302 of file CpuTensor.h.
|
inline |
Definition at line 310 of file CpuTensor.h.
|
inline |
Definition at line 212 of file CpuTensor.h.
|
inlineinherited |
Reshape tensor.
| [in] | shape | Shape vector |
Definition at line 260 of file RTensor.hxx.
|
inlineprotectedinherited |
Reshape tensor in place.
| [in] | shape | Shape vector Reshape tensor without changing the overall size |
Definition at line 181 of file RTensor.hxx.
|
inlineinherited |
Resize tensor.
| [in] | shape | Shape vector |
Definition at line 261 of file RTensor.hxx.
|
inlineinherited |
Create a slice of the tensor.
| [in] | slice | Slice vector |
Definition at line 262 of file RTensor.hxx.
|
inlineinherited |
Squeeze dimensions.
Definition at line 258 of file RTensor.hxx.
|
inlineinherited |
Transpose.
Definition at line 257 of file RTensor.hxx.
|
inline |
Definition at line 243 of file CpuTensor.h.
|
friend |
Definition at line 354 of file CpuTensor.h.
|
privateinherited |
Definition at line 178 of file RTensor.hxx.
|
privateinherited |
Definition at line 177 of file RTensor.hxx.
|
privateinherited |
Definition at line 176 of file RTensor.hxx.
|
privateinherited |
Definition at line 173 of file RTensor.hxx.
|
privateinherited |
Definition at line 175 of file RTensor.hxx.
|
privateinherited |
Definition at line 174 of file RTensor.hxx.