[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborted (core dumped) in tf.experimental.numpy.diag/tf.compat.v1.linalg.diag/tf.experimental.numpy.diagflat/tf.keras.ops.diag #69471

Open
x0w3n opened this issue Jun 10, 2024 · 1 comment
Assignees
Labels
comp:ops OPs related issues TF 2.16 type:bug Bug

Comments

@x0w3n
Copy link
x0w3n commented Jun 10, 2024

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf 2.16

Custom code

Yes

OS platform and distribution

Linux Ubuntu 22.04.3 LTS (x86_64)

Mobile device

No response

Python version

3.9.13

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

Under specific input, tf.experimental.numpy.diag/tf.compat.v1.linalg.diag/tf.experimental.numpy.diagflat/tf.keras.ops.diag encounters "Aborted (core dumped)".

Standalone code to reproduce the issue

import tensorflow as tf

input_dict = {
    'diagonal': tf.constant([1,2], dtype=tf.int32),
    'k': tf.constant([1, 2], dtype=tf.int32)
}

# crash
tf.experimental.numpy.diag(
    v=tf.constant([1,2], dtype=tf.int32), k=tf.constant([1, 2], dtype=tf.int32)
)

# crash
# tf.compat.v1.linalg.diag(
#     diagonal=tf.constant([1,2], dtype=tf.int32),
#     name='diag',
#     k= tf.constant([1, 2], dtype=tf.int32),
#     num_rows=-1,
#     num_cols=-1,
#     padding_value=0,
#     align='RIGHT_LEFT'
# )

# crash
# tf.experimental.numpy.diagflat(
#     v=tf.constant([1,2], dtype=tf.int32), k=tf.constant([1, 2], dtype=tf.int32)
# )

# crash
# tf.keras.ops.diag(
#     x=tf.constant([1,2], dtype=tf.int32), k=tf.constant([1, 2], dtype=tf.int32)
# )

Relevant log output

2024-06-10 13:23:09.021306: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-06-10 13:23:10.029041: F tensorflow/core/framework/tensor_shape.cc:356] Check failed: d >= 0 (0 vs. -1)
Aborted (core dumped)
@google-ml-butler google-ml-butler bot added the type:bug Bug label Jun 10, 2024
@x0w3n x0w3n changed the title Aborted (core dumped) in 'tf.experimental.numpy.diag/tf.compat.v1.linalg.diag/tf.experimental.numpy.diagflat/tf.keras.ops.diag' Aborted (core dumped) in tf.experimental.numpy.diag/tf.compat.v1.linalg.diag/tf.experimental.numpy.diagflat/tf.keras.ops.diag Jun 10, 2024
@Venkat6871
Copy link

Hi @x0w3n ,

  • Hi @x0w3n ,
  • I was able to reproduce the issue on Colab using TF v2.16 and TF-nightly ,Please find the gist here for reference.

Thank you!

@Venkat6871 Venkat6871 added TF 2.16 comp:ops OPs related issues labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues TF 2.16 type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants