Static Public Member Functions | Static Public Attributes | List of all members
TensorFlowHelper Class Reference

Static Public Member Functions

def initialize ()
 
def setModelName (modelName)
 
def predict (inputs, n, outputs, m)
 
def calcJacVecProd (inputs, inputs_b, n, outputs, outputs_b, m)
 

Static Public Attributes

dictionary options = {}
 
dictionary model = {}
 
 modelName = None
 
dictionary predictBatchSize = {}
 
dictionary nInputs = {}
 

Detailed Description

TensorFlow helper class.
NOTE: this is a static class because the callback function
does not accept non-static class members (seg fault)

Definition at line 2227 of file pyDAFoam.py.

Member Function Documentation

◆ initialize()

def initialize ( )
static
Initialize parameters and load models

Definition at line 2245 of file pyDAFoam.py.

◆ setModelName()

def setModelName (   modelName)
static
Set the model name from the C++ to Python layer

Definition at line 2258 of file pyDAFoam.py.

◆ predict()

def predict (   inputs,
  n,
  outputs,
  m 
)
static
Calculate the outputs based on the inputs using the saved model

Definition at line 2265 of file pyDAFoam.py.

◆ calcJacVecProd()

def calcJacVecProd (   inputs,
  inputs_b,
  n,
  outputs,
  outputs_b,
  m 
)
static
Calculate the gradients of the outputs wrt the inputs

Definition at line 2281 of file pyDAFoam.py.

Member Data Documentation

◆ options

dictionary options = {}
static

◆ model

dictionary model = {}
static

Definition at line 2236 of file pyDAFoam.py.

◆ modelName

modelName = None
static

Definition at line 2238 of file pyDAFoam.py.

◆ predictBatchSize

dictionary predictBatchSize = {}
static

Definition at line 2240 of file pyDAFoam.py.

◆ nInputs

dictionary nInputs = {}
static

Definition at line 2242 of file pyDAFoam.py.


The documentation for this class was generated from the following file: