[AutoTVM] How to tune dense layers?

Hi,

I was wondering if is possible to use AutoTVM to tune dense layers and if so could you please share or pointing me to an example on how to achieve this. My target system is x86.

Thanks

3 Likes

Interested too. It would be nice to suppress the warning about the dense layer missing optimization and maybe also get a little improvement in performance

1 Like

Is this still not possible?

Add more ops to your tuning scripts like:

from

to

            params=params, ops=(relay.op.nn.conv2d, relay.op.nn.dense)

@jackwish Is topi dense layer registered in autotvm for x86 target?

1 Like

It is: https://github.com/apache/incubator-tvm/blob/master/topi/python/topi/x86/dense.py

1 Like

Sure it is.

PS. why post must be at least 20 characters…

1 Like

Thanks everyone, I’ll try it asap.

@jackwish @comaniac it does work! But tuned model performance are the same if not a bit worse than untuned one.

Sorry but I didn’t get it…

Really? What’s your workload?

workload=('dense', (1, 25088, 'float32'), (512, 25088, 'float32'), 0, 'float32')

@jackwish any clue or anything else I can try?