Skip to content

Documentation on interaction of tensorflow with LAW. #206

@acampove

Description

@acampove

Hi,

I tried to run our code with a law workflow and I oberved that, it got stuck with:

3 running tasks, waiting for next task to finish

It seems that there are issues between tensorflow and how this package handles parallelization through processes. The import of tensorflow needs to be done in the run method, i.e.:

    def run(self):
        """Run the `compare` command for one set of wildcards."""
        from rx_plotter_scripts.compare import main      as compare 

        cfg = self._get_config() 
        compare(settings=cfg)

where rx_plotter_scripts imports tensorflow. I cannot find this sort of stuff anywhere and it seems that the issue stems ultimately from tensorflow, because if the parts that use tensorflow are turned off, the process just works.

Is this known? Could this be bypassed to simplify things for the user? If not, could this be documented better?

Cheers.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions