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

Static Public Member Functions

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

Static Public Attributes

dictionary options = {}
 
 model = None
 

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 4082 of file pyDAFoam.py.

Member Function Documentation

◆ initialize()

def initialize ( )
static
Initialize parameters and load models

Definition at line 4094 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 4109 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 4121 of file pyDAFoam.py.

Member Data Documentation

◆ options

dictionary options = {}
static

◆ model

model = None
static

Definition at line 4091 of file pyDAFoam.py.


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