tensorflow2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from keras.layers import Lambda, concatenate
|
||||
from keras.models import Model
|
||||
from tensorflow.keras.layers import Lambda, concatenate
|
||||
from tensorflow.keras.models import Model
|
||||
import tensorflow as tf
|
||||
|
||||
def multi_gpu_model(model, gpus):
|
||||
@@ -59,4 +59,4 @@ def multi_gpu_model(model, gpus):
|
||||
for name, outputs in zip(model.output_names, all_outputs):
|
||||
merged.append(concatenate(outputs,
|
||||
axis=0, name=name))
|
||||
return Model(model.inputs, merged)
|
||||
return Model(model.inputs, merged)
|
||||
|
||||
Reference in New Issue
Block a user