Searched refs:encode_fn (Results 1 – 2 of 2) sorted by relevance
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder.py | 136 def do_encode(self, list_value, encode_fn): argument 140 encoded_list.list_value.values.add().CopyFrom(encode_fn(element)) 179 def do_encode(self, tuple_value, encode_fn): argument 183 encoded_tuple.tuple_value.values.add().CopyFrom(encode_fn(element)) 202 def do_encode(self, dict_value, encode_fn): argument 206 encoded_dict.dict_value.fields[key].CopyFrom(encode_fn(value)) 229 def do_encode(self, named_tuple_value, encode_fn): argument 237 pair.value.CopyFrom(encode_fn(named_tuple_value._asdict()[key])) 260 def do_encode(self, float64_value, encode_fn): argument 261 del encode_fn [all …]
|
/external/tensorflow/tensorflow/python/data/util/ |
D | structure.py | 313 def _to_tensor_list_helper(encode_fn, element_spec, element): argument 337 return encode_fn(state, spec, component)
|