import module 方式引入模块,使用共享变量时,要使用module.变量名。
from module import * 方式引入模块,使用共享变量时,直接使用变量名。
在我的例子中,其中LSTMRNN是我自己编写的模块,
import LSTMRNN
model = LSTMRNN(TIME_STEPS, INPUT_SIZE, OUTPUT_SIZE, CELL_SIZE, BATCH_SIZE)
报错:TypeError: 'module' object is not callable 。
解决方案:改为 from LSTMRNN import *即可。