You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-train-tensorflow.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: machine-learning
7
7
ms.subservice: core
8
8
ms.author: minxia
9
9
author: mx-iao
10
-
ms.date: 09/28/2020
10
+
ms.date: 02/23/2022
11
11
ms.topic: how-to
12
12
13
13
# Customer intent: As a TensorFlow developer, I need to combine open-source with a cloud platform to train, evaluate, and deploy my deep learning models at scale.
@@ -26,8 +26,7 @@ Whether you're developing a TensorFlow model from the ground-up or you're bringi
26
26
Run this code on either of these environments:
27
27
28
28
- Azure Machine Learning compute instance - no downloads or installation necessary
29
-
30
-
- Complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md) to create a dedicated notebook server pre-loaded with the SDK and the sample repository.
29
+
- Complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md) to create a dedicated notebook server pre-loaded with the SDK and the sample repository.
31
30
- In the samples deep learning folder on the notebook server, find a completed and expanded notebook by navigating to this directory: **how-to-use-azureml > ml-frameworks > tensorflow > train-hyperparameter-tune-deploy-with-tensorflow** folder.
Use the `register()` method to register the data set to your workspace so they can be shared with others, reused across various experiments, and referred to by name in your training script.
@@ -126,6 +125,7 @@ For more information on compute targets, see the [what is a compute target](conc
126
125
To define the Azure ML [Environment](concept-environments.md) that encapsulates your training script's dependencies, you can either define a custom environment or use an Azure ML curated environment.
127
126
128
127
#### Use a curated environment
128
+
129
129
Azure ML provides prebuilt, curated environments if you don't want to define your own environment. Azure ML has several CPU and GPU curated environments for TensorFlow corresponding to different versions of TensorFlow. For more info, see [Azure ML Curated Environments](resource-curated-environments.md).
130
130
131
131
If you want to use a curated environment, you can run the following command instead:
To see the packages included in the curated environment, you can write out the conda dependencies to disk:
139
+
139
140
```python
141
+
140
142
tf_env.save_to_directory(path=curated_env_name)
141
143
```
142
144
143
145
Make sure the curated environment includes all the dependencies required by your training script. If not, you'll have to modify the environment to include the missing dependencies. If the environment is modified, you'll have to give it a new name, as the 'AzureML' prefix is reserved for curated environments. If you modified the conda dependencies YAML file, you can create a new environment from it with a new name, for example:
@@ -221,7 +227,9 @@ The [Run object](/python/api/azureml-core/azureml.core.run%28class%29) provides
221
227
run = Experiment(workspace=ws, name='Tutorial-TF-Mnist').submit(src)
222
228
run.wait_for_completion(show_output=True)
223
229
```
230
+
224
231
### What happens during run execution
232
+
225
233
As the run is executed, it goes through the following stages:
226
234
227
235
- **Preparing**: A docker image is created according to the environment defined. The image is uploaded to the workspace's container registry and cached for later runs. Logs are also streamed to the run history and can be viewed to monitor progress. If a curated environment is specified instead, the cached image backing that curated environment will be used.
0 commit comments