Skip to content

Commit 06a1531

Browse files
committed
Freshness Tensorflow
1 parent d035c02 commit 06a1531

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/machine-learning/how-to-train-tensorflow.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ web_paths = [
8383
'http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz',
8484
'http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz'
8585
]
86-
dataset = Dataset.File.from_files(path=web_paths)
86+
dataset = Dataset.File.from_files(path = web_paths)
8787
```
8888

8989
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.
@@ -137,17 +137,23 @@ tf_env = Environment.get(workspace=ws, name=curated_env_name)
137137
```
138138

139139
To see the packages included in the curated environment, you can write out the conda dependencies to disk:
140+
140141
```python
142+
141143
tf_env.save_to_directory(path=curated_env_name)
142144
```
143145

144146
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:
147+
145148
```python
149+
146150
tf_env = Environment.from_conda_specification(name='tensorflow-2.2-gpu', file_path='./conda_dependencies.yml')
147151
```
148152

149153
If you had instead modified the curated environment object directly, you can clone that environment with a new name:
154+
150155
```python
156+
151157
tf_env = tf_env.clone(new_name='tensorflow-2.2-gpu')
152158
```
153159

0 commit comments

Comments
 (0)