You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/07/09 17:41:38 UTC

[GitHub] [incubator-tvm] taeheej commented on issue #6028: very slow runtime for keras compiler on CPU

taeheej commented on issue #6028:
URL: https://github.com/apache/incubator-tvm/issues/6028#issuecomment-656261043


   I am following 'Compile Keras Models' (https://tvm.apache.org/docs/tutorials/frontend/from_keras.html).
   Instead of gpu, I set up target as 'llvm' and ctx as cpu. 
   Then, I executed the following code. It takes about 12,000 millseconds. 
   The warning message is 'Cannot find config for 'dense_nopack.x86' and 'conv2d_NCHWc.x86'.
   Is there any solution to make better performance? 
   
   -------------------------------------------------
   target = 'llvm'
   ctx = tvm.cpu(0)
   with tvm.transform.PassContext(opt_level=3):
       executor = relay.build_module.create_executor('graph', mod, ctx, target)
   dtype = 'float32'
   tvm_out = executor.evaluate()(tvm.nd.array(data.astype(dtype)), **params)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org