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

Method summary

tensorflow/python/keras/engine/network.py:1434–1461  ·  view source on GitHub ↗

Prints a string summary of the network. Arguments: line_length: Total length of printed lines (e.g. set this to adapt the display to different terminal window sizes). positions: Relative or absolute positions of log elements in each line. If n

(self, line_length=None, positions=None, print_fn=None)

Source from the content-addressed store, hash-verified

1432 return yaml.dump(self._updated_config(), **kwargs)
1433
1434 def summary(self, line_length=None, positions=None, print_fn=None):
1435 """Prints a string summary of the network.
1436
1437 Arguments:
1438 line_length: Total length of printed lines
1439 (e.g. set this to adapt the display to different
1440 terminal window sizes).
1441 positions: Relative or absolute positions of log elements
1442 in each line. If not provided,
1443 defaults to `[.33, .55, .67, 1.]`.
1444 print_fn: Print function to use. Defaults to `print`.
1445 It will be called on each line of the summary.
1446 You can set it to a custom function
1447 in order to capture the string summary.
1448
1449 Raises:
1450 ValueError: if `summary()` is called before the model is built.
1451 """
1452 if not self.built:
1453 raise ValueError('This model has not yet been built. '
1454 'Build the model first by calling `build()` or calling '
1455 '`fit()` with some data, or specify '
1456 'an `input_shape` argument in the first layer(s) for '
1457 'automatic build.')
1458 layer_utils.print_summary(self,
1459 line_length=line_length,
1460 positions=positions,
1461 print_fn=print_fn)
1462
1463 def _validate_graph_inputs_and_outputs(self):
1464 """Validates the inputs and outputs of a Graph Network."""

Callers 8

test_summaryMethod · 0.45
test_bidirectionalMethod · 0.45
CreateEndpointFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_summaryMethod · 0.36
test_bidirectionalMethod · 0.36
CreateEndpointFunction · 0.36