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

Method is_dummy

python/singa/tensor.py:159–168  ·  view source on GitHub ↗

Returns: True if the tensor is a dummy tensor

(self)

Source from the content-addressed store, hash-verified

157 return ret
158
159 def is_dummy(self):
160 '''
161 Returns:
162 True if the tensor is a dummy tensor
163 '''
164 match = re.match(r'Dummy#\d+', self.name)
165 if match:
166 return True
167 else:
168 return False
169
170 def ndim(self):
171 '''

Callers 1

__setattr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected