Tensor#
#include <keras_model.h>
How to cite this class in this doc#
:ref:`Tensor <class-tensor>`
[Tensor](#class-tensor)
Detailed description#
List of Public Methods#
Complete Member Function Documentation#
Dot
Tensor Tensor::Dot(const Tensor &other)
References
How to cite in this doc:
:ref:`Tensor Tensor::Dot(const Tensor &other) <public-tensor-tensor-dot-const-tensor-ref-other>`
[Tensor Tensor::Dot(const Tensor &other)](#public-tensor-tensor-dot-const-tensor-ref-other)
Fill
void Tensor::Fill(float value)
References
Referenced By
How to cite in this doc:
:ref:`void Tensor::Fill(float value) <public-void-tensor-fill-float-value>`
[void Tensor::Fill(float value)](#public-void-tensor-fill-float-value)
Flatten
void Tensor::Flatten()
References
Referenced By
How to cite in this doc:
:ref:`void Tensor::Flatten() <public-void-tensor-flatten>`
[void Tensor::Flatten()](#public-void-tensor-flatten)
Multiply
Tensor Tensor::Multiply(const Tensor &other)
How to cite in this doc:
:ref:`Tensor Tensor::Multiply(const Tensor &other) <public-tensor-tensor-multiply-const-tensor-ref-other>`
[Tensor Tensor::Multiply(const Tensor &other)](#public-tensor-tensor-multiply-const-tensor-ref-other)
operator()
float Tensor::operator()(int i, int j) const
How to cite in this doc:
:ref:`float Tensor::operator()(int i, int j) const <public-float-tensor-operator-int-i-int-j-const>`
[float Tensor::operator()(int i, int j) const](#public-float-tensor-operator-int-i-int-j-const)
operator()
float & Tensor::operator()(int i, int j, int k)
How to cite in this doc:
:ref:`float & Tensor::operator()(int i, int j, int k) <public-float-ref-tensor-operator-int-i-int-j-int-k>`
[float & Tensor::operator()(int i, int j, int k)](#public-float-ref-tensor-operator-int-i-int-j-int-k)
operator()
float & Tensor::operator()(int i, int j, int k, int l)
How to cite in this doc:
:ref:`float & Tensor::operator()(int i, int j, int k, int l) <public-float-ref-tensor-operator-int-i-int-j-int-k-int-l>`
[float & Tensor::operator()(int i, int j, int k, int l)](#public-float-ref-tensor-operator-int-i-int-j-int-k-int-l)
operator +
Tensor Tensor::operator+(const Tensor &other)
How to cite in this doc:
:ref:`Tensor Tensor::operator+(const Tensor &other) <public-tensor-tensor-operator+-const-tensor-ref-other>`
[Tensor Tensor::operator+(const Tensor &other)](#public-tensor-tensor-operator+-const-tensor-ref-other)
Print
void Tensor::Print()
References
How to cite in this doc:
:ref:`void Tensor::Print() <public-void-tensor-print>`
[void Tensor::Print()](#public-void-tensor-print)
PrintShape
void Tensor::PrintShape()
References
How to cite in this doc:
:ref:`void Tensor::PrintShape() <public-void-tensor-printshape>`
[void Tensor::PrintShape()](#public-void-tensor-printshape)
Resize
void Tensor::Resize(int i)
Referenced By
How to cite in this doc:
:ref:`void Tensor::Resize(int i) <public-void-tensor-resize-int-i>`
[void Tensor::Resize(int i)](#public-void-tensor-resize-int-i)
Resize
void Tensor::Resize(int i, int j, int k, int l)
How to cite in this doc:
:ref:`void Tensor::Resize(int i, int j, int k, int l) <public-void-tensor-resize-int-i-int-j-int-k-int-l>`
[void Tensor::Resize(int i, int j, int k, int l)](#public-void-tensor-resize-int-i-int-j-int-k-int-l)
Select
Tensor Tensor::Select(int row) const
Referenced By
How to cite in this doc:
:ref:`Tensor Tensor::Select(int row) const <public-tensor-tensor-select-int-row-const>`
[Tensor Tensor::Select(int row) const](#public-tensor-tensor-select-int-row-const)
Tensor
Tensor::Tensor()
Referenced By
How to cite in this doc:
:ref:`Tensor::Tensor() <public-tensor-tensor>`
[Tensor::Tensor()](#public-tensor-tensor)
Tensor
Tensor::Tensor(int i)
References
How to cite in this doc:
:ref:`Tensor::Tensor(int i) <public-tensor-tensor-int-i>`
[Tensor::Tensor(int i)](#public-tensor-tensor-int-i)
Tensor
Tensor::Tensor(int i, int j)
References
How to cite in this doc:
:ref:`Tensor::Tensor(int i, int j) <public-tensor-tensor-int-i-int-j>`
[Tensor::Tensor(int i, int j)](#public-tensor-tensor-int-i-int-j)
Tensor
Tensor::Tensor(int i, int j, int k)
References
How to cite in this doc:
:ref:`Tensor::Tensor(int i, int j, int k) <public-tensor-tensor-int-i-int-j-int-k>`
[Tensor::Tensor(int i, int j, int k)](#public-tensor-tensor-int-i-int-j-int-k)
Tensor
Tensor::Tensor(int i, int j, int k, int l)
References
How to cite in this doc:
:ref:`Tensor::Tensor(int i, int j, int k, int l) <public-tensor-tensor-int-i-int-j-int-k-int-l>`
[Tensor::Tensor(int i, int j, int k, int l)](#public-tensor-tensor-int-i-int-j-int-k-int-l)
Attributes Documentation#
data_ (public)
std::vector<float> Tensor::data_
dims_ (public)
std::vector<int> Tensor::dims_