|
Algorithm 2 Heterogeneous DDLO for MEC networks |
| 1: |
Input: all WDs’ task requirements
|
| 2: |
Output: offloading decision
|
| 3: |
Initialization:
|
| 4: |
Initialize all B DNNs with different random parameters , ; |
| 5: |
Initialize memory structure with size H; |
| 6: |
for
do
|
| 7: |
Input the same to each DNN. |
| 8: |
Generate B offloading action candidates from the DNNs ; |
| 9: |
Select the offloading decision ; |
| 10: |
Store into the memory structure; |
| 11: |
Randomly Sample B batches of training data from the memory structure; |
| 12: |
Train the DNNs; |
| 13: |
end for
|