MCPcopy Create free account
hub / github.com/bnegreve/rasta / to_multi_gpu

Function to_multi_gpu

python/multi_gpu.py:20–40  ·  view source on GitHub ↗

Given a keras [model], return an equivalent model which parallelizes the computation over [n_gpus] GPUs. Each GPU gets a slice of the input batch, applies the model on that slice and later the outputs of the models are concatenated to a single tensor, hence the user sees a model th

(model, n_gpus=2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected