dc42abb2f5f7dd059cf6fac3eae2832931925573,python/ray/tune/config_parser.py,,create_trial_from_spec,#Any#Any#Any#,150

Before Change


        args, _ = parser.parse_known_args(to_argv(spec))
    except SystemExit:
        raise TuneError("Error parsing args, see above message", spec)
    if "resources_per_trial" in spec:
        trial_kwargs["resources"] = json_to_resources(
            spec["resources_per_trial"])
    return Trial(
        // Submitting trial via server in py2.7 creates Unicode, which does not
        // convert to string in a straightforward manner.
        trainable_name=spec["run"],

After Change


                _cached_pgf[resources] = pgf
                trial_kwargs["placement_group_factory"] = pgf
        else:
            try:
                trial_kwargs["resources"] = json_to_resources(resources)
            except (TuneError, ValueError) as exc:
                raise TuneError("Error parsing resources_per_trial",
                                resources) from exc

    return Trial(
        // Submitting trial via server in py2.7 creates Unicode, which does not
        // convert to string in a straightforward manner.
        trainable_name=spec["run"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: dc42abb2f5f7dd059cf6fac3eae2832931925573
Time: 2021-01-18
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/config_parser.py
Class Name:
Method Name: create_trial_from_spec


Project Name: deepmipt/DeepPavlov
Commit Name: 2eb6384a27500ab40bbce728b918ac5fff199b77
Time: 2018-01-09
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/utils.py
Class Name:
Method Name: set_usr_dir


Project Name: tensorlayer/tensorlayer
Commit Name: e821d856697ca29141b94a8feaa6435cae2e02e1
Time: 2018-05-06
Author: github-bot@pyup.io
File Name: tensorlayer/__init__.py
Class Name:
Method Name: