TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Tensor Class Reference

#include <keras_model.h>

Public Member Functions

 Tensor ()
 Tensor (int i)
 Tensor (int i, int j)
 Tensor (int i, int j, int k)
 Tensor (int i, int j, int k, int l)
void Resize (int i)
void Resize (int i, int j)
void Resize (int i, int j, int k)
void Resize (int i, int j, int k, int l)
void Flatten ()
float & operator() (int i)
float & operator() (int i, int j)
float operator() (int i, int j) const
float & operator() (int i, int j, int k)
float & operator() (int i, int j, int k, int l)
void Fill (float value)
Tensor Unpack (int row) const
Tensor Select (int row) const
Tensor operator+ (const Tensor &other)
Tensor Multiply (const Tensor &other)
Tensor Dot (const Tensor &other)
void Print ()
void PrintShape ()

Public Attributes

std::vector< int > dims_
std::vector< float > data_

Detailed Description

Definition at line 46 of file keras_model.h.

Constructor & Destructor Documentation

◆ Tensor() [1/5]

Tensor::Tensor ( )
inline

Definition at line 48 of file keras_model.h.

◆ Tensor() [2/5]

Tensor::Tensor ( int i)
inline

Definition at line 50 of file keras_model.h.

◆ Tensor() [3/5]

Tensor::Tensor ( int i,
int j )
inline

Definition at line 52 of file keras_model.h.

◆ Tensor() [4/5]

Tensor::Tensor ( int i,
int j,
int k )
inline

Definition at line 54 of file keras_model.h.

◆ Tensor() [5/5]

Tensor::Tensor ( int i,
int j,
int k,
int l )
inline

Definition at line 56 of file keras_model.h.

Member Function Documentation

◆ Dot()

Tensor Tensor::Dot ( const Tensor & other)
inline

Definition at line 189 of file keras_model.h.

◆ Fill()

void Tensor::Fill ( float value)
inline

Definition at line 130 of file keras_model.h.

◆ Flatten()

void Tensor::Flatten ( )
inline

Definition at line 78 of file keras_model.h.

◆ Multiply()

Tensor Tensor::Multiply ( const Tensor & other)
inline

Definition at line 174 of file keras_model.h.

◆ operator()() [1/5]

float & Tensor::operator() ( int i)
inline

Definition at line 88 of file keras_model.h.

◆ operator()() [2/5]

float & Tensor::operator() ( int i,
int j )
inline

Definition at line 95 of file keras_model.h.

◆ operator()() [3/5]

float Tensor::operator() ( int i,
int j ) const
inline

Definition at line 103 of file keras_model.h.

◆ operator()() [4/5]

float & Tensor::operator() ( int i,
int j,
int k )
inline

Definition at line 111 of file keras_model.h.

◆ operator()() [5/5]

float & Tensor::operator() ( int i,
int j,
int k,
int l )
inline

Definition at line 120 of file keras_model.h.

◆ operator+()

Tensor Tensor::operator+ ( const Tensor & other)
inline

Definition at line 159 of file keras_model.h.

◆ Print()

void Tensor::Print ( )
inline

Definition at line 208 of file keras_model.h.

◆ PrintShape()

void Tensor::PrintShape ( )
inline

Definition at line 260 of file keras_model.h.

◆ Resize() [1/4]

void Tensor::Resize ( int i)
inline

Definition at line 58 of file keras_model.h.

◆ Resize() [2/4]

void Tensor::Resize ( int i,
int j )
inline

Definition at line 63 of file keras_model.h.

◆ Resize() [3/4]

void Tensor::Resize ( int i,
int j,
int k )
inline

Definition at line 68 of file keras_model.h.

◆ Resize() [4/4]

void Tensor::Resize ( int i,
int j,
int k,
int l )
inline

Definition at line 73 of file keras_model.h.

◆ Select()

Tensor Tensor::Select ( int row) const
inline

Definition at line 152 of file keras_model.h.

◆ Unpack()

Tensor Tensor::Unpack ( int row) const
inline

Definition at line 134 of file keras_model.h.

Member Data Documentation

◆ data_

std::vector<float> Tensor::data_

Definition at line 273 of file keras_model.h.

◆ dims_

std::vector<int> Tensor::dims_

Definition at line 272 of file keras_model.h.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/triocfd-documentation/checkouts/next/src/ext/kerasify/keras_model.h