Skip to content

Commit 907cf0d

Browse files
TFX 1.3.1 Release (#4392)
Co-authored-by: tfx-team <tensorflow-extended-nonhuman@googlegroups.com>
1 parent b77c06e commit 907cf0d

File tree

6 files changed

+25
-50
lines changed

6 files changed

+25
-50
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ but other *untested* combinations may also work.
6363
tfx | apache-beam[gcp] | ml-metadata | pyarrow | tensorflow | tensorflow-data-validation | tensorflow-metadata | tensorflow-model-analysis | tensorflow-serving-api | tensorflow-transform | tfx-bsl
6464
------------------------------------------------------------------------- | ---------------- | ----------- | ------- | ----------------- | -------------------------- | ------------------- | ------------------------- | ---------------------- | -------------------- | -------
6565
[GitHub master](https://github.com/tensorflow/tfx/blob/master/RELEASE.md) | 2.32.0 | 1.3.0 | 2.0.0 | nightly (1.x/2.x) | 1.3.0 | 1.2.0 | 0.34.1 | 2.6.0 | 1.3.0 | 1.3.0
66+
1.3.1 | 2.32.0 | 1.3.0 | 2.0.0 | 1.15.0 / 2.6.0 | 1.3.0 | 1.2.0 | 0.34.1 | 2.6.0 | 1.3.0 | 1.3.0
6667
1.3.0 | 2.32.0 | 1.3.0 | 2.0.0 | 1.15.0 / 2.6.0 | 1.3.0 | 1.2.0 | 0.34.1 | 2.6.0 | 1.3.0 | 1.3.0
6768
1.2.0 | 2.31.0 | 1.2.0 | 2.0.0 | 1.15.0 / 2.5.0 | 1.2.0 | 1.2.0 | 0.33.0 | 2.5.1 | 1.2.0 | 1.2.0
6869
1.0.0 | 2.29.0 | 1.0.0 | 2.0.0 | 1.15.0 / 2.5.0 | 1.0.0 | 1.0.0 | 0.31.0 | 2.5.1 | 1.0.0 | 1.0.0

RELEASE.md

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
# Version 1.3.0
1+
# Version 1.3.1
22

33
## Major Features and Improvements
44

5-
* TFX CLI now supports runtime parameter on Kubeflow, Vertex, and Airflow.
6-
Use it with '--runtime_parameter=<parameter_name>=<parameter_value>' flag.
7-
In the case of multiple runtime parameters, format is as follows:
8-
'--runtime_parameter=<parameter_name>=<parameter_value> --runtime_parameter
9-
=<parameter_name>=<parameter_value>'
10-
* Added Manual node in the experimental orchestrator.
11-
* Placeholders support index access and JSON serialization for list type execution properties.
12-
* Added `ImportSchemaGen` which is a dedicated component to import a
13-
pre-defined schema file. ImportSchemaGen will replace `Importer` with
14-
simpler syntax and less constraints. You have to pass the file path to the
15-
schema file instead of the parent directory unlike `Importer`.
16-
17-
## Breaking Changes
5+
* N/A
186

197
### For Pipeline Authors
208

@@ -26,38 +14,11 @@
2614

2715
## Deprecations
2816

29-
* The import name of KerasTuner has been changed from `kerastuner`
30-
to `keras_tuner`. The import name of `kerastuner` is still supported.
31-
A warning will occur when import from `kerastuner`, but does not affect
32-
the usage.
17+
* N/A
3318

3419
## Bug Fixes and Other Changes
3520

36-
* The default job name for Google Cloud AI Training jobs was changed from
37-
'tfx_YYYYmmddHHMMSS' to 'tfx_YYYYmmddHHMMSS_xxxxxxxx', where 'xxxxxxxx' is
38-
a random 8 digit hexadecimal string.
39-
* Fix component to raise error if its input required channel (specified from
40-
ComponentSpec) has no artifacts in it.
41-
* Fixed an issue where ClientOptions with regional endpoint was
42-
incorrectly left out in Vertex AI pusher.
43-
* CLI now hides passed flags from user python files in "--pipeline-path". This
44-
will prevent errors when user python file tries reading and parsing flags.
45-
* Fixed missing type information marker file 'py.typed'.
46-
* Depends on `apache-beam[gcp]>=2.32,<3`.
47-
* Depends on `google-cloud-bigquery>=1.28.0,<3`.
48-
* Depends on `google-cloud-aiplatform>=0.5.0,<2`.
49-
* Depends on `jinja2>=2.7.3,<4`, i.e. now supports Jinja 3.x.
50-
* Depends on `keras-tuner>=1.0.4,<2`.
51-
* Depends on `kfp>=1.6.1,!=1.7.2,<1.8.2` in \[kfp\] extra.
52-
* Depends on `kfp-pipeline-spec>=>=0.1.10,<0.2`.
53-
* Depends on `ml-metadata>=1.3.0,<1.4.0`.
54-
* Depends on `struct2tensor>=0.34.0,<0.35.0`.
55-
* Depends on `tensorflow>=1.15.2,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,<3`.
56-
* Depends on `tensorflow-data-validation>=1.3.0,<1.4.0`.
57-
* Depends on `tensorflow-model-analysis>=0.34.1,<0.35.0`.
58-
* Depends on `tensorflow-serving-api>=1.15,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,<3`.
59-
* Depends on `tensorflow-transform>=1.3.0,<1.4.0`.
60-
* Depends on `tfx-bsl>=1.3.0,<1.4.0`.
21+
* Fixed Vertex Pusher by passing enable_vertex flag for deploying model.
6122

6223
## Documentation Updates
6324

tfx/extensions/google_cloud_ai_platform/prediction_clients.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,21 @@ def deploy_model(self,
427427
if sys.version_info[:2] != (3, 7):
428428
logging.warn('Current python version is not the same as default of 3.7.')
429429

430-
project_id = ai_platform_serving_args['project_id']
430+
if ai_platform_serving_args.get('project_id'):
431+
assert 'project' not in ai_platform_serving_args, ('`project` and '
432+
'`project_id` should '
433+
'not be set at the '
434+
'same time in serving '
435+
'args')
436+
logging.warn('Replacing `project_id` with `project` in serving args.')
437+
ai_platform_serving_args['project'] = ai_platform_serving_args[
438+
'project_id']
439+
ai_platform_serving_args.pop('project_id')
440+
project = ai_platform_serving_args['project']
431441

432442
# Initialize the AI Platform client
433443
# location defaults to 'us-central-1' if not specified
434-
aiplatform.init(project=project_id, location=endpoint_region)
444+
aiplatform.init(project=project, location=endpoint_region)
435445

436446
endpoint_name = ai_platform_serving_args['endpoint_name']
437447
if not skip_model_endpoint_creation:
@@ -440,13 +450,13 @@ def deploy_model(self,
440450
endpoint = self._get_endpoint(ai_platform_serving_args)
441451

442452
deploy_body = dict(ai_platform_serving_args)
443-
for unneeded_key in ['endpoint_name', 'project_id', 'regions', 'labels']:
453+
for unneeded_key in ['endpoint_name', 'project', 'regions', 'labels']:
444454
deploy_body.pop(unneeded_key, None)
445455
deploy_body['traffic_percentage'] = deploy_body.get(
446456
'traffic_percentage', 100 if set_default else 0)
447457
logging.info(
448458
'Creating model_name %s in project %s at endpoint %s, request body: %s',
449-
model_version_name, project_id, endpoint_name, deploy_body)
459+
model_version_name, project, endpoint_name, deploy_body)
450460

451461
model = aiplatform.Model.upload(
452462
display_name=model_version_name,

tfx/extensions/google_cloud_ai_platform/pusher/executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def Do(self, input_dict: Dict[str, List[types.Artifact]],
139139
endpoint_region=endpoint_region,
140140
labels=job_labels,
141141
serving_path=model_path,
142+
enable_vertex=True,
142143
)
143144

144145
self._MarkPushed(

tfx/extensions/google_cloud_ai_platform/pusher/executor_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ def testDoBlessed_Vertex(self, mock_runner):
237237
ai_platform_serving_args=mock.ANY,
238238
labels=job_labels,
239239
serving_path=self._model_push.uri,
240-
endpoint_region='us-central1'
240+
endpoint_region='us-central1',
241+
enable_vertex=True,
241242
)
242243
self.assertPushed()
243244
self.assertEqual(
@@ -286,7 +287,8 @@ def testDoBlessedOnRegionalEndpoint_Vertex(self, mock_runner):
286287
ai_platform_serving_args=mock.ANY,
287288
labels=job_labels,
288289
serving_container_image_uri=self._container_image_uri_vertex,
289-
endpoint_region='us-west1'
290+
endpoint_region='us-west1',
291+
enable_vertex=True,
290292
)
291293
self.assertPushed()
292294
self.assertEqual(

tfx/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"""Contains the version string of TFX."""
1515

1616
# Note that setup.py uses this version.
17-
__version__ = '1.3.0'
17+
__version__ = '1.3.1'

0 commit comments

Comments
 (0)