Allow use of REGISTER_UNARY_*_FUNCTION* macros outside namespace tensorflow
PiperOrigin-RevId: 254221618
This commit is contained in:
parent
ffd4de40fb
commit
063d42680b
@ -438,8 +438,8 @@ class UnaryVariantBinaryOpRegistration {
|
||||
REGISTER_UNARY_VARIANT_DECODE_FUNCTION_UNIQ(ctr, T, type_name)
|
||||
|
||||
#define REGISTER_UNARY_VARIANT_DECODE_FUNCTION_UNIQ(ctr, T, type_name) \
|
||||
static variant_op_registry_fn_registration::UnaryVariantDecodeRegistration< \
|
||||
T> \
|
||||
static ::tensorflow::variant_op_registry_fn_registration:: \
|
||||
UnaryVariantDecodeRegistration<T> \
|
||||
register_unary_variant_op_decoder_fn_##ctr(type_name)
|
||||
|
||||
// ****** NOTE ******
|
||||
@ -508,8 +508,8 @@ class UnaryVariantBinaryOpRegistration {
|
||||
|
||||
#define REGISTER_UNARY_VARIANT_UNARY_OP_FUNCTION_UNIQ( \
|
||||
ctr, op, device, T, type_index, unary_op_function) \
|
||||
static variant_op_registry_fn_registration::UnaryVariantUnaryOpRegistration< \
|
||||
T> \
|
||||
static ::tensorflow::variant_op_registry_fn_registration:: \
|
||||
UnaryVariantUnaryOpRegistration<T> \
|
||||
register_unary_variant_op_decoder_fn_##ctr(op, device, type_index, \
|
||||
unary_op_function)
|
||||
|
||||
@ -529,7 +529,7 @@ class UnaryVariantBinaryOpRegistration {
|
||||
|
||||
#define REGISTER_UNARY_VARIANT_BINARY_OP_FUNCTION_UNIQ( \
|
||||
ctr, op, device, T, type_index, binary_op_function) \
|
||||
static variant_op_registry_fn_registration:: \
|
||||
static ::tensorflow::variant_op_registry_fn_registration:: \
|
||||
UnaryVariantBinaryOpRegistration<T> \
|
||||
register_unary_variant_op_decoder_fn_##ctr(op, device, type_index, \
|
||||
binary_op_function)
|
||||
|
Loading…
Reference in New Issue
Block a user