Skip to content

Commit

Permalink
Relaxed the PyYaml dependency.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 299972140
  • Loading branch information
zhitaoli authored and tensorflow-extended-team committed Mar 10, 2020
1 parent c809eaa commit b2b0267
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
* Updated `StatisticsGen` to optionally consume a schema `Artifact`.
* Added support for configuring the `StatisticsGen` component via serializable
parts of `StatsOptions`.

* Added Keras guide doc.

## Bug fixes and other changes
* Fix the behavior of Trainer Tensorboard visualization when caching is used.
* Added component documentation and guide on using TFLite in TFX.
* Changed Iris model_to_estimator e2e example to use generic Trainer.
* Demonstrated how TFLite is supported in TFX by extending MNIST example
pipeline to also train a TFLite model.
* Relaxed the PyYaml dependency.

### Deprecations
* Model Validator (its functionality is now provided by the Evaluator).
Expand Down Expand Up @@ -41,9 +44,6 @@
* Added a Chicago Taxi example with native Keras.
* Updated TFLite converter to work with TF2.
* Enabled filtering by artifact producer and output key in ResolverNode.
* Changed Iris model_to_estimator e2e example to use generic Trainer.
* Demonstrated how TFLite is supported in TFX by extending MNIST example
pipeline to also train a TFLite model.

## Bug fixes and other changes
* Added --skaffold_cmd flag when updating a pipeline for kubeflow in CLI.
Expand All @@ -55,7 +55,7 @@
* Depends on 'tensorflow-data-validation>=0.21.4,<0.22'.
* Depends on 'tensorflow-model-analysis>=0.21.4,<0.22'.
* Depends on 'tensorflow-transform>=0.21.2,<0.22'.

* Relaxed the PyYaml dependency.
### Deprecations

## Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion tfx/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def make_required_install_packages():
'ml-metadata>=0.21.2,<0.22',
'protobuf>=3.7,<4',
'pyarrow>=0.15,<0.16',
'pyyaml>=3.12,<4',
'pyyaml>=5,<6',
'six>=1.10,<2',
'tensorflow>=1.15,<3',
'tensorflow-data-validation>=0.21.4,<0.22',
Expand Down
6 changes: 3 additions & 3 deletions tfx/orchestration/kubeflow/kubeflow_dag_runner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def testTwoStepPipeline(self):
with tarfile.TarFile.open(file_path).extractfile(
'pipeline.yaml') as pipeline_file:
self.assertIsNotNone(pipeline_file)
pipeline = yaml.load(pipeline_file)
pipeline = yaml.safe_load(pipeline_file)

containers = [
c for c in pipeline['spec']['templates'] if 'container' in c
Expand Down Expand Up @@ -150,7 +150,7 @@ def testMountGcpServiceAccount(self):
with tarfile.TarFile.open(file_path).extractfile(
'pipeline.yaml') as pipeline_file:
self.assertIsNotNone(pipeline_file)
pipeline = yaml.load(pipeline_file)
pipeline = yaml.safe_load(pipeline_file)

containers = [
c for c in pipeline['spec']['templates'] if 'container' in c
Expand Down Expand Up @@ -192,7 +192,7 @@ def testVolumeMountingPipelineOperatorFuncs(self):
with tarfile.TarFile.open(file_path).extractfile(
'pipeline.yaml') as pipeline_file:
self.assertIsNotNone(pipeline_file)
pipeline = yaml.load(pipeline_file)
pipeline = yaml.safe_load(pipeline_file)

container_templates = [
c for c in pipeline['spec']['templates'] if 'container' in c
Expand Down

0 comments on commit b2b0267

Please sign in to comment.