Code Monkey home page Code Monkey logo

Comments (2)

SuryanarayanaY avatar SuryanarayanaY commented on May 3, 2024

Hi @Zoeeeeey ,

Thanks for reporting. As mentioned I have tested the code snippet in tf-nightly without tf.function decorator and it executes fine. With tf.function decorator it seems going through infinite loop as I waited for more than 5 mins and still it continuous to execute but couldn't get segmentation fault error.

Screenshot 2024-04-17 at 11 58 57 AM

from tensorflow.

Zoeeeeey avatar Zoeeeeey commented on May 3, 2024

Hi @SuryanarayanaY ,

1.When I tried to replicate this reported, I initially encountered a situation where there was 'no response' and 'no termination' during the first run.

When I used ctrl+c to terminate the program and ran it again, I encountered a Segmentation fault (core dumped).

My envs which occurs segfault:

Python 3.9
tensorflow 2.16.1
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0

2.Nevertheless, there are situations where the behavior is inconsistent, whether adding @tf.function or not.

For example, the part that contains pass can be replaced with a print statement.

When @tf.function is added, the program fails to terminate normally.

Why is this the case?

3.Additionally, I have a question about the tf.config.experimental_connect_to_cluster function.

I'm unclear about the exact content that should be passed into the first parameter cluster_spec_or_resolver.

For example, in this case, a cluster is created with tf.train.ClusterSpec, but the specified workers (such as "worker0.example.com:2222") do not actually exist.

What should be the correct content to set for this parameter?

4.Additionally, to facilitate your replication, I have attempted to create a gist in Colab. Please consult it.(https://colab.research.google.com/gist/Zoeeeeey/1782cc57b0a63d8c6a022eeae0977235/62522_tf-nightly-v.ipynb)

Thank you for any response. ;->

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.