Cannot use Dict ExecutionParameter at `tfx>=0.28`
See original GitHub issueSystem information
- Have I specified the code to reproduce the issue(Yes/No): Yes
- Environment in which the code is executed: Linux, MacOS, Interactive Notebook
- TensorFlow version (you are using): 2.4.1
- TFX Version:
tfx>=0.28
- Python version: 3.7, 3.8
Describe the current behavior
In tfx>=0.28
, when using ExecutionParameter
with Dict
type, I got the error like ValueError: Unexpected type <class 'dict'>
.
Describe the expected behavior
If I run the same code in tfx==0.27
, it works.
Standalone code to reproduce the issue
- tfx 0.28: https://colab.research.google.com/drive/1B22-pdZpxiRbZNaeT3Xxa3qCU-_P0B8M?usp=sharing
- tfx 0.27: https://colab.research.google.com/drive/1Np8Tl8eOfX5uo1Zxq7y9X51z-2qsSA25?usp=sharing
Other info / logs
As the above comments, it looks like using ExecutionParameter
with Dict
type should behave normally.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Why can't I use a list as a dict key in python? - Stack Overflow
I had some vague idea that that the key has to be "hashable" but I'm just going to admit my own ignorance about...
Read more >Create a Dictionary in Python – Python Dict Methods
In this article, you will learn the basics of dictionaries in Python. You will learn how to create dictionaries, access the elements inside ......
Read more >Python Dictionary - GeeksforGeeks
Values in a dictionary can be of any data type and can be duplicated, whereas keys can't be repeated and must be immutable....
Read more >Class 'dict' does not define '__getitem__', so the ... - YouTrack
Class 'dict' does not define '__getitem__', so the '[]' operator cannot be used on its instances. 11.
Read more >Supported Python features - Numba
Users cannot use list-of-list as an argument because of this limitation. ... Numba only supports the use of dict() without any arguments.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would definitely help, but I can’t tell we will as we should also consider the backward compatibility and API consistency. Let me try to bring this issue to the internal discussions.
Writing here what I found