2016-06-07 18 views

risposta

2

Ho avuto lo stesso problema di oggi e ho finito con questa soluzione:

def unravel_argmax(argmax, shape): 
    output_list = [] 
    output_list.append(argmax // (shape[2] * shape[3])) 
    output_list.append(argmax % (shape[2] * shape[3]) // shape[3]) 
    return tf.pack(output_list) 

Ecco una usage example in un taccuino ipython (lo uso per trasmettere le posizioni di messa in comune argmax al mio metodo unpooling)

+0

Freddo. Implementa Deconvnet con tensorflow. –

Problemi correlati