Returns: True if the tensor is a dummy tensor
(self)
| 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 | ''' |