Tensor#

#include <keras_model.h>
Brief description

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor <class-tensor>`
[Tensor](#class-tensor)

Detailed description#

List of Public Methods#

Complete Member Function Documentation#

Dot#

Definition
Tensor Tensor::Dot(const Tensor &other)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor Tensor::Dot(const Tensor &other) <tensor-public-tensor-tensor-dot-const-tensor-ref-other>`
[Tensor Tensor::Dot(const Tensor &other)](#tensor-public-tensor-tensor-dot-const-tensor-ref-other)

Fill#

Definition
void Tensor::Fill(float value)
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Fill(float value) <tensor-public-void-tensor-fill-float-value>`
[void Tensor::Fill(float value)](#tensor-public-void-tensor-fill-float-value)

Flatten#

Definition
void Tensor::Flatten()
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Flatten() <tensor-public-void-tensor-flatten>`
[void Tensor::Flatten()](#tensor-public-void-tensor-flatten)

Multiply#

Definition
Tensor Tensor::Multiply(const Tensor &other)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor Tensor::Multiply(const Tensor &other) <tensor-public-tensor-tensor-multiply-const-tensor-ref-other>`
[Tensor Tensor::Multiply(const Tensor &other)](#tensor-public-tensor-tensor-multiply-const-tensor-ref-other)

operator()#

Definition
float & Tensor::operator()(int i)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`float & Tensor::operator()(int i) <tensor-public-float-ref-tensor-operator-int-i>`
[float & Tensor::operator()(int i)](#tensor-public-float-ref-tensor-operator-int-i)

operator()#

Definition
float & Tensor::operator()(int i, int j)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`float & Tensor::operator()(int i, int j) <tensor-public-float-ref-tensor-operator-int-i-int-j>`
[float & Tensor::operator()(int i, int j)](#tensor-public-float-ref-tensor-operator-int-i-int-j)

operator()#

Definition
float Tensor::operator()(int i, int j) const
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`float Tensor::operator()(int i, int j) const <tensor-public-float-tensor-operator-int-i-int-j-const>`
[float Tensor::operator()(int i, int j) const](#tensor-public-float-tensor-operator-int-i-int-j-const)

operator()#

Definition
float & Tensor::operator()(int i, int j, int k)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`float & Tensor::operator()(int i, int j, int k) <tensor-public-float-ref-tensor-operator-int-i-int-j-int-k>`
[float & Tensor::operator()(int i, int j, int k)](#tensor-public-float-ref-tensor-operator-int-i-int-j-int-k)

operator()#

Definition
float & Tensor::operator()(int i, int j, int k, int l)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`float & Tensor::operator()(int i, int j, int k, int l) <tensor-public-float-ref-tensor-operator-int-i-int-j-int-k-int-l>`
[float & Tensor::operator()(int i, int j, int k, int l)](#tensor-public-float-ref-tensor-operator-int-i-int-j-int-k-int-l)

operator +#

Definition
Tensor Tensor::operator+(const Tensor &other)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor Tensor::operator+(const Tensor &other) <tensor-public-tensor-tensor-operator+-const-tensor-ref-other>`
[Tensor Tensor::operator+(const Tensor &other)](#tensor-public-tensor-tensor-operator+-const-tensor-ref-other)

Print#

Definition
void Tensor::Print()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Print() <tensor-public-void-tensor-print>`
[void Tensor::Print()](#tensor-public-void-tensor-print)

PrintShape#

Definition
void Tensor::PrintShape()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::PrintShape() <tensor-public-void-tensor-printshape>`
[void Tensor::PrintShape()](#tensor-public-void-tensor-printshape)

Resize#

Definition
void Tensor::Resize(int i)
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Resize(int i) <tensor-public-void-tensor-resize-int-i>`
[void Tensor::Resize(int i)](#tensor-public-void-tensor-resize-int-i)

Resize#

Definition
void Tensor::Resize(int i, int j)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Resize(int i, int j) <tensor-public-void-tensor-resize-int-i-int-j>`
[void Tensor::Resize(int i, int j)](#tensor-public-void-tensor-resize-int-i-int-j)

Resize#

Definition
void Tensor::Resize(int i, int j, int k)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Resize(int i, int j, int k) <tensor-public-void-tensor-resize-int-i-int-j-int-k>`
[void Tensor::Resize(int i, int j, int k)](#tensor-public-void-tensor-resize-int-i-int-j-int-k)

Resize#

Definition
void Tensor::Resize(int i, int j, int k, int l)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void Tensor::Resize(int i, int j, int k, int l) <tensor-public-void-tensor-resize-int-i-int-j-int-k-int-l>`
[void Tensor::Resize(int i, int j, int k, int l)](#tensor-public-void-tensor-resize-int-i-int-j-int-k-int-l)

Select#

Definition
Tensor Tensor::Select(int row) const
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor Tensor::Select(int row) const <tensor-public-tensor-tensor-select-int-row-const>`
[Tensor Tensor::Select(int row) const](#tensor-public-tensor-tensor-select-int-row-const)

Tensor#

Definition
Tensor::Tensor()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor::Tensor() <tensor-public-tensor-tensor>`
[Tensor::Tensor()](#tensor-public-tensor-tensor)

Tensor#

Definition
Tensor::Tensor(int i)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor::Tensor(int i) <tensor-public-tensor-tensor-int-i>`
[Tensor::Tensor(int i)](#tensor-public-tensor-tensor-int-i)

Tensor#

Definition
Tensor::Tensor(int i, int j)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor::Tensor(int i, int j) <tensor-public-tensor-tensor-int-i-int-j>`
[Tensor::Tensor(int i, int j)](#tensor-public-tensor-tensor-int-i-int-j)

Tensor#

Definition
Tensor::Tensor(int i, int j, int k)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor::Tensor(int i, int j, int k) <tensor-public-tensor-tensor-int-i-int-j-int-k>`
[Tensor::Tensor(int i, int j, int k)](#tensor-public-tensor-tensor-int-i-int-j-int-k)

Tensor#

Definition
Tensor::Tensor(int i, int j, int k, int l)
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor::Tensor(int i, int j, int k, int l) <tensor-public-tensor-tensor-int-i-int-j-int-k-int-l>`
[Tensor::Tensor(int i, int j, int k, int l)](#tensor-public-tensor-tensor-int-i-int-j-int-k-int-l)

Unpack#

Definition
Tensor Tensor::Unpack(int row) const
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Tensor Tensor::Unpack(int row) const <tensor-public-tensor-tensor-unpack-int-row-const>`
[Tensor Tensor::Unpack(int row) const](#tensor-public-tensor-tensor-unpack-int-row-const)

Attributes Documentation#

data_ (public)
std::vector<float> Tensor::data_
dims_ (public)
std::vector<int> Tensor::dims_