tf_node->setOpType(tflite::BuiltinOperator_CONV_2D);
- auto strides = std::get<std::array<props::Stride, CONV2D_DIM>>(props);
+ auto &strides = std::get<std::array<props::Stride, CONV2D_DIM>>(props);
assert(strides.size() == CONV2D_DIM);
const auto &padding = std::get<props::Padding2D>(props).get();
if (padding != "same" && padding != "valid") {
createIfNull(tf_node);
tf_node->setOpType(tflite::BuiltinOperator_RESHAPE);
- auto targetShape = std::get<props::TargetShape>(props).get();
+ auto &targetShape = std::get<props::TargetShape>(props).get();
/// @todo new shape should be 2 rank {batch, channel * height * width}
std::vector<int32_t> new_shape_vec = {
}
int Profiler::registerTimeItem(const std::string &name) {
+ std::lock_guard<std::mutex> lock_listener(listeners_mutex);
std::lock_guard<std::mutex> lock(registr_mutex);
int item = time_item_names.size() + 1;