Could u help me here in this last part
I do get  non empty tensor in print statement but while returning it says empty List .
Why should that be.
with ThreadPoolExecutor(max_workers=2) as ex:
        print(os.path.join(test_dir, fnames[0]))
        predictions =  ex.map(process_file, range(len(fnames)))
        print('pred',torch.cat(list(predictions)))
    return torch.cat(list(predictions))