使用Profiler()函数,报错RuntimeError: The output path of profiler only supports alphabets(a-zA-Z)
收藏回复举报
使用Profiler()函数,报错RuntimeError: The output path of profiler only supports alphabets(a-zA-Z)
发表于2024-11-15 15:57:16
0 查看

1 系统环境

硬件环境(Ascend/GPU/CPU): Ascend/GPU/CPU

MindSpore版本: mindspore=2.2.12

执行模式(PyNative/ Graph):不限

Python版本: Python=3.9

操作系统平台: linux

2 报错信息

2.1 问题描述

在用mindspore_cpu_py39 2.2.12版本下,项目文件路径为E:\MindsporePrj\PreTrain_ms,使用如下脚本信息出现报错。

2.2 脚本信息

from mindspore.profiler import Profiler
profiler = Profiler()

2.3 报错信息

RuntimeError: The output path of profiler only supports alphabets(a-zA-Z), digit(0-9) or {'-', '_', '.', '/', '@'}, but got the absolute path= E:\MindsporePrj\PreTrain_ms\data

3 根因分析

******此处由用户填写******

4 解决方案

******此处由用户填写******

包含文字方案和最终脚本代码

请将正确的脚本打包并上传附件

我要发帖子