mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
[xla:ffi] Fix XLA_FFI_REGISTER_TYPE_X macro to support optional args
PiperOrigin-RevId: 820414595
This commit is contained in:
parent
fd09236fe4
commit
a2ab65d20c
3
third_party/xla/xla/ffi/api/ffi.h
vendored
3
third_party/xla/xla/ffi/api/ffi.h
vendored
|
|
@ -1480,7 +1480,8 @@ XLA_FFI_TypeInfo TypeInfo() {
|
|||
return ::xla::ffi::Ffi::RegisterTypeId(API, NAME, TYPE_ID, TYPE_INFO); \
|
||||
}()
|
||||
|
||||
#define XLA_FFI_REGISTER_TYPE_X(x, API, NAME, TYPE_ID, TYPE_INFO, FUNC) FUNC
|
||||
#define XLA_FFI_REGISTER_TYPE_X(x, API, NAME, TYPE_ID, TYPE_INFO, FUNC, ...) \
|
||||
FUNC
|
||||
|
||||
// Registers external type with XLA runtime and assigns it a unique type id.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user