MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / remove

Method remove

test/sot/test_mutable_data.py:133–138  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

131 self.delitem(0)
132
133 def remove(self, value):
134 for i in range(self.proxy.length):
135 if self.getitem(i) == value:
136 self.delitem(i)
137 return
138 raise ValueError(f"Value {value} not found")
139
140 def sort(self, key=None, reverse=False):
141 if key is None:

Callers 15

test_removeMethod · 0.95
generate_stub_fileFunction · 0.45
mainFunction · 0.45
cleanFunction · 0.45
cleanFunction · 0.45
parseFileByGroupMethod · 0.45
getPipeLineInfoMethod · 0.45
getOPTraceInfoMethod · 0.45
dumpDictMethod · 0.45
parseFileByGroupMethod · 0.45
getDCGMTraceInfoMethod · 0.45

Calls 4

getitemMethod · 0.95
delitemMethod · 0.95
rangeFunction · 0.85
ValueErrorClass · 0.85

Tested by

no test coverage detected