MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TensorTypes.hpp File Reference

Contains declaration of tensor types. More...

#include <types/Tensor.hpp>
#include <types/Batch.hpp>
Include dependency graph for TensorTypes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mic
 
 mic::types
 

Macros

#define MAKE_TENSOR_PTR(eT,...)   std::make_shared<mic::types::Tensor<eT> >( mic::types::Tensor<eT> ( { __VA_ARGS__ } ))
 Macro for initialization of tensor pointer. More...
 

Typedefs

template<typename eT >
using mic::types::TensorPtr = typename std::shared_ptr< mic::types::Tensor< eT > >
 Typedef for a shared pointer to template-typed dynamic matrices. More...
 
template<typename eT >
using mic::types::TensorSample = typename mic::types::Sample< mic::types::Tensor< eT >, unsigned int >
 The <Tensor-uint> sample type. More...
 
template<typename eT >
using mic::types::TensorSamplePtr = typename std::shared_ptr< mic::types::TensorSample< eT > >
 Pointer to the <Tensor-uint> sample type. More...
 
template<typename eT >
using mic::types::TensorBatch = typename mic::types::Batch< mic::types::Tensor< eT >, unsigned int >
 The <Tensor-uint> batch type. More...
 
template<typename eT >
using mic::types::TensorBatchPtr = typename std::shared_ptr< mic::types::TensorBatch< eT > >
 Pointer to the <Tensor-uint> batch type. More...
 
typedef mic::types::Tensor< int > mic::types::TensorXi
 Tensor of integers (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXi
mic::types::TensorXiPtr
 Shared pointer to tensor of integers (of dynamic size). More...
 
typedef mic::types::Tensor< float > mic::types::TensorXf
 Tensor of single precision floats (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXf
mic::types::TensorXfPtr
 Shared pointer to tensor of single precision floats (of dynamic size). More...
 
typedef mic::types::Tensor
< double > 
mic::types::TensorXd
 Tensor of double precision floats (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXd
mic::types::TensorXdPtr
 Shared pointer to tensor of double precision floats (of dynamic size). More...
 

Detailed Description

Contains declaration of tensor types.

Copyright (C) tkornuta, IBM Corporation 2015-2019

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author
tkornut
Date
Mar 17, 2016

Definition in file TensorTypes.hpp.

Macro Definition Documentation

#define MAKE_TENSOR_PTR (   eT,
  ... 
)    std::make_shared<mic::types::Tensor<eT> >( mic::types::Tensor<eT> ( { __VA_ARGS__ } ))

Macro for initialization of tensor pointer.

Author
tkornuta

Definition at line 45 of file TensorTypes.hpp.

Referenced by mic::importers::CIFARImporter< eT >::importData(), and mic::importers::BMPImporter< eT >::loadBMP().