MCPcopy Create free account
hub / github.com/apache/singa / __init__

Method __init__

python/singa/autograd.py:350–355  ·  view source on GitHub ↗
(self, tensor, name=None)

Source from the content-addressed store, hash-verified

348 """
349
350 def __init__(self, tensor, name=None):
351 super(Dummy, self).__init__(name)
352 self.src = []
353 self.y_id2idx = {id(tensor): 0}
354 self.tensor = tensor
355 self.requires_grad = False
356
357 def output_name(self, idx):
358 return self.name

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected