tfr.utils.parse_keys_and_weights
Stay organized with collections
Save and categorize content based on your preferences.
Parses the encoded key to keys and weights.
tfr.utils.parse_keys_and_weights(
key: str
) -> Dict[str, float]
This parse function will remove all spaces. Different keys are split by ","
and then weight associated with key is split by ":".
Args |
key
|
A string represents a key, or a string of multiple keys, split by ",",
and weighted by the weights split by ":". For example, key =
'softmax_loss:0.9,sigmoid_cross_entropy_loss:0.1'.
|
Returns |
|
A dict from keys to weights.
|
[null,null,["Last updated 2023-08-18 UTC."],[],[]]