深度学习笔记: ProfilerNotRunningError: Cannot stop profiling. No profiler is running.

ProfilerNotRunningError: Cannot stop profiling. No profiler is running.

前言:

代码检查一万遍,都没错,就是来一个ProfilerNotRunningError: Cannot stop profiling. No profiler is running.

查了一些资料,发现这个问题只有在windows下出现,linux下不会出现,是文件路径写法导致的:

logdir = ‘./logs/’  >> 会报错

要使用os.path.join写法才可以解决

# logdir = "./callbacks" 这个写法会报错,要使用下面的os.path写法
logdir = os.path.join("callbakcs")    # 记录回调tensorboard日志打印记录
if not os.path.exists(logdir):
    os.mkdir(logdir)
output_model_file = os.path.join(logdir,"test_classification.h5") # 保存训练最好的模型

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值