Code Monkey home page Code Monkey logo

Comments (7)

mikkokotila avatar mikkokotila commented on July 17, 2024

I've never seen the "segmentation fault" before.

Given the description, I wonder if it has to do with the number of permutations? For example if you remove the first test, will it run ok for the second?

I've seen similar issues in the past with looping in general (like looping through Keras models). How about if you restart the vm / machine you are running from?

When it comes to...

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

...you are right, this is typical behavior when installing with pip install tensorflow (or conda) This should never cause errors, but just lose performance.

from talos.

matthewcarbone avatar matthewcarbone commented on July 17, 2024

Yeah I just tested this on my own fork and Travis has no problem with it. Interesting.

I guess this is just a curiosity at this point. Why does the test script build fine on Travis, while failing on my computer when Talos seems to work seamlessly on its own...?

Edit: I will try your suggestions real quick.

from talos.

matthewcarbone avatar matthewcarbone commented on July 17, 2024

This is so bizarre...

Ok so I removed the entire first test and added a helper print out in Scan. In the _run(self) function specifically:

...

round_params(self)
# _model() function should return both the result from training
# and the model itself
try:
     _hr_out, self.keras_model = self._model()
except TypeError:
    print('The model needs to have Return in format '
             ' "return history, model"')

print("Model successfully returned.")  # new helper code code

self.epoch_entropy.append(epoch_entropy((_hr_out)))
_hr_out = run_round_results(self, _hr_out)

...

and end up with this for the second Iris test:

Model successfully returned.
7 scans will take roughly 0 seconds
Model successfully returned.
Model successfully returned.
Model successfully returned.
[1]    19800 segmentation fault  python3 test_script.py

Still seg faults after 4 executions. Weird.

from talos.

mikkokotila avatar mikkokotila commented on July 17, 2024

Ok that's "good" ... I was guessing that might happen. If you restart your machine, and then create a new virtualenv, do you still get the seg fault?

from talos.

matthewcarbone avatar matthewcarbone commented on July 17, 2024

I'll try this soon. Humor me though, I'm still not so comfortable with this stuff just yet. The process I should take is:

  1. Create new anaconda VI
  2. pip install -r requirements.txt
  3. python setup.py install
  4. python test_script.py

Can you confirm? Thanks very much for the help! 👍

from talos.

matthewcarbone avatar matthewcarbone commented on July 17, 2024

I did exactly that and the script ran with no problems. In summary, my problem not Talos'.

from talos.

mikkokotila avatar mikkokotila commented on July 17, 2024

@x94carbone Unfortunately TensorFlow comes with issues with resource management, both memory and GPU. Given what it does, I think this is expectable though.

Usually things are resolved with re-installing both Keras and Tensorflow directly from the respective repos, unless it's resolved with a simple vm reset. I think that at some point it's worthwhile to create a "debugging" script for both conda and regular python that reinstalls, verify version, and a bunch of other stuff to make it super easy for the user to troubleshoot upstream issues.

from talos.

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.