model_card_toolkit.KeyVal

A generic key-value pair.

Inherits From: BaseModelCardField

key The key of the key-value pair.
value The value of the key-value pair.

Methods

clear

View source

Clear the subfields of this BaseModelCardField.

copy_from_proto

View source

Copies the contents of the model card proto into current object.

merge_from_proto

View source

Merges the contents of the model card proto into current object.

to_dict

View source

Convert your model card to a python dictionary.

to_json

View source

Convert this class object to json.

to_proto

View source

Convert this class object to the proto.

__eq__

key None
value None