Skip to content

fasttext cnn model TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #2

Description

@zgmming

Ubuntu16.04+cuda 9.0+tensorflow-gpu 1.11.0

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

========================================================
2019-02-25 19:54:15.464610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-02-25 19:54:15.464678: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0
2019-02-25 19:54:15.464686: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N
2019-02-25 19:54:15.465047: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 14871 MB memory) -> physical GPU (device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:03:00.0, compute capability: 7.0)
Epoch: 1
Traceback (most recent call last):
File "/home/kelvin/deeplearning/text-classification-demos/fasttext_model.py", line 209, in
main()
File "/home/kelvin/deeplearning/text-classification-demos/fasttext_model.py", line 160, in main
fast_model.acc], feed_dict=feed_dict)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 887, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1079, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Process finished with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions