MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _print_ones

Method _print_ones

tensorflow/python/debug/cli/curses_ui_test.py:293–309  ·  view source on GitHub ↗
(self, args, screen_info=None)

Source from the content-addressed store, hash-verified

291 return output
292
293 def _print_ones(self, args, screen_info=None):
294 ap = argparse.ArgumentParser(
295 description="Print all-one matrix.", usage=argparse.SUPPRESS)
296 ap.add_argument(
297 "-s",
298 "--size",
299 dest="size",
300 type=int,
301 default=3,
302 help="Size of the matrix. For example, of the value is 3, "
303 "the matrix will have shape (3, 3)")
304
305 parsed = ap.parse_args(args)
306
307 m = np.ones([parsed.size, parsed.size])
308
309 return tensor_format.format_tensor(m, "m")
310
311 def testInitialization(self):
312 ui = MockCursesUI(40, 80)

Callers

nothing calls this directly

Calls 3

add_argumentMethod · 0.80
parse_argsMethod · 0.80
onesMethod · 0.80

Tested by

no test coverage detected