GoogleCloudPlatform / mlops-with-vertex-ai

An end-to-end example of MLOps on Google Cloud using TensorFlow, TFX, and Vertex AI
Apache License 2.0
348 stars 120 forks source link

module 'tfx.dsl.components' has no attribute 'common' #21

Open oonisim opened 2 years ago

oonisim commented 2 years ago

03-training-formalization.ipynb

schema_importer = tfx.dsl.components.common.importer.Importer(
    source_uri=RAW_SCHEMA_DIR,
    artifact_type=tfx.types.standard_artifacts.Schema,
    reimport=False
)

context.run(schema_importer)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_8454/2100786518.py in <module>
      1 #import tfx.v1
      2 
----> 3 schema_importer = tfx.dsl.components.common.importer.Importer(
      4 #schema_importer = tfx.v1.dsl.Importer(
      5     source_uri=RAW_SCHEMA_DIR,

AttributeError: module 'tfx.dsl.components' has no attribute 'common'

Environment

tfx                                   1.8.0

Soluition

import tfx.v1