Tune.with_resources() not working correctly when being used as an argument of tune.with_parameters()

Is there a way to use the tune.with_parameter and tune.with_resources together? The argument of tune.with_parameter is trainable. I tried the following but apparent it’s not the right way of using it:

trainable_with_resources = tune.with_resources(trainable, {"cpu": input_param.num_cpu_per_job})
tune.with_parameters(trainable_with_resources, data = data)

I put more details in the following issue report

It turns out the issue is already spotted and will be fixed in the Ray2.2. I’m closing this thread

1 Like