zoukankan      html  css  js  c++  java
  • Tensorflow2.0报错:ProfilerNotRunningError: Cannot stop profiling. No profiler is running.(修改后别忘了重启内核或关掉重启)

    # 把这个路径用包装一下
    logdir = os.path.join("cnn_selu_callbacks")

    print(logdir)
    if not os.path.exists(logdir):
        os.mkdir(logdir)
    output_model_file = os.path.join(logdir,
                                     "fashion_mnist_model.h5")

    callbacks = [
        keras.callbacks.TensorBoard(log_dir=logdir),
        keras.callbacks.ModelCheckpoint(output_model_file,
                                        save_best_only = True),
        keras.callbacks.EarlyStopping(patience=5, min_delta=1e-3),
    ]
    history = model.fit(x_train_scaled, y_train, epochs=10,
                        validation_data=(x_valid_scaled, y_valid),
                        callbacks = callbacks)
    ————————————————
    版权声明:本文为CSDN博主「随海亮」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/weixin_41010198/article/details/102815483

  • 相关阅读:
    js:通过正则匹配获取页面的url中的参数
    BZOJ 4873 寿司餐厅 网络流
    BZOJ 3308 毒瘤结论 网络流
    BZOJ3451 CDOJ1562点分治+FFT
    P3731 二分图匹配必经边
    Hdu 6268 点分治 树上背包 bitset 优化
    Hdu 1517 巴什博奕变形
    dsu on tree
    CF #546 D.E
    HNOI 世界树 虚树
  • 原文地址:https://www.cnblogs.com/qqhfeng/p/12154514.html
Copyright © 2011-2022 走看看