tf.reset_default_graph

简介:
reset_default_graph()
    Clears the default graph stack and resets the global default graph.
    
    NOTE: The default graph is a property of the current thread. This
    function applies only to the current thread.  Calling this function while
    a `tf.Session` or `tf.InteractiveSession` is active will result in undefined
    behavior. Using any previously created `tf.Operation` or `tf.Tensor` objects
    after calling this function will result in undefined behavior.
    Raises:
      AssertionError: If this function is called within a nested graph.
目录
打赏
0
0
0
0
1
分享
相关文章
【Tensorflow】解决A `Concatenate` layer should be called on a list of at least 2 inputs
在TensorFlow 2.0中,使用Concatenate函数时出现错误,可以通过替换为tf.concat 来解决。
84 4
求助: 运行模型时报错module 'megatron_util.mpu' has no attribute 'get_model_parallel_rank'
运行ZhipuAI/Multilingual-GLM-Summarization-zh的官方代码范例时,报错AttributeError: MGLMTextSummarizationPipeline: module 'megatron_util.mpu' has no attribute 'get_model_parallel_rank' 环境是基于ModelScope官方docker镜像,尝试了各个版本结果都是一样的。
463 5
TensorFlow2._:model.summary() Output Shape为multiple解决方法
TensorFlow2._:model.summary() Output Shape为multiple解决方法
312 0
TensorFlow2._:model.summary() Output Shape为multiple解决方法
【CatBoost报错解决】CatBoostError: Bad value for num feature[non default doc idx=0,feature idx=19]=
【CatBoost报错解决】CatBoostError: Bad value for num feature[non default doc idx=0,feature idx=19]=
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
302 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the
606 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等