Skip to content

Commit

Permalink
[Update] Backwarding support set to false
Browse files Browse the repository at this point in the history
Reviewed PR comments
SupportBackwarding() set to false

Signed-off-by: Yash Singh <[email protected]>
  • Loading branch information
yashSingh0723 committed Dec 6, 2024
1 parent 0c9e7aa commit d08a0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/ccapi/include/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ enum LayerType {
LAYER_UPSAMPLE2D, /**< Upsample 2D Layer type */
LAYER_RMSNORM = ML_TRAIN_LAYER_TYPE_RMSNORM, /**<RMS NORM Layer */
LAYER_TRANSPOSE = ML_TRAIN_LAYER_TYPE_TRANSPOSE, /**< Transpose Layer type */
LAYER_UNKNOWN = ML_TRAIN_LAYER_TYPE_UNKNOWN, /**< Unknown */
LAYER_LM_HEAD = ML_TRAIN_LAYER_TYPE_LM_HEAD, /**< LM Head Layer */
LAYER_UNKNOWN = ML_TRAIN_LAYER_TYPE_UNKNOWN, /**< Unknown */
};

/**
Expand Down
2 changes: 1 addition & 1 deletion nntrainer/layers/cl_layers/lm_head_layer_cl.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class CustomLMHeadLayerCl : public LayerImpl {
/**
* @copydoc bool supportBackwarding() const
*/
bool supportBackwarding() const override { return true; };
bool supportBackwarding() const override { return false; };

/**
* @copydoc Layer::exportTo(Exporter &exporter, ExportMethods method)
Expand Down

0 comments on commit d08a0ec

Please sign in to comment.