Skip to content

Commit a1181d4

Browse files
tfx-teamzhitaoli
tfx-team
authored andcommitted
Merge 77606fb
1 parent 7f2f4e1 commit a1181d4

File tree

4 files changed

+27
-22
lines changed

4 files changed

+27
-22
lines changed

tfx/examples/chicago_taxi/setup.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,29 @@
1515
import setuptools
1616

1717
# LINT.IfChange
18-
TF_VERSION = '1.12.0'
18+
TF_VERSION = '1.13.1'
1919
# LINT.ThenChange(train_mlengine.sh, start_model_server_mlengine.sh)
2020

2121
# LINT.IfChange
22-
BEAM_VERSION = '2.11.0'
22+
BEAM_VERSION = '2.12.0'
2323
# LINT.ThenChange(setup_beam_on_flink.sh)
2424

2525
if __name__ == '__main__':
2626
setuptools.setup(
2727
name='tfx_chicago_taxi',
28-
version='0.12.0',
28+
version='0.13.0',
2929
packages=setuptools.find_packages(),
3030
install_requires=[
31-
'apache-beam[gcp]==' + BEAM_VERSION,
32-
'jupyter==1.0',
33-
'numpy==1.14.5',
34-
'protobuf==3.6.1',
35-
'tensorflow==' + TF_VERSION,
36-
'tensorflow-data-validation==0.12.0',
37-
'tensorflow-metadata==0.12.1',
38-
'tensorflow-model-analysis==0.12.1',
39-
'tensorflow-serving-api==1.12.0',
40-
'tensorflow-transform==0.12.0',
31+
'apache-beam[gcp]>=' + BEAM_VERSION,
32+
'jupyter>=1.0,<2',
33+
'notebook>=5.7.8,<5.8',
34+
'numpy>=1.14.5,<2',
35+
'protobuf>=3.7.0,<3.8.0',
36+
'tensorflow>=' + TF_VERSION,
37+
'tensorflow-data-validation>=0.13.1,<0.14',
38+
'tensorflow-metadata>=0.13.1,<0.14',
39+
'tensorflow-model-analysis>=0.13.2,<0.14',
40+
'tensorflow-serving-api>=1.13.0,<1.14',
41+
'tensorflow-transform>=0.13.0,<0.14',
4142
],
42-
python_requires='>=2.7,<3')
43+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4',)

tfx/examples/chicago_taxi/setup_beam_on_flink.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Google LLC
2+
# Copyright 2019 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ WORK_DIR="/tmp/beam"
2424
BEAM_DIR="$WORK_DIR/beam"
2525
GIT_COMMAND=`which git`
2626
BEAM_REPO="https://github.com/apache/beam"
27-
BEAM_BRANCH="release-2.11.0"
27+
BEAM_BRANCH="release-2.12.0"
2828

2929
SETUP_FLINK=1
3030
FLINK_VERSION="1.5.6"

tfx/examples/chicago_taxi/start_model_server_mlengine.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Google LLC
2+
# Copyright 2019 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -31,9 +31,11 @@ gsutil ls $WORKING_DIR/serving_model_dir/export/chicago-taxi/
3131
MODEL_BINARIES=$(gsutil ls $WORKING_DIR/serving_model_dir/export/chicago-taxi/ \
3232
| sort | grep '\/[0-9]*\/$' | tail -n1)
3333

34-
TF_VERSION=1.12
34+
# Please refer to https://cloud.google.com/ml-engine/docs/tensorflow/runtime-version-list
35+
# for version list.
36+
CAI_RUNTIME_VERSION=1.13
3537

3638
gcloud ml-engine versions create v1 \
3739
--model chicago_taxi \
3840
--origin $MODEL_BINARIES \
39-
--runtime-version $TF_VERSION
41+
--runtime-version $CAI_RUNTIME_VERSION

tfx/examples/chicago_taxi/train_mlengine.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Google LLC
2+
# Copyright 2019 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -61,12 +61,14 @@ EVAL_FILE=$TFT_OUTPUT_PATH/train_transformed-*
6161
TRAIN_STEPS=100000
6262
EVAL_STEPS=1000
6363

64-
TF_VERSION=1.12
64+
# Please refer to https://cloud.google.com/ml-engine/docs/tensorflow/runtime-version-list
65+
# for version info.
66+
CAI_RUNTIME_VERSION=1.13
6567

6668
gcloud ml-engine jobs submit training $JOB_ID \
6769
--stream-logs \
6870
--job-dir $MODEL_DIR \
69-
--runtime-version $TF_VERSION \
71+
--runtime-version $CAI_RUNTIME_VERSION \
7072
--module-name trainer.task \
7173
--package-path trainer/ \
7274
--region us-central1 \

0 commit comments

Comments
 (0)