Home
last modified time | relevance | path

Searched refs:encode_fn (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder.py123 def do_encode(self, list_value, encode_fn): argument
127 encoded_list.list_value.values.add().CopyFrom(encode_fn(element))
166 def do_encode(self, tuple_value, encode_fn): argument
170 encoded_tuple.tuple_value.values.add().CopyFrom(encode_fn(element))
189 def do_encode(self, dict_value, encode_fn): argument
193 encoded_dict.dict_value.fields[key].CopyFrom(encode_fn(value))
216 def do_encode(self, named_tuple_value, encode_fn): argument
224 pair.value.CopyFrom(encode_fn(named_tuple_value._asdict()[key]))
247 def do_encode(self, float64_value, encode_fn): argument
248 del encode_fn
[all …]