module tensorflow
Global Variables
- ffi
class Node
A representation of TensorFlow graph input or output node
method __init__
__init__(name, node_id)
property id
property name
method to_cffi
to_cffi()
class TensorType
An enumeration.
class Tensor
A representation of a Tensor
method __init__
__init__(dims, dtype: TensorType)
property data
property dims
method get
get(indices)
method get_index
get_index(indices)
method len
len()
method to_cffi
to_cffi()
class TensorFlowModel
A TensorFlow model vAccel resource
method __init__
__init__()
Create a TensorFlow model resource
method from_data
from_data(data: bytes)
Initialize a TensorFlow model from a byte array
method from_model_file
from_model_file(model_path: str)
Initialize a TensorFlow model by loading it from a .pb file
method from_session
from_session(session, model_path: str)
method id
id()
Id of the TensorFlow model
method is_registered
is_registered(session)
Returns True if the model is registered with session
method load_graph
load_graph(session)
method model_register
model_register()
method model_set_path
model_set_path(model_path: str)
method run
run(session, in_nodes, in_tensors, out_nodes)