Tensor#
#include <keras_model.h>
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#
Tensor Tensor::Dot(const Tensor &other)
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#
void Tensor::Fill(float value)
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#
void Tensor::Flatten()
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#
Tensor Tensor::Multiply(const Tensor &other)
Detailed description
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()#
float & Tensor::operator()(int i)
Detailed description
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()#
float & Tensor::operator()(int i, int j)
Detailed description
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()#
float Tensor::operator()(int i, int j) const
Detailed description
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()#
float & Tensor::operator()(int i, int j, int k)
Detailed description
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()#
float & Tensor::operator()(int i, int j, int k, int l)
Detailed description
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 +#
Tensor Tensor::operator+(const Tensor &other)
Detailed description
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#
void Tensor::Print()
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#
void Tensor::PrintShape()
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#
void Tensor::Resize(int i)
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:`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#
void Tensor::Resize(int i, int j)
Detailed description
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#
void Tensor::Resize(int i, int j, int k)
Detailed description
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#
void Tensor::Resize(int i, int j, int k, int l)
Detailed description
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#
Tensor Tensor::Select(int row) const
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::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#
Tensor::Tensor()
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#
Tensor::Tensor(int i)
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#
Tensor::Tensor(int i, int j)
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#
Tensor::Tensor(int i, int j, int k)
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#
Tensor::Tensor(int i, int j, int k, int l)
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#
Tensor Tensor::Unpack(int row) const
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::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#
std::vector<float> Tensor::data_
std::vector<int> Tensor::dims_