Skip to content

Commit 6e26174

Browse files
dhruvesh09zhitaoli
and
zhitaoli
authored
Add infer_feature_shape=False back to the test pipeline for kubeflow end to end testing.
This is needed because input for `trip_seconds` is not always set. PiperOrigin-RevId: 355282533 Co-authored-by: zhitaoli <zhitaoli@google.com>
1 parent 5aeadf0 commit 6e26174

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tfx/orchestration/kubeflow/v2/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def create_pipeline_components(
131131
statistics_gen = components.StatisticsGen(
132132
examples=example_gen.outputs['examples'])
133133
schema_gen = components.SchemaGen(
134-
statistics=statistics_gen.outputs['statistics'])
134+
statistics=statistics_gen.outputs['statistics'],
135+
infer_feature_shape=False)
135136
example_validator = components.ExampleValidator(
136137
statistics=statistics_gen.outputs['statistics'],
137138
schema=schema_gen.outputs['schema'])

tfx/orchestration/kubeflow/v2/testdata/expected_full_taxi_pipeline_job.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"infer_feature_shape":{
180180
"runtimeValue":{
181181
"constantValue":{
182-
"intValue":"1"
182+
"intValue":"0"
183183
}
184184
}
185185
},

0 commit comments

Comments
 (0)