TypeError: 'module' object is not callable error?
I studying on a model training. when i called the training function i got this error &quot;TypeError: 'module' object is not callable&quot; and i can't see where i missed it.
here is my calling function:
train(
            model,
            optimizer,
            loss,
            train_loader,
            hyperparams[&quot;epoch&quot;],
            scheduler=hyperparams[&quot;scheduler&quot;],
            device=hyperparams[&quot;device&quot;],
            val_loader=val_loader,
           

)
the error i got

You are calling tqdm module, instead of tqdm method from tqdm module.
Replace:
import tqdm

with:
from tqdm import tqdm

