Skip to content

Commit

Permalink
fixes is_cpu_op conversion in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruAntonescuKeysight committed May 13, 2024
1 parent 233b475 commit d966ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/feeder/et_feeder_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ETFeederNode::ETFeederNode(std::shared_ptr<ChakraProtoMsg::Node> node) {
const string& attr_name = attr.name();

if (attr_name == "is_cpu_op") {
this->is_cpu_op_ = static_cast<uint32_t>(attr.int32_val());
this->is_cpu_op_ = static_cast<bool>(attr.bool_val());
} else if (attr_name == "num_ops") {
this->num_ops_ = static_cast<uint64_t>(attr.int64_val());
} else if (attr_name == "tensor_size") {
Expand Down
2 changes: 1 addition & 1 deletion src/feeder/et_feeder_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ETFeederNode {

uint64_t id_;
std::string name_;
uint32_t is_cpu_op_;
bool is_cpu_op_;
uint64_t runtime_;
uint64_t num_ops_;
uint32_t tensor_loc_;
Expand Down

0 comments on commit d966ec8

Please sign in to comment.