-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got the same error in all test file. #1
Comments
Hi @ye12121 thanks for trying out our tool! I am not able to reproduce this error, perhaps you could check whether you are using TensorFlow 1 version? Could you list the versions of TensorFlow and Keras you are using, along with configuration information? |
Thank you for your reply. I am using tensorflow==2.4.1, with original sample.yaml and the other just like test.sh. |
I am able to inject using the test.sh file too. Could you list your complete system configuration as I see it looks like you are on Windows with the C drive info? This version of TensorFlow + Keras and our TensorFI 2 fault injector do not use graphs by default - that's why I was doubtful of your TensorFlow version since you have |
I think I am using eager execution,since eager execution is setting enable by default on Tensorflow2 . It run on Windows and cpu-only version. Maybe the system platform cause this issue. And I got another question about layer_outputs function. I notice you are trying to split the network and modify the middle data. If the network structure is not always linear, like inception、resnet、densenet etcetera. they got multiple input or output on some layer. Is it the function still work? ------------------ new update -------------------- (tf2) ye@ye-Alienware:~/workspace/TensorFI2/tests/layer-outputs$ bash test.sh oh, i almost forgot, all those test py file should to be change at the beginning, |
Hi @ye12121 thanks for checking on Ubuntu as well - yes, a change is to be committed to the test files |
Here's the list of versions I use for all packages - perhaps you can check against the versions you've installed for the relevant packages in your virtual environment. You could perhaps also try to debug and see if this error occurs for all inputs, where it occurs, etc. You can use |
I replaced tensorflow version by 2.2 and it worked. I also try it on 2.4 and 2.5, they both got the same error. Maybe you could try it on different version of tensorflow to find out what causing this issue. |
Hi,
i try to run test file in test/layer-outputs/。by setup the basic param, i run every test file and got the following error.
Traceback (most recent call last):
File "D:/TensorFI2-master/tests/layer-outputs/fcn-fmnist.py", line 83, in
res = tfi.inject(model=model, x_test=test_images[i:i + 1], confFile=conf)
File "D:\TensorFI2-master\src\tensorfi2.py", line 42, in init
fiFunc(model, fiConf, **kwargs)
File "D:\TensorFI2-master\src\tensorfi2.py", line 146, in layer_outputs
get_pred = K.function([model.layers[randnum + 1].input], [model.layers[-1].output])
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\backend.py", line 4069, in function
model = models.Model(inputs=inputs, outputs=outputs)
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\training\tracking\base.py", line 517, in _method_wrapper
result = method(self, *args, **kwargs)
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 120, in init
self._init_graph_network(inputs, outputs)
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\training\tracking\base.py", line 517, in _method_wrapper
result = method(self, *args, **kwargs)
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 203, in _init_graph_network
nodes, nodes_by_depth, layers, _ = _map_graph_network(
File "C:\Users\f30012263\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 985, in _map_graph_network
raise ValueError('Graph disconnected: '
ValueError: Graph disconnected: cannot obtain value for tensor KerasTensor(type_spec=TensorSpec(shape=(None, 28, 28), dtype=tf.float32, name='flatten_input'), name='flatten_input', description="created by layer 'flatten_input'") at layer "flatten". The following previous layers were accessed without issue: []
The text was updated successfully, but these errors were encountered: