from mlflow.entities._mlflow_object import _MlflowObject from mlflow.protos.service_pb2 import InputTag as ProtoInputTag [docs]class InputTag(_MlflowObject): """Input tag object associated with a dataset.""" def __init__(self, key: str, value: str) -> None: self._key = key self._value = value def __eq__(self, other: _MlflowObject) -> bool: if type(other) is type(self): return self.__dict__ == other.__dict__ return False @property def key(self) -> str: """String name of the input tag.""" return self._key @property def value(self) -> str: """String value of the input tag.""" return self._value [docs] def to_proto(self): tag = ProtoInputTag() tag.key = self.key tag.value = self.value return tag [docs] @classmethod def from_proto(cls, proto): return cls(proto.key, proto.value)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4