Skip to content

Commit

Permalink
Support use under PyTorch jit (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo authored and dgasmith committed Dec 7, 2018
1 parent 34c149a commit c58e187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt_einsum/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def contract_path(*operands, **kwargs):
raise ValueError("Einstein sum subscript '{}' does not contain the "
"correct number of indices for operand {}.".format(input_subscripts[tnum], tnum))
for cnum, char in enumerate(term):
dim = sh[cnum]
dim = int(sh[cnum])

if char in dimension_dict:
# For broadcasting cases we always want the largest dim size
Expand Down

0 comments on commit c58e187

Please sign in to comment.