mirror of
https://github.com/wassname/ray.git
synced 2026-07-19 11:27:32 +08:00
[rllib] Add more warnings when multi-agent envs might not be set up right (#3061)
This commit is contained in:
@@ -155,6 +155,11 @@ def _resolve_lambda_vars(spec, lambda_vars):
|
||||
value = fn(_UnresolvedAccessGuard(spec))
|
||||
except RecursiveDependencyError as e:
|
||||
error = e
|
||||
except Exception:
|
||||
raise ValueError(
|
||||
"Failed to evaluate expression: {}: {}".format(path, fn) +
|
||||
". If you meant to pass this as a function literal, use "
|
||||
"tune.function() to escape it.")
|
||||
else:
|
||||
_assign_value(spec, path, value)
|
||||
resolved[path] = value
|
||||
|
||||
Reference in New Issue
Block a user