// // Copyright (c) 2017 XiaoMi All rights reserved. // Generated by the mace converter. DO NOT EDIT! // #include #include #include "mace/public/mace.h" #include "mace/utils/env_time.h" #include "mace/utils/logging.h" namespace mace { namespace {{tag}} { void CreateTensor{{tensor_info.id}}(std::vector &tensors, const unsigned char *model_data) { MACE_LATENCY_LOGGER(2, "Create tensor {{ tensor.name }}"); tensors.emplace_back(mace::ConstTensor( {{ tensor.name|tojson }}, model_data + {{ offset }}, { {{ tensor.dims|join(', ') }} }, {{ tensor_info.data_type }}, {{ tensor.node_id }})); } } // namespace {{tag}} } // namespace mace