-
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 just followed the example, and I get the following error #6
Comments
Hi, The assertion checks if the input tensor into the SinusoidalPositionalEmbedding() has a defined shape. It seems like your input tensor doesn't have a shape.
It checks if |
https://github.com/kerryJo/ImageSegmentation.git source is in my repository, |
I couldn't find any import cntkx in your repo, maybe you need to update it to the latest. Did you do a |
Yes. |
Can you uninstall and reinstall cntkx again? I'm on cntkx 0.1.1 and python 3.6 and i can't replicate the bug. |
It is the same install it again. |
hi @kerryJo i have just changed the API of
It is perfectly fine to use python 3.6.x anaconda environment, i'm using an anaconda envs too. Create a single a "check_cntkx.py" file with a single line of code: If should run without error. Let me know if it works or not! |
Traceback (most recent call last): same error.. |
Is it still a syntax error? I don't think it has anything to do the library, but your python interpreter or envs. |
Wait, are you sure you are using python3.6, cause it seems like the errors are being raised when f-strings are used. Python 3.6 allows for f-string. |
ok wait for you |
@kerryJo please use python3.6 and above when using cntkx. You are getting errors because you are using the wrong python version it seems. |
Thank you. The Python version of the anaconda environment was 3.5. I'll check again after the upgrade. |
Feel free to reopen this issue again if the issue is not resolved! :) |
Traceback (most recent call last):
File "train.py", line 4, in
import cntkx as Cx
File "C:\Anaconda3\lib\site-packages\cntkx_init_.py", line 1, in
from . import layers
File "C:\Anaconda3\lib\site-packages\cntkx\layers_init_.py", line 1, in
from .layers import *
File "C:\Anaconda3\lib\site-packages\cntkx\layers\layers.py", line 316
assert x.shape[0] > 0, f"input tensor must have a defined shape, input shape is {x.shape}"
^
SyntaxError: invalid syntax
D:\GIT\Segmentation\ImageSegmentation>python unettest.py
C:\Anaconda3\lib\site-packages\cntk\cntk_py_init.py:32: UserWarning: Unsupported Windows version (7). CNTK supports Windows 10 and above, only.
warnings.warn('Unsupported Windows version (%s). CNTK supports Windows 10 and above, only.' % my_distro_ver)
Traceback (most recent call last):
File "unettest.py", line 2, in
import cntkx as CX
File "C:\Anaconda3\lib\site-packages\cntkx_init_.py", line 1, in
from . import layers
File "C:\Anaconda3\lib\site-packages\cntkx\layers_init_.py", line 1, in
from .layers import *
File "C:\Anaconda3\lib\site-packages\cntkx\layers\layers.py", line 316
assert x.shape[0] > 0, f"input tensor must have a defined shape, input shape is {x.shape}"
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: