corelib

package
v0.0.0-...-e38dc76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoEncodeToDict

func ProtoEncodeToDict(p proto.Message) map[string]any

ProtoEncodeToDict represents a proto as a map with field numbers as keys.

This function is very specific to W&B telemetry proto and is not a general proto conversion function.

  • Fields prefixed with an underscore or having an unsupported type are skipped
  • Nested messages are only supported if they consist entirely of bools or strings

All keys in the result and its nested maps are strings, and all values are string/int64/float64/slices and maps of those so that the result can be converted to JSON using wandb/simplejsonext.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL