i did same error
START CODE HERE
tfx.v1.components.ImportSchemaGen(
schema_file)
Use ImportSchemaGen to put the curated schema to ML M
schema_gen = ImportSchemaGen(new_schema)
Run the component
context.run(schema_gen, enable_cache=False)
END CODE HERE
context.show(schema_gen.outputs[‘schema’])
grader-required-cell
START CODE HERE
tfx.v1.components.ImportSchemaGen(
schema_file)
Use ImportSchemaGen to put the curated schema to ML M
schema_gen = ImportSchemaGen(new_schema)
Run the component
context.run(schema_gen, enable_cache=False)
END CODE HERE
context.show(schema_gen.outputs[‘schema’])
AttributeError Traceback (most recent call last)
in
2
3 ### START CODE HERE ###
----> 4 tfx.v1.components.ImportSchemaGen(
5 schema_file)
6
AttributeError: module ‘tfx.v1’ has no attribute ‘v1’