f31b7ad689b1435e76744af4ff443607643a37fd,studio/experiment.py,,create_experiment,#Any#Any#Any#Any#Any#Any#Any#Any#,116
Before Change
if pkg._key == "studioml":
continue
if resources_needed is not None and \
int(resources_needed.get("gpus")) > 0 and \
(pkg._key == "tensorflow" or pkg._key == "tf-nightly"):
packages.insert(0, pkg._key + "-gpu==" + pkg._version)
packages.insert(0, pkg._key + "==" + pkg._version)
elif pkg._key == "tensorflow-gpu" or pkg._key == "tf-nightly-gpu":
packages.insert(0, pkg._key[:-4] + "==" + pkg._version)
else:
packages.append(pkg._key + "==" + pkg._version)
return Experiment(
key=key,
filename=filename,
args=args,
After Change
freeze_output = [p for p in pip.operations.freeze.freeze()]
for pkg in pip.operations.freeze.freeze():
if pkg.startswith("-e git+"):
// git package
packages.append(pkg)
elif "==" in pkg:
// pypi package
key = re.search(r"^.*?(?=\=\=)", pkg).group(0)
version = re.search(r"(?<=\=\=).*\Z", pkg).group(0)
if resources_needed is not None and \
int(resources_needed.get("gpus")) > 0:
if (key == "tensorflow" or key == "tf-nightly"):
key = key + "-gpu"
// TODO add installation logic for torch
packages.append(key + "==" + version)
return Experiment(
key=key,
filename=filename,
args=args,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: studioml/studio
Commit Name: f31b7ad689b1435e76744af4ff443607643a37fd
Time: 2017-12-28
Author: peter.zhokhov@sentient.ai
File Name: studio/experiment.py
Class Name:
Method Name: create_experiment
Project Name: tensorflow/transform
Commit Name: 4bf19837a0df0c7c8e7bd3f3c6a55ddd62e30c6b
Time: 2018-04-30
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/saved/saved_transform_io.py
Class Name:
Method Name: _partially_apply_saved_transform_impl
Project Name: eth-cscs/reframe
Commit Name: 2e180b4eda979e3455df916c89cb0295370fc7d7
Time: 2018-06-07
Author: rafael.sarmiento@cscs.ch
File Name: reframe/utility/versioning.py
Class Name: _RelationalValidator
Method Name: __init__