Skip to content

Commit

Permalink
[ BCQ ] Add a feature to enable BCQ tensor as a weight type (2)
Browse files Browse the repository at this point in the history
- This patch adds a missing part of #2820.
- In order to use BCQ as a weight, this patch should be included.

Self-evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Eunju Yang <[email protected]>
  • Loading branch information
EunjuYang authored and jijoongmoon committed Dec 19, 2024
1 parent bc8217c commit e5bf9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nntrainer/layers/layer_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ class RunLayerContext {
Tensor &t_w = weights[idx]->getVariableRef();

if (t_w.getDataType() == Tdatatype::FP32 ||
t_w.getDataType() == Tdatatype::FP16) {
t_w.getDataType() == Tdatatype::FP16 ||
t_w.getDataType() == Tdatatype::BCQ) {
w = t_w;
return;
}
Expand Down

0 comments on commit e5bf9d2

Please sign in to comment.