Skip to content

Commit

Permalink
Merge 9d1108a into a16c5b5
Browse files Browse the repository at this point in the history
  • Loading branch information
chewxy committed Sep 28, 2020
2 parents a16c5b5 + 9d1108a commit 80ed80b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op_tensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ func (op repeatOp) UsePreallocDo(prealloc Value, inputs ...Value) (retVal Value,
err = errors.Errorf(nyiTypeFail, "repeatOp.Do()", inputs[0])
return
}
if rep == 1 {
return Copy(pt, t)
}

return tensor.RepeatReuse(t, pt, op.along, rep)
}
Expand Down

0 comments on commit 80ed80b

Please sign in to comment.