Skip to content

morapi_DnnPlan Struct Reference

dnn » prof

Dnn plan.
More...

#include <morapi_softneuro.h>

Public Member Functions

morapi_Dnn morapi_DnnPlan_getDnn (const morapi_DnnPlan *self)
const morapi_DnnNetPlan morapi_DnnPlan_findNetPlan (const morapi_DnnPlan *self, const morapi_DnnNet *i_net)
const morapi_DnnLayerPlan morapi_DnnPlan_findLayerPlan (const morapi_DnnPlan *self, const morapi_DnnLayer *i_layer)
morapi_Real  morapi_DnnPlan_getUsec (const morapi_DnnPlan *self)


Detailed Description

Dnn plan.

DnnPlan is composing DnnRecipe. Created by DnnOptimizer.


Member Function Documentation


morapi_DnnPlan_getDnn()

morapi_Dnn * morapi_DnnPlan_getDnn (const morapi_DnnPlan * self)

Gets the dnn.

Parameters

  • self : the dnn plan object

Returns

the dnn object


morapi_DnnPlan_findNetPlan()

const morapi_DnnNetPlan * morapi_DnnPlan_findNetPlan (const morapi_DnnPlan * self,
                                                      const morapi_DnnNet * i_net)

Finds the net plan for i_net.

Parameters

  • self : the dnn plan object
  • i_net : the dnn net

Returns

the net plan for i_net


morapi_DnnPlan_findLayerPlan()

const morapi_DnnLayerPlan * morapi_DnnPlan_findLayerPlan (const morapi_DnnPlan * self,
                                                          const morapi_DnnLayer * i_layer)

Finds the layer plan for i_layer.

Parameters

  • self : the dnn plan object
  • i_layer : the dnn layer

Returns

the layer plan for i_layer


morapi_DnnPlan_getUsec()

morapi_Real morapi_DnnPlan_getUsec (const morapi_DnnPlan * self)

Gets the forward time (usec).

Parameters

  • self : the dnn plan object

Returns

the forward time [usec]