Comments (10)
Which version of Tensorflow are you using?
I was using Tensorflow 0.9 when I built this project.
from multi-class-text-classification-cnn-rnn.
even i am getting same error while training i am using 1.0 tensorflow version
from multi-class-text-classification-cnn-rnn.
i changed tensorflow to 0.90 version it worked for me thanks...
from multi-class-text-classification-cnn-rnn.
How did you change tensorflow to 0.90? Please reply.
Also Please suggest what are the changes i need to make if i have to run this with tensorflow 1.
from multi-class-text-classification-cnn-rnn.
@ushagayatri follow below steps to install Tensor-flow 0.9 on Ubuntu
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
sudo pip install –upgrade $TF_BINARY_URL
from multi-class-text-classification-cnn-rnn.
@kumarneeraj2005 i have both python 2.7 and 3 running on my mac. So when i executed the above tensor flow in python 2.7 got updated to 0.9 version. So it did not work. I wonder how do i do with python3. Can you please suggest.
i tried python3 -m pip install –upgrade $TF_BINARY_URL
from multi-class-text-classification-cnn-rnn.
@kumarneeraj2005 , @jiegzhan , @akshataph
I got the below error when i executed in python 2.7 as
python train.py ./data/train.csv.zip ./training_config.json. Please suggest.
nagas-MacBook-Pro:tf0.9 nagaushagayathrilokala$ python train.py ./data/train.csv.zip ./training_config.json
CRITICAL:root:The maximum length is 14
INFO:root:x_train: 711219, x_dev: 79025, x_test: 87805
INFO:root:y_train: 711219, y_dev: 79025, y_test: 87805
Traceback (most recent call last):
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 60, in train_cnn_rnn
l2_reg_lambda = params['l2_reg_lambda'])
File "/Users/nagaushagayathrilokala/Desktop/tf0.9/text_cnn_rnn.py", line 34, in init
pad_prio = tf.concat([self.pad] * num_prio, 1)
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 458, in concat
dtype=dtypes.int32).get_shape(
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 620, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/constant_op.py", line 179, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/constant_op.py", line 162, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape))
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 353, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/Users/nagaushagayathrilokala/anaconda/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 290, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
from multi-class-text-classification-cnn-rnn.
I tried this:
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
python3 -m pip install $TF_BINARY_URL
This installed tensorflow 0.9 in python3.
But still i get this error
CRITICAL:root:The maximum length is 14
INFO:root:x_train: 711219, x_dev: 79025, x_test: 87805
INFO:root:y_train: 711219, y_dev: 79025, y_test: 87805
Traceback (most recent call last):
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 60, in train_cnn_rnn
l2_reg_lambda = params['l2_reg_lambda'])
File "/Users/nagaushagayathrilokala/Desktop/tf0.9/text_cnn_rnn.py", line 34, in init
pad_prio = tf.concat([self.pad] * num_prio, 1)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 458, in concat
dtype=dtypes.int32).get_shape(
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 620, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/ops/constant_op.py", line 179, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/ops/constant_op.py", line 162, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 353, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 290, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
from multi-class-text-classification-cnn-rnn.
Im also getting the same error im using python 3.4 and tensorflow=0.9
from multi-class-text-classification-cnn-rnn.
how can i predict the result
from multi-class-text-classification-cnn-rnn.
Related Issues (20)
- Training fails with small data set HOT 1
- train.py fails with best_model.ckpt not found HOT 5
- when trying to run train.py
- Extract Associated Probability
- Issue With Predictions
- os.rename can not found model-2600 HOT 1
- How to deal with the imbalance data problem? HOT 1
- why do you use description as input feature only?
- Predicting fail using tensorflow 1.3.0 HOT 1
- How to change parametrs to much bigger text on russian? HOT 2
- ata loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
- webserver for quick demo
- Tensorboard embedding
- Shape must be of rank 4 but is of rank 3 HOT 4
- Unsuccessful TensorSliceReader constructor HOT 6
- create a SavedModel
- the data only can get from the zip HOT 1
- use softmax to get probability distribution for each class
- KeyError: 'RECOVERED VEHICLE',what's the small_sample.csv?
- 请问small_sample.cvs是测试集合,prediction_all是预测的结果,对吗??
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-class-text-classification-cnn-rnn.