Skip to content

Commit

Permalink
list insert requires index (#19575)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLavelle authored Apr 20, 2024
1 parent 36d24c9 commit 5021ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/src/utils/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ def append(self, value):
self.tracker.track(value)
super().append(value)

def insert(self, value):
def insert(self, index, value):
if self.tracker:
self.tracker.track(value)
super().insert(value)
super().insert(index, value)

def extend(self, values):
if self.tracker:
Expand Down

0 comments on commit 5021ab7

Please sign in to comment.