MindSpore常见问题次要包含数据加载与解决问题、网络构建与训练问题以及分布式并行配置问题等。MindSpore在不同场景下,积攒了大量常见的问题案例。以下是对应的案例列表。

1、数据集加载与加强报错案例
MindSpore数据集加载-调试小工具 py-spy 【MindData】如何将自有数据高效的生成MindRecord格局数据集,并且避免爆内存。 【MindData】在应用Dataset解决数据过程中内存占用高,怎么优化 如何解决数据集加载多过程(multiprocessing)谬误 MindRecord-Windows下中文门路问题Unexpected error. Failed to open file MindRecord-Windows下数据集报错Invalid file, DB file can not match MindSpore数据集加载-GeneratorDataset卡住、卡死 GeneratorDataset报谬误Unexpected error. Invalid data type GeneratorDataset数据处理报错:The pointer[cnode] is null MindSpore数据集报错【The data pipeline is not a tree】 MindSpore数据加强报错:Use Decode() for encoded data or ToPIL() MindSpore自定义数据加强报错args should be Numpy narray.Got class tuple MindSpore数据集加载-GeneratorDataset性能及常见问题 MindSpore数据集加载-【too many open files】谬误 MindSpore数据加强-【 Invalid with type】谬误 MindSpore数据集格局-【MindRecord File could not open successfully】 MindSpore数据集加载-【 has no attribute 'child_sampler'】 MindSpore数据集加载-【'DictIterator' has no attribute 'get_next'】谬误 MindSpore数据集加载-【IndexError: list index out of range】谬误 MindSpore报错: Unexpected error. Inconsistent batch .. MindSpore数据加强: 内存不足,主动退出 MindSpore报错: Invalid data, Page size. MindSpore报错: parse() missing 1 required positional. MindSpore报错: Unable to data from Generator.. MindSpore报错:GeneratorDataset's num_workers=8, this value is ... MindSpore报错: Exception thrown from PyFunc. MindSpore报错: Unexpected error. Invalid data.

2、网络构建与训练报错案例
MindSpore报错: Exceed function call depth limit 1000解决 MindSpore报错: 'Tensor' has no attribute 'data' MindSpore报错: 'NoneType' has no attribute 'name' Mindspore报错: the dimension of logits must be equal to 2 MindSpore报错:For 'Pad',all elements of paddings must >=0 MindSpore报错:For primitive[BinaryCrossEntropy], the x shape must be equal to MindSpore报错: For 'Tensor',the type of input_data should be one of 'Tensor', 'ndarray' ... MindSpore报错: Data type conversion of 'Parameter' is not supported MindSpore报错: ScalarAdd不反对bool类型 MindSpore报错: ReduceSum算子不反对8维及以上的输出 MindSpore报错: Unsupported parameter type for python primitive.. MindSpore报错:Primitive ScatterAdd's bprop not defined MindSpore报错:For 'Conv2d',x shape的C_in除以group应等于weight的C_in MindSpore报错:For 'Reshape', the shape of 'input_x' is ...,but product MindSpore报错:For 'Sub', x.shape and y.shape are supposed to broadcast MindSpore报错:For 'MatMul', the input dimensions must be equal, MindSpore报错:Cann't select valid kernel[Default/Pow-op] MindSpore报错:rank in NLLLoss should be int and must be MindSpore报错:operator[StridedSlice] input(kNumberTypeUInt16) output(kNumberTypeUInt16) is not supported. MindSpore报错:Select GPU kernel op * fail! Incompatible data type MindSpore报错:For 'MirrorPad', paddings must be a Tensor with MindSpore报错:For primitive[TensorSummary], the v rank must be greater than 0 MindSpore报错:For 'CellList', each cell should be subclass of Cell MindSpore报错:task_fail_info or current_graph_ is nullptr MindSpore报错:padding_idx in Embedding 超出范围的报错 MindSpore报错:seed2 in StandardNormal should be int and >=0 MindSpore报错:ReduceMean不反对8维及其以上的输出 MindSpore报错:output_shape shape element [2] must be positive integer or SHP_ANY MindSpore报错:For 'TopK', the type of 'x' should be ... MindSpore报错:Minimum inputs size 0 does not match... MindSpore报错:half_pixel_centers=True only support in Ascend MindSpore报错:For 'AvgPool' 输入的shape每一维都要大于零

MindSpore报错:The function construct need xx positional argument ... MindSpore报错:Operator[ ] input( ) output( ) is not support MindSpore报错:sth should be initialized as a Parameter type in ... MindSpore报错:"operation does not support the type kMetaTypeNone" MindSpore报错:When '...' by using Fallback feature, an error occurred MindSpore报错: Net parameters weight shape xxx i MindSpore GPU设施算力有余导致计算结果谬误 MindSpore报错:设置卡失败 SetDevice failed mindspore报错:Total stream number xxx exceeds the limit of ... MindSpore报错:[LoadTask] Distribute Task Failed MindSpore报错:GPU训练提醒调配流失败[cudaStreamCreate failed] MindSpore报错:呈现内存申请大小为0的谬误[The memory alloc size is 0] MindSpore报错:Please input the correct checkpoint MindSpore告警:"xxx parameters in the net are not MindSpore报错:For 'context.set_context', package type xxx support 'devic

MindSpore报错:PyNative模式下The pointer[top_cell_] is null MindSpore报错:Malloc device memory failed MindSpore报错: Please input the correct checkpoint MindSpore求导传入sens值报错: For 'MatMul', the input dimensions

3、分布式并行报错案例
报错:the value of strategy must be the power of 2, but get xx 报错:PyNative Only support STAND_ALONE, DATA_PARALLEL... 报错:Parallel mode dose not support 报错:davinci_model : load task fail, return ret 报错:connect returned Connection timed out