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
{{ message }}
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/torch2tflite/torch2tflite/converter.py", line 187, in
args.seed
File "/content/torch2tflite/torch2tflite/converter.py", line 40, in init
self.sample_data = self.load_sample_input(sample_file_path, target_shape, seed, normalize)
File "/content/torch2tflite/torch2tflite/converter.py", line 121, in load_sample_input
data = np.random.random(target_shape).astype(np.float32)
File "mtrand.pyx", line 434, in numpy.random.mtrand.RandomState.random
File "mtrand.pyx", line 425, in numpy.random.mtrand.RandomState.random_sample
File "_common.pyx", line 291, in numpy.random._common.double_fill
TypeError: 'tuple' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered:
Note: you will need to unzip the installed torch2tflite-1.0.0-py3.8.egg file at your Python site-packages folder using any unzipping tool (e.g. unzip), make the modification above, compress all files again, and put the compressed files in the same path.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I created below colab and getting below "TypeError: 'tuple' object cannot be interpreted as an integer" error.
Could you please help me on this ?
https://colab.research.google.com/drive/19JeOkrxlGP6KtkfGbrkO87COc4pvSZSE?usp=sharing#scrollTo=vdeytDxjFdZ3
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/torch2tflite/torch2tflite/converter.py", line 187, in
args.seed
File "/content/torch2tflite/torch2tflite/converter.py", line 40, in init
self.sample_data = self.load_sample_input(sample_file_path, target_shape, seed, normalize)
File "/content/torch2tflite/torch2tflite/converter.py", line 121, in load_sample_input
data = np.random.random(target_shape).astype(np.float32)
File "mtrand.pyx", line 434, in numpy.random.mtrand.RandomState.random
File "mtrand.pyx", line 425, in numpy.random.mtrand.RandomState.random_sample
File "_common.pyx", line 291, in numpy.random._common.double_fill
TypeError: 'tuple' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: