afe.ir.serializer.visualizer_defines

Python analogues of data structures for the Netron file format. These are temporary data structures representing data that will be written to a JSON file for Netron.

Attributes

NNodeName

Classes

NArray

Properties of an array, to be represented in a Keras JSON file's weightsManifest.

NLayerWeights

Constant arrays associated with a layer, to be represented in a Keras JSON file's

NInboundNode

Properties of an inbound node, to be represented in a Keras JSON file.

NLayer

Properties of a layer, to be represented in a Keras JSON file.

NInterfaceLayer

Properties of one input or output of a model, to be represented in a Keras JSON file.

Module Contents

afe.ir.serializer.visualizer_defines.NNodeName[source]
class afe.ir.serializer.visualizer_defines.NArray[source]

Properties of an array, to be represented in a Keras JSON file’s weightsManifest.

dtype: str[source]
shape: List[int][source]
name: str[source]
to_json() Any[source]
class afe.ir.serializer.visualizer_defines.NLayerWeights[source]

Constant arrays associated with a layer, to be represented in a Keras JSON file’s weightsManifest.

weights: List[NArray][source]
to_json() Any[source]
class afe.ir.serializer.visualizer_defines.NInboundNode[source]

Properties of an inbound node, to be represented in a Keras JSON file. An inbound node corresponds to one input graph edge of an AwesomeNode.

name: NNodeName[source]
index: int[source]
to_json() Any[source]
class afe.ir.serializer.visualizer_defines.NLayer[source]

Properties of a layer, to be represented in a Keras JSON file. A layer corresponds to an AwesomeNode.

class_name: str[source]
name: NNodeName[source]
inbound_nodes: List[NInboundNode][source]
config: Dict[str, Any][source]
to_json() Any[source]
class afe.ir.serializer.visualizer_defines.NInterfaceLayer[source]

Properties of one input or output of a model, to be represented in a Keras JSON file.

layer_name: NNodeName[source]
layer_num: int[source]
to_json()[source]