当运行tensorflow.python.framework.importer._PopulateTFImportGraphDefOptions时出现段错误,

nkhmeac6  于 4个月前  发布在  Python
关注(0)|答案(3)|浏览(51)

问题类型

Bug

你是否在TensorFlow Nightly版本中复现了这个bug?

是的

问题来源

source

TensorFlow版本

2.11.0

自定义代码

是的

OS平台和发行版

22.04

移动设备

  • 无响应*

Python版本

3.9

Bazel版本

  • 无响应*

GCC/编译器版本

  • 无响应*

CUDA/cuDNN版本

nvidia-cudnn-cu11==8.6.0.163, cudatoolkit=11.8.0

GPU型号和内存大小

  • 无响应*

当前行为?

由于输入了None值导致的

独立代码重现问题

import tensorflow as tf
import os
import numpy as np
from tensorflow.python.framework import importer
try:
  arg_0 = None
  arg_1 = "A"
  arg_2 = None
  arg_3_0 = "A"
  arg_3_1 = "B"
  arg_3 = [arg_3_0,arg_3_1,]
  arg_4 = True
  out = importer._PopulateTFImportGraphDefOptions(arg_0,arg_1,arg_2,arg_3,arg_4,)
except Exception as e:
  print("Error:"+str(e))
### Relevant log output

```shell
2023-08-13 02:11:56.624855: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Segmentation fault
u7up0aaq

u7up0aaq1#

@dmc1778 I tried the issue in colab with tf-nightly version and faced the following outcome;

WARNING:tensorflow:From /usr/local/lib/python3.10/dist-packages/tensorflow/python/ops/distributions/distribution.py:259: ReparameterizationType.__init__ (from tensorflow.python.ops.distributions.distribution) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use `tfp.distributions` instead of `tf.distributions`.
WARNING:tensorflow:From /usr/local/lib/python3.10/dist-packages/tensorflow/python/ops/distributions/bernoulli.py:165: RegisterKL.__init__ (from tensorflow.python.ops.distributions.kullback_leibler) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use `tfp.distributions` instead of `tf.distributions`.
[ ]

Please find the attached gist and confirm the same with the nightly version. Thank you!

relj7zay

relj7zay2#

我的会话在2.13.0的colab上崩溃了:

{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.919 NotebookApp] Searching ['/root/.jupyter', '/root/.local/etc/jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files","time":"2023-08-18T02:58:55.920Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.919 NotebookApp] Looking for jupyter_config in /etc/jupyter","time":"2023-08-18T02:58:55.931Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.923 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter","time":"2023-08-18T02:58:55.931Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.925 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter","time":"2023-08-18T02:58:55.931Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.925 NotebookApp] Looking for jupyter_config in /root/.local/etc/jupyter","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.925 NotebookApp] Looking for jupyter_config in /root/.jupyter","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.926 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.927 NotebookApp] Loaded config file: /etc/jupyter/jupyter_notebook_config.py","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.927 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.928 NotebookApp] Loaded config file: /usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:55.933Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.928 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter","time":"2023-08-18T02:58:55.934Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.928 NotebookApp] Looking for jupyter_notebook_config in /root/.local/etc/jupyter","time":"2023-08-18T02:58:55.934Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.928 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter","time":"2023-08-18T02:58:55.935Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:55.931 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.py","time":"2023-08-18T02:58:55.935Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.003 NotebookApp] Searching ['/root/.jupyter', '/root/.local/etc/jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files","time":"2023-08-18T02:58:56.006Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.004 NotebookApp] Looking for jupyter_config in /etc/jupyter","time":"2023-08-18T02:58:56.008Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.004 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter","time":"2023-08-18T02:58:56.008Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.006 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter","time":"2023-08-18T02:58:56.018Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.006 NotebookApp] Looking for jupyter_config in /root/.local/etc/jupyter","time":"2023-08-18T02:58:56.019Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.006 NotebookApp] Looking for jupyter_config in /root/.jupyter","time":"2023-08-18T02:58:56.019Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.008 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter","time":"2023-08-18T02:58:56.019Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.008 NotebookApp] Loaded config file: /etc/jupyter/jupyter_notebook_config.py","time":"2023-08-18T02:58:56.019Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.009 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter","time":"2023-08-18T02:58:56.020Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.009 NotebookApp] Loaded config file: /usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.020Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.009 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter","time":"2023-08-18T02:58:56.020Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.009 NotebookApp] Looking for jupyter_notebook_config in /root/.local/etc/jupyter","time":"2023-08-18T02:58:56.021Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.009 NotebookApp] Looking for jupyter_notebook_config in /root/.jupyter","time":"2023-08-18T02:58:56.021Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"[D 02:58:56.013 NotebookApp] Loaded config file: /root/.jupyter/jupyter_notebook_config.py","time":"2023-08-18T02:58:56.021Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.443Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.d/panel-client-jupyter.json","time":"2023-08-18T02:58:56.445Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.445Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.447Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.448Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.451Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret","time":"2023-08-18T02:58:56.467Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Authentication of /metrics is OFF, since other authentication is disabled.","time":"2023-08-18T02:58:56.468Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"google.colab serverextension initialized.","time":"2023-08-18T02:58:56.564Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.665Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.d/panel-client-jupyter.json","time":"2023-08-18T02:58:56.666Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.667Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/usr/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.668Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.local/etc/jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.674Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"    \t/root/.jupyter/jupyter_notebook_config.json","time":"2023-08-18T02:58:56.675Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret","time":"2023-08-18T02:58:56.686Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Authentication of /metrics is OFF, since other authentication is disabled.","time":"2023-08-18T02:58:56.687Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"google.colab serverextension initialized.","time":"2023-08-18T02:58:56.734Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Serving notebooks from local directory: /","time":"2023-08-18T02:59:00.894Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Jupyter Notebook 6.5.5 is running at:","time":"2023-08-18T02:59:00.895Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"http://172.28.0.2:9000/","time":"2023-08-18T02:59:00.895Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).","time":"2023-08-18T02:59:00.896Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Serving notebooks from local directory: /","time":"2023-08-18T02:59:00.914Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Jupyter Notebook 6.5.5 is running at:","time":"2023-08-18T02:59:00.915Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"http://172.28.0.12:9000/","time":"2023-08-18T02:59:00.916Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).","time":"2023-08-18T02:59:00.916Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"Kernel started: 584f5850-e9c0-4606-bb63-8877434a5eb3, name: python3","time":"2023-08-18T02:59:22.440Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"2023-08-18 02:59:36.976819: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.","time":"2023-08-18T02:59:36.976Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.","time":"2023-08-18T02:59:36.977Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"2023-08-18 02:59:39.065366: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT","time":"2023-08-18T02:59:39.065Z","v":0}
{"pid":7,"type":"jupyter","level":30,"msg":"KernelRestarter: restarting kernel (1/5), keep random ports","time":"2023-08-18T02:59:43.439Z","v":0}
{"pid":7,"type":"jupyter","level":40,"msg":"WARNING:root:kernel 584f5850-e9c0-4606-bb63-8877434a5eb3 restarted","time":"2023-08-18T02:59:43.440Z","v":0}
xoefb8l8

xoefb8l83#

@SuryanarayanaY 2.13.0版本存在bug。

相关问题