Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/tnn/utils/data_type_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace TNN_NS {
class PUBLIC DataTypeUtils {
public:
// @brief get bytes
// @param data_tyep data type info
// @param data_type data type info
static int GetBytesSize(DataType data_type);

// @brief get string for DataType
Expand Down
2 changes: 1 addition & 1 deletion source/tnn/device/huawei_npu/npu_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Status NpuNetwork::ConvertLayers(NetResource *net_resource) {
LayerType type = layer_info->type;
NpuBaseLayer *cur_layer = CreateNpuBaseLayer(type);
if (cur_layer == nullptr) {
LOGE("Error Init layer tyep %d (layer name: %s), huawei_npu does not support, may switch to arm\n",
LOGE("Error Init layer type %d (layer name: %s), huawei_npu does not support, may switch to arm\n",
layer_info->type, layer_info->name.c_str());
return Status(TNNERR_LAYER_ERR, "CreateLayer failed");
}
Expand Down
2 changes: 1 addition & 1 deletion source/tnn/layer/base_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Status BaseLayer::InferOutputDataType() {
auto const_resource = const_resource_;

// Init base type, will re write in different device acc
// output data_type = input_data_tyep as default.
// output data_type = input_data_type as default.

int flag = DATA_FLAG_CHANGE_NEVER;
for (auto iter : input_blobs_) {
Expand Down
2 changes: 1 addition & 1 deletion source/tnn/network/openvino/openvino_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Status OpenVINONetwork_::Reshape(const InputShapesMap &inputs) {
/*
* InitLayerBuilders funcion does the following things:
* 1. Set Blob type accordingly.
* 2. Set data_tyep accordingly.
* 2. Set data_type accordingly.
* 3. Infer the blob shapes.
* 4. Check the weights required.
* 5. Create Layer Builders.
Expand Down
4 changes: 2 additions & 2 deletions source/tnn/utils/data_format_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace TNN_NS {
class DataFormatConverter {
public:
// @brief convert weights from [g][o][i][h][w] to [g][o/4][i/4][h][w][16]
// @param data_tyep data type info
// @param data_type data type info
static Status ConvertFromGOIHWToGOIHW16Float(float *src, float *dst, int group, int input_channel,
int output_channel, int height, int width, bool tanspose = false);
static Status ConvertFromGOIHWToGOIHW16Half(short *src, short *dst, int group, int input_channel,
Expand All @@ -36,7 +36,7 @@ class DataFormatConverter {
int output_channel, int height, int width, bool tanspose = false);

// @brief convert weights from [n][c][h][w] to [n][c/4][h][w][4]
// @param data_tyep data type info
// @param data_type data type info
static Status ConvertFromNCHWToNCHW4Float(float *src, float *dst, int num, int channel, int height, int width, bool transpose = false);
static Status ConvertFromNCHWToNCHW4Half(short *src, short *dst, int num, int channel, int height, int width, bool transpose = false);
static Status ConvertFromNCHWToNHWC4Int8(int8_t *src, int8_t *dst, int num, int channel, int hw);
Expand Down
Loading