Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder.py133 def do_decode(self, value, decode_fn): argument
134 return [decode_fn(element) for element in value.list_value.values]
176 def do_decode(self, value, decode_fn): argument
177 return tuple(decode_fn(element) for element in value.tuple_value.values)
199 def do_decode(self, value, decode_fn): argument
200 return {key: decode_fn(val) for key, val in value.dict_value.fields.items()}
230 def do_decode(self, value, decode_fn): argument
232 items = [(pair.key, decode_fn(pair.value)) for pair in key_value_pairs]
256 def do_decode(self, value, decode_fn): argument
257 del decode_fn
[all …]
/external/tensorflow/tensorflow/core/framework/
Dvariant_op_registry.cc48 const string& type_name, const VariantDecodeFn& decode_fn) { in RegisterDecodeFn() argument
55 GetPersistentStringPiece(type_name), decode_fn)); in RegisterDecodeFn()
59 UnaryVariantOpRegistry::VariantDecodeFn* decode_fn = in DecodeUnaryVariant() local
61 if (decode_fn == nullptr) { in DecodeUnaryVariant()
65 bool decoded = (*decode_fn)(variant); in DecodeUnaryVariant()
Dvariant_op_registry_test.cc111 auto* decode_fn = in TEST() local
113 EXPECT_NE(decode_fn, nullptr); in TEST()
122 EXPECT_TRUE((*decode_fn)(&encoded)); in TEST()
Dvariant_op_registry.h97 const VariantDecodeFn& decode_fn);