OptimizationPass.ParameterValues
property · OptimizationPass · cAlgo.API Since 5.9
DesktopCLICloud
Gets the exact parameter values this pass used, keyed by parameter name.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
IReadOnlyDictionary<string, string> ParameterValues {get;}
optimizationPass.ParameterValues: dict[str, str]
Returns IReadOnlyDictionary<string, string>
Examples
Optimization.PassCompleted += args =>
{
foreach (var parameter in args.Pass.ParameterValues)
Print("Pass {0}: {1} = {2}", args.Pass.Id, parameter.Key, parameter.Value);
};
def on_start(self):
api.Optimization.PassCompleted += self.on_pass_completed
def on_pass_completed(self, args):
for parameter in args.Pass.ParameterValues:
api.Print(f"Pass {args.Pass.Id}: {parameter.Key} = {parameter.Value}")