Skip to content
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

TypeError: tuple indices must be integers or slices, not tuple #27

Open
franck-allou opened this issue Feb 28, 2020 · 0 comments
Open

Comments

@franck-allou
Copy link

I get that error. I would like anyone to help me.
def dist_pair(self, pair_ixd):

    with tf.compat.v1.variable_scope("WarpedSiameseRNNDistPair") as scope:

        # unless it is the first call, then reuse the variables of the scope
        if self.is_first_dist_pair_call:
            self.is_first_dist_pair_call = False
        else:
            scope.reuse_variables()

        # T x K tensors, for T the latent time indices and K the number of RNN cells (encoder length)

        A = self.h[:, 2*pair_ixd, :]
        B = self.h[:, 2*pair_ixd+1, :]

TypeError: tuple indices must be integers or slices, not tuple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant