Deeploy.Targets.Generic.Layers.SubLayer
- Deeploy.Targets.Generic.Layers.SubLayer
Methods
__init__(maps)bind(ctxt)Attempt to bind the mapper; discard mapper if binding does not work
broadcast(ctxt[, default_channels_first])Broadcasts the operator's shapes and updates the NetworkContext
codeTransform(ctxt[, verbose])Apply CodeTransformations to associated mapper's binder
computeOps()Returns the number of operations (1 MAC = 2 Ops) of this operator
computeShapes(inputShapes, outputShapes, ...)Takes input and output shapes from the graph-representation and broadcasts them to a predefined layout
discardCurrentMapper()Discard the current Mapper
generate(ctxt)Invoke mapper's generate method
parse(ctxt, default_channels_first)Iterate through all possible mappers and elect the first one that work
resetDiscardedMappers()Reset all discarded mappers
typeCheck(ctxt)Invokes the mapper's typeCheck method
Attributes
mapsAll potential mappings of an ONNX Layer
mapperThe currently elected NodeMapper to represent this layer
discardedMappersSet of all NodeMappers which cannot be used to represent this layer
nodeThe represented operator
alias of
AddLayer