-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When trying to run the Jupyter Notebook, the small scale example, I get the following error:
Found 2 einsums.
The running time of the whole function is 0.000613 s
Einsums constitue 131.8 % of the running time (0.000807 s).
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-8750a51928fb> in <module>()
7 c = tf.random_normal((12, 14))
8 # res = func(a, b, c)
----> 9 orders, optimized_func = tf_einsum_opt.optimizer(func, sess, a, b, c)
/home/bgavran3/Dropbox/ucenje/Programiranje/tf_einsum_opt/tf_einsum_opt.py in optimizer(f, sess, *args)
115 improved_orders = {}
116 for idx in range(len(slowest_to_fastest)):
--> 117 caller_str = cache.keys()[slowest_to_fastest[idx]]
118 vanilla_einsum_timings = cache[caller_str]['timings']
119 rel_timing = np.sum(vanilla_einsum_timings) / vanilla_whole_runtime
TypeError: 'dict_keys' object does not support indexing
I'm using Python 3.6 and Tensorflow 1.2.0rc1, not sure if any other info is needed as I've just cloned the repo and ran the notebook.
Metadata
Metadata
Assignees
Labels
No labels