Skip to content

Tag: python

my python Ray script runs on a single worker only

I am a new with Ray and after have read he documentation, I came up with a script that mimics what I want to do further with Ray. Here is my script: My problem is that when I run this script it runs on a single worker as indicated by the Ray output whereas I would expect 4 workers to

How to use i right in a for loop?

I have 3 lists and I need to calculate for each i the product of first list i, second list i and third list len-(i+1). I tried to make a for loop which will do it for each i and I wrote this But it says in the second line “‘type’ object is not iterable” How can I make it