tfr.utils.parse_keys_and_weights
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-18 UTC.
[null,null,["Last updated 2023-08-18 UTC."],[],[]]