sjvasquez / web-traffic-forecasting

Kaggle | Web Traffic Forecasting 📈
666 stars 239 forks source link

Two errors occurred while running cnn.py #3

Open MLikelihood opened 6 years ago

MLikelihood commented 6 years ago

For anaconda python 3.6 version:

  1. File "D:\Anaconda\lib\site-packages\tensorflow\python\framework\tensor_shape.py", line 32, in init self._value = int(value) TypeError: int() argument must be a string, a bytes-like object or a number, not 'Tensor'

  2. File "D:\Anaconda\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 302, in _AssertCompatible (dtype.name, repr(mismatch), type(mismatch).name)) TypeError: Expected int32, got 1.0 of type 'float' instead.

vanlinhnguyen commented 6 years ago

Same problem here! Did you find out the solution?

wangminzheng commented 5 years ago

line 22 in tf_utils.py, change it to: shift = int( (convolution_width / 2) + (int(dilation_rate[0] - 1) / 2) )

cz2011301070 commented 5 years ago

I have the same problem!