(self, indent)
| 268 | |
| 269 | |
| 270 | def _tensor_str(self, indent): |
| 271 | summarize = self.numel() > PRINT_OPTS.threshold |
| 272 | if self.dtype is flow.float16: |
| 273 | self = self.float() |
| 274 | |
| 275 | with flow.no_grad(): |
| 276 | formatter = _Formatter(get_summarized_data(self) if summarize else self) |
| 277 | return _tensor_str_with_formatter(self, indent, summarize, formatter) |
| 278 | |
| 279 | |
| 280 | def _add_suffixes(tensor_str, suffixes, indent): |
no test coverage detected