ddfnet icon indicating copy to clipboard operation
ddfnet copied to clipboard

basic query

Open nanmehta opened this issue 4 years ago • 3 comments

from . import ddf_mul_ext, ddf_mul_faster_ext, ddf_add_ext, ddf_add_faster_ext Can anyone please help me to know what does this dot after from word in the above line indicates (. ) means in terms of importing some folder.

I am trying to execute the folder DDF in my own code, bu everytime I am calling the function it is giving some import errors like ImportError: cannot import name 'ddf_mul_ext' from 'ddf' (D:\burst_dataset\trial_ddf\ddf_init_.py)

nanmehta avatar Oct 13 '21 06:10 nanmehta

You may need to check two things:

  1. compile ddf
  2. move the ".so" files from the build/lib folder to the ddf folder.

theFoxofSky avatar Oct 13 '21 09:10 theFoxofSky

okay, sir. Can we get a without CUDA version of this? I mean simply PyTorch implementation

nanmehta avatar Oct 14 '21 13:10 nanmehta

If you use python implementation, it will be very slow, because python implementation will introduce too many "for" loops.

theFoxofSky avatar Oct 15 '21 01:10 theFoxofSky