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

Function events_from_file

tensorflow/python/kernel_tests/summary_ops_test.py:1203–1218  ·  view source on GitHub ↗

Returns all events in a single event file. Args: filepath: Path to the event file. Returns: A list of all tf.Event protos in the event file.

(filepath)

Source from the content-addressed store, hash-verified

1201
1202
1203def events_from_file(filepath):
1204 """Returns all events in a single event file.
1205
1206 Args:
1207 filepath: Path to the event file.
1208
1209 Returns:
1210 A list of all tf.Event protos in the event file.
1211 """
1212 records = list(tf_record.tf_record_iterator(filepath))
1213 result = []
1214 for r in records:
1215 event = event_pb2.Event()
1216 event.ParseFromString(r)
1217 result.append(event)
1218 return result
1219
1220
1221def events_from_logdir(logdir):

Callers 3

testNoSharingMethod · 0.70
events_from_logdirFunction · 0.70

Calls 3

EventMethod · 0.45
ParseFromStringMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected