keras icon indicating copy to clipboard operation
keras copied to clipboard

Grappler Errors with ConvLSTM2D

Open acfrock opened this issue 3 years ago • 7 comments

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
  • OS Platform and Distribution: Windows 11 Build 22000
  • TensorFlow installed from: pip package
  • TensorFlow version: v2.9.0-18-gd8ce9f9c301 2.9.1
  • Python version: Python 3.10.4
  • CUDA/cuDNN version: CUDA 11.7.0-1
  • GPU model and memory: Nvidia 2080 Ti 11GiB Memory
  • Exact command to reproduce: python conv_lstm.py with conv_lstm.py from the official Keras examples

Describe the problem

Using the ConvLSTM2D layer produces a grappler error: layout failed: INVALID_ARGUMENT: MutableGraphView::SortTopologically error: detected edge(s) creating cycle(s) ... when run with a GPU. Interestingly, this does not happen if TensorFlow is forced to run without a GPU.

It is not clear whether this is a problem with grappler, with the implementation of the ConvLSTM2D layer, or a bug in CUDA.

Contributing

  • Do you want to contribute a PR?: no

Source code / logs

I used the example script from the Keras documentation. [Keras example page] [script]. The logs are here: output.txt.

acfrock avatar Jul 04 '22 12:07 acfrock

@acfrock I tried to run the example script for replicating the issue and didn’t face the error reported. Could you find the gist here and let me know if I am missing something to reproduce the issue? Thank you!

sushreebarsa avatar Jul 06 '22 09:07 sushreebarsa

The error message comes from the CPP logger, so by default it doesn't show in Colab. By using wurlitzer we can see the message: gist.

acfrock avatar Jul 06 '22 17:07 acfrock

@acfrock This is a grappler error. Please take a look at the workaround provided here. Also, please post this issue here. Thanks!

gowthamkpr avatar Jul 12 '22 19:07 gowthamkpr

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Jul 25 '22 22:07 google-ml-butler[bot]

I've run into the same problem and am subscribed to the issue. Posting to keep the stale bot away.

t-kalinowski avatar Jul 26 '22 03:07 t-kalinowski

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Aug 02 '22 15:08 google-ml-butler[bot]

@acfrock @t-kalinowski Looks like this issue is related to this issue. There has been a PR that has been merged. Please confirm if otherwise. Thanks!

gowthamkpr avatar Aug 04 '22 19:08 gowthamkpr

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Aug 11 '22 20:08 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Aug 18 '22 20:08 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 18 '22 20:08 google-ml-butler[bot]