MCPcopy Create free account
hub / github.com/apple/axlearn / create_current_timestamp

Function create_current_timestamp

axlearn/ft/utils.py:415–423  ·  view source on GitHub ↗

Create a timestamp protobuf with current time. Returns: Timestamp protobuf set to current time

()

Source from the content-addressed store, hash-verified

413
414
415def create_current_timestamp() -> timestamp_pb2.Timestamp:
416 """Create a timestamp protobuf with current time.
417
418 Returns:
419 Timestamp protobuf set to current time
420 """
421 now = timestamp_pb2.Timestamp()
422 now.GetCurrentTime()
423 return now
424
425
426def worker_identity_to_proto(identity: WorkerIdentity) -> manager_pb2.WorkerIdentity:

Callers 7

report_statusMethod · 0.90
report_replica_statusMethod · 0.90
restart_replicaMethod · 0.90
restart_workerMethod · 0.90
report_pod_shutdownMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected