Skip to content

Commit

Permalink
Fix example Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed Oct 6, 2019
1 parent 0a56962 commit 7677f9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/manual_model_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# TRAINS - Example of manual model configuration
#
import os
from tempfile import gettempdir

import torch
from trains import Task

Expand All @@ -25,5 +28,6 @@
print('Any model stored from this point onwards, will contain both model_config and label_enumeration')

# storing the model, it will have the task network configuration and label enumeration
torch.save(model, '/tmp/model')

torch.save(model, os.path.join(gettempdir(), "model"))
print('Model saved')
3 changes: 2 additions & 1 deletion examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
absl-py>=0.7.1
Keras>=2.2.4
joblib>=0.13.2
matplotlib>=3.1.1
matplotlib>=3.1.1 ; python_version >= '3.6'
matplotlib == 3.0.3 ; python_version < '3.6'
seaborn>=0.9.0
sklearn>=0.0
tensorboard>=1.14.0
Expand Down

0 comments on commit 7677f9d

Please sign in to comment.