tensorflow 当运行gen_nn_ops.fractional_avg_pool时出现段错误,

72qzrwbm  于 4个月前  发布在  其他
关注(0)|答案(7)|浏览(36)

问题类型

Bug

你是否在TF nightly版本中复现了该bug?

是的

问题来源

source

Tensorflow版本

2.10.0

自定义代码

是的

OS平台和发行版

Ubuntu 22.04

移动设备

  • 无响应*

Python版本

3.9

Bazel版本

  • 无响应*

GCC/编译器版本

  • 无响应*

CUDA/cuDNN版本

  • 无响应*

GPU型号和内存大小

  • 无响应*

当前行为?

segfault happens with negative list elements.
irlmq6kh

irlmq6kh1#

@nimashiri,
我尝试执行了提到的代码,问题已在最新的稳定版本v2.11nightly中修复。请在此找到它的摘要。

yv5phkfx

yv5phkfx2#

@nimashiri,我尝试执行了提到的代码,问题在最新的稳定版本v2.11nightly中已经修复。请在这里查看摘要。
感谢您的考虑。

2o7dmzc5

2o7dmzc53#

@nimashiri,

由于这是在tensorflow v2.10上的bug,已在最新稳定版本的tensorflow v2.11上解决。我们可以看到,Segfault错误并未引发。谢谢!

k97glaaz

k97glaaz4#

这个问题已经被自动标记为过时,因为它没有最近的活动。如果没有进一步的活动发生,它将被关闭。谢谢。

vnjpjtjt

vnjpjtjt5#

这个:

import tensorflow as tf
import os
import numpy as np
from tensorflow.python.ops import gen_nn_ops
try:
  arg_0_tensor = tf.random.uniform([5, 20, 30, 3], dtype=tf.float64)
  arg_0 = tf.identity(arg_0_tensor)
  arg_1_0 = 1
  arg_1_1 = -15.267949192431123
  arg_1_2 = 0.0
  arg_1_3 = -1
  arg_1 = [arg_1_0,arg_1_1,arg_1_2,arg_1_3,]
  arg_2 = True
  arg_3 = False
  deterministic = True
  seed = 87654319
  seed2 = 341261001
  out = gen_nn_ops.fractional_avg_pool(arg_0,arg_1,arg_2,arg_3,deterministic=deterministic,seed=seed,seed2=seed2,)
except Exception as e:
  print("Error:"+str(e))
pnwntuvh

pnwntuvh6#

Also this one:

import tensorflow as tf
import os
import numpy as np
from tensorflow.python.ops import gen_nn_ops
try:
  arg_0_tensor = tf.random.uniform([5, 20, 30, 3], dtype=tf.float64)
  arg_0 = tf.identity(arg_0_tensor)
  arg_1_0 = 1
  arg_1_1 = -15.267949192431123
  arg_1_2 = 0.0
  arg_1_3 = -1
  arg_1 = [arg_1_0,arg_1_1,arg_1_2,arg_1_3,]
  arg_2 = True
  arg_3 = False
  deterministic = True
  seed = 87654319
  seed2 = 341261001
  out = gen_nn_ops.fractional_avg_pool(arg_0,arg_1,arg_2,arg_3,deterministic=deterministic,seed=seed,seed2=seed2,)
except Exception as e:
  print("Error:"+str(e))

This issue was already tracking with #59198 . And the initial issue for Segmentation fault was not able to reproduce in tf v2.11 as mentioned in the above comment.

Kindly find the gist of it here where we can observe that Segfault error has not been raised and executed with error pooling_ratio cannot be smaller than 1 which were due to seed = 87654321 and seed2 = 341261001. Thank you!

ycggw6v2

ycggw6v27#

看起来是清理方面的问题。
@学习如何玩

相关问题