Skip to content

Commit 1b5d548

Browse files
bzamecnikfchollet
authored andcommitted
Add missing imports in the multi_gpu_model() example. (keras-team#8180)
1 parent 9a37c3d commit 1b5d548

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

keras/utils/training_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def multi_gpu_model(model, gpus):
4747
```python
4848
import tensorflow as tf
4949
from keras.applications import Xception
50+
from keras.utils import multi_gpu_model
51+
import numpy as np
5052
5153
num_samples = 1000
5254
height = 224

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy