Skip to content

Commit

Permalink
rebase on master
Browse files Browse the repository at this point in the history
  • Loading branch information
zetwhite committed Jul 29, 2024
1 parent a75992c commit ed4a53d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion runtime/onert/backend/train/ops/BinaryArithmeticLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BinaryArithmeticLayer : public ::onert::exec::train::ITrainableFunction,

ArithmeticType _arithmetic_type;
ir::Activation _activation;
ExtraTensor* _act_back_prop_output;
ExtraTensor *_act_back_prop_output;
};

} // namespace ops
Expand Down
13 changes: 6 additions & 7 deletions runtime/onert/backend/train/ops/ConvolutionLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ backend::train::ExtraTensorRequest
createTransposeTenosrRequest(const backend::IPortableTensor *origin,
backend::train::ExtraTensor **const addr)
{
return backend::train::ExtraTensorRequest(
transposeOperandInfo(origin->get_info()),
origin->layout(),
backend::train::ExtraTensorLifeTime::BACKWARD,
addr);
return backend::train::ExtraTensorRequest(transposeOperandInfo(origin->get_info()),
origin->layout(),
backend::train::ExtraTensorLifeTime::BACKWARD, addr);
}

} // namespace
Expand Down Expand Up @@ -105,14 +103,15 @@ void ConvolutionLayer::configureBackward(const IPortableTensor *weights,
throw std::runtime_error("train ConvolutionLayer: Unsupported dilation yet");

// TO avoid unused parameter error
if(weights == nullptr){};
if (weights == nullptr)
{
};

if (activation != ir::Activation::NONE)
{
}
}


ExtraTensorRequests ConvolutionLayer::requestExtraTensors()
{
ExtraTensorRequests reqs;
Expand Down

0 comments on commit ed4a53d

Please sign in to comment.