MCPcopy Index your code
hub / github.com/pytorch/pytorch / clone

Method clone

caffe2/python/schema.py:244–248  ·  view source on GitHub ↗
(self, keep_blobs=True)

Source from the content-addressed store, hash-verified

242 return self.lengths.has_blobs() and self._items.has_blobs()
243
244 def clone(self, keep_blobs=True):
245 return type(self)(
246 _normalize_field(self._items, keep_blobs=keep_blobs),
247 _normalize_field(self.lengths, keep_blobs=keep_blobs)
248 )
249
250 def _pprint_impl(self, indent, str_buffer):
251 str_buffer.write(' ' * indent + "List(\n")

Callers 10

inplace_setupFunction · 0.45
backwards_setupFunction · 0.45
_normalize_fieldFunction · 0.45
NewRecordFunction · 0.45
__init__Method · 0.45
generate_predict_netFunction · 0.45
testListSubclassCloneMethod · 0.45

Calls 1

_normalize_fieldFunction · 0.85

Tested by 3

testListSubclassCloneMethod · 0.36