You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This code works fine for a convolutional neural network but when I try it with the deep neural network below:
_**************************
import pandas as pd
from keras import layers
from keras.models import Sequential
from keras.layers import Dense
from keras.callbacks import EarlyStopping
_/usr/local/bin/ncsdk/Controllers/Parsers/TensorFlowParser/Convolution.py:47: SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert(False, "Layer type not supported by Convolution: " + obj.type)
mvNCCheck v02.00, Copyright @ Intel Corporation 2017
****** Info: No Weights provided. inferred path: TF_Model/tf_model.data-00000-of-00001******
TF_Model/tf_model.meta
2019-05-23 16:07:34.948186: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
No Bias
No Bias
No Bias
No Bias
Fusing DeptwiseConv + Pointwise Convolution into plain Convolution
Fusing Add and Batch after Convolution
Traceback (most recent call last):
File "/usr/local/bin/mvNCCheck", line 239, in
quit_code = check_net(args.network, args.image, args.inputnode, args.outputnode, args.nshaves, args.inputsize, args.weights, args)
File "/usr/local/bin/mvNCCheck", line 206, in check_net
load_ret = load_network(args, parser, myriad_config)
File "/usr/local/bin/ncsdk/Controllers/Scheduler.py", line 83, in load_network
input_data, expected_result = p.calculateReference(arguments)
File "/usr/local/bin/ncsdk/Controllers/Parsers/TensorFlow.py", line 545, in calculateReference
nhwc_to_nchw_transpozition)
File "/home/tam/.local/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 639, in transpose
return _wrapfunc(a, 'transpose', axes)
File "/home/tam/.local/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 56, in wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: axes don't match array
Is it normal? Could you help me please resolving this issue.
Thank you in advance
The text was updated successfully, but these errors were encountered:
Hi,
This code works fine for a convolutional neural network but when I try it with the deep neural network below:
_**************************
import pandas as pd
from keras import layers
from keras.models import Sequential
from keras.layers import Dense
from keras.callbacks import EarlyStopping
train_df = pd.read_csv('./data/hourly_wages_data.csv')
train_X = train_df.drop(['wage_per_hour'], axis=1)
train_y = train_df[['wage_per_hour']]
n_cols = train_X.shape[1]
model= Sequential()
model.add(layers.Dense(200, activation='relu', input_shape=(n_cols,)))
model.add(layers.Dense(200, activation='relu'))
model.add(layers.Dense(200, activation='relu'))
model.add(layers.Dense(1, activation = 'softmax'))
model.compile(optimizer='adam', metrics=['accuracy'],loss='mean_squared_error')
model.fit(train_X, train_y, validation_split=0.2, epochs=30, batch_size=70)_
When I use the mvNCCheck, I get this error :
_/usr/local/bin/ncsdk/Controllers/Parsers/TensorFlowParser/Convolution.py:47: SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert(False, "Layer type not supported by Convolution: " + obj.type)
mvNCCheck v02.00, Copyright @ Intel Corporation 2017
****** Info: No Weights provided. inferred path: TF_Model/tf_model.data-00000-of-00001******
TF_Model/tf_model.meta
2019-05-23 16:07:34.948186: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
No Bias
No Bias
No Bias
No Bias
Fusing DeptwiseConv + Pointwise Convolution into plain Convolution
Fusing Add and Batch after Convolution
Traceback (most recent call last):
File "/usr/local/bin/mvNCCheck", line 239, in
quit_code = check_net(args.network, args.image, args.inputnode, args.outputnode, args.nshaves, args.inputsize, args.weights, args)
File "/usr/local/bin/mvNCCheck", line 206, in check_net
load_ret = load_network(args, parser, myriad_config)
File "/usr/local/bin/ncsdk/Controllers/Scheduler.py", line 83, in load_network
input_data, expected_result = p.calculateReference(arguments)
File "/usr/local/bin/ncsdk/Controllers/Parsers/TensorFlow.py", line 545, in calculateReference
nhwc_to_nchw_transpozition)
File "/home/tam/.local/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 639, in transpose
return _wrapfunc(a, 'transpose', axes)
File "/home/tam/.local/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 56, in wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: axes don't match array
Is it normal? Could you help me please resolving this issue.
Thank you in advance
The text was updated successfully, but these errors were encountered: