예제 #1
0
conv_in3=120 
conv_out3=50
conv_in4=120 
conv_out4=50
dense_in1=10
conv_in5=120 
conv_out5=50
dense_out1=20
dense_in2=10
dense_out2=20
dense_in3=10
dense_out3=20

print(mob_time[0])

mob_time1 = mobile_profiler1.predict([conv_in1, conv_out1])
mob_time[1]=mob_time1
print(mob_time[1])

#serv_time2 = Server_profiler1.predict([120,50])+Server_profiler2.predict([120,50])
#serv_time[1]=serv_time2
#print(serv_time2)

mob_time2 = mob_time1+mobile_profiler2.predict([conv_out2])
mob_time[2]=mob_time2
print(mob_time[2])

mob_time3 = mob_time2+mobile_profiler3.predict([conv_out2])
mob_time[3]=mob_time3
print(mob_time[3])
예제 #2
0
conv_out2 = 50
conv_in3 = 120
conv_out3 = 50
conv_in4 = 120
conv_out4 = 50
dense_in1 = 10
conv_in5 = 120
conv_out5 = 50
dense_out1 = 20
dense_in2 = 10
dense_out2 = 20
dense_in3 = 10
dense_out3 = 20

conv_layer1 = Server_profiler1.predict([
    conv_in1, conv_out1
]) + Server_profiler2.predict([conv_out1]) + Server_profiler3.predict(
    [conv_out1]) + Server_profiler4.predict([pool_in1, pool_out1])
conv_layer2 = Server_profiler1.predict([
    conv_in2, conv_out2
]) + Server_profiler2.predict([conv_out1]) + Server_profiler3.predict(
    [conv_out1]) + Server_profiler4.predict([pool_in1, pool_out1])
conv_layer3 = Server_profiler1.predict([
    conv_in3, conv_out3
]) + Server_profiler2.predict([conv_out1]) + Server_profiler3.predict(
    [conv_out1]) + Server_profiler4.predict([pool_in1, pool_out1])
conv_layer4 = Server_profiler1.predict([
    conv_in4, conv_out4
]) + Server_profiler2.predict([conv_out1]) + Server_profiler3.predict(
    [conv_out1]) + Server_profiler4.predict([pool_in1, pool_out1])
conv_layer5 = Server_profiler1.predict([