Skip to content

Commit

Permalink
update enable_half_partial (PaddlePaddle#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaozhixin authored Apr 21, 2022
1 parent 28dc16b commit bfd5466
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddle/fluid/platform/device/ipu/ipu_strategy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,10 @@ IpuStrategy::IpuStrategy() {
RegisterSetter(bool_options, "enable_half_partial", [&](bool value) {
if (value) {
popart_options.partialsTypeMatMuls = "half";
popart_options.convolutionOptions.insert({{"partialsType", "half"}});
} else {
popart_options.partialsTypeMatMuls = "float";
popart_options.convolutionOptions.insert({{"partialsType", "float"}});
}
});

Expand Down

0 comments on commit bfd5466

Please sign in to comment.