Skip to content

Commit

Permalink
refactor: Update task decorator to enable deck (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw committed Jun 30, 2024
1 parent 4fbfa5d commit 5aee3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/mlflow_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First, install the Flyte MLflow plugin:
To log the metrics and parameters to Flyte deck, add {py:func}`@mlflow_autolog <flytekitplugins.mlflow.mlflow_autolog>` to the task. For example

```python
@task(disable_deck=False)
@task(enable_deck=True)
@mlflow_autolog(framework=mlflow.keras)
def train_model(epochs: int):
...
Expand Down
2 changes: 1 addition & 1 deletion examples/nlp_processing/nlp_processing/word2vec_and_lda.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def dimensionality_reduction(model_ser: FlyteFile[MODELSER_NLP]) -> plotdata:
return x_vals, y_vals, labels


@task(cache_version="1.0", cache=True, limits=Resources(mem="600Mi"), disable_deck=False)
@task(cache_version="1.0", cache=True, limits=Resources(mem="600Mi"), enable_deck=True)
def plot_with_plotly(x: List[float], y: List[float], labels: List[str]):
layout = go.Layout(height=600, width=800)
fig = go.Figure(
Expand Down

0 comments on commit 5aee3d0

Please sign in to comment.