Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Cloudmld (#213)
Browse files Browse the repository at this point in the history
* sw

* sw

* cloud uses 0.12.0rc? and local uses whatever is in datalab

* for local testing

* master_setup is copy of ../../setup.py
  • Loading branch information
brandondutra authored and qimingj committed Feb 22, 2017
1 parent d101322 commit c73d52a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from . import predict


_TF_GS_URL = 'gs://cloud-datalab/deploy/tf/tensorflow-1.0.0rc1-cp27-none-linux_x86_64.whl'
_TF_GS_URL = 'gs://cloud-datalab/deploy/tf/tensorflow-0.12.0rc1-cp27-none-linux_x86_64.whl'


def _default_project():
Expand Down Expand Up @@ -344,7 +344,7 @@ def cloud_train(train_file_pattern,
args.append('--top_n=%s' % str(top_n))

job_request = {
'package_uris': [_package_to_staging(output_dir)],
'package_uris': [_package_to_staging(output_dir), _TF_GS_URL],
'python_module': 'datalab_solutions.structured_data.trainer.task',
'scale_tier': scale_tier,
'region': region,
Expand Down Expand Up @@ -551,8 +551,8 @@ def cloud_batch_predict(model_dir, prediction_input_file, output_dir,
'--output_dir=%s' % output_dir,
'--output_format=%s' % output_format,
'--batch_size=%s' % str(batch_size),
'--extra_package=%s' % _package_to_staging(output_dir)]
print(cmd)
'--extra_package=%s' % _package_to_staging(output_dir),
'--extra_package=%s' % _TF_GS_URL]

if shard_files:
cmd.append('--shard_files')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def get_version():
long_description="""
""",
install_requires=[
"tensorflow==0.12.1"
],
package_data={
},
Expand Down

0 comments on commit c73d52a

Please sign in to comment.