mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
[xla:ffi] Remove deprecated TypeInfo constructor and replace it with XLA_FFI_TypeInfo alias
PiperOrigin-RevId: 826692285
This commit is contained in:
parent
fbd032df67
commit
dad4fb74cd
9
third_party/xla/xla/ffi/api/ffi.h
vendored
9
third_party/xla/xla/ffi/api/ffi.h
vendored
|
|
@ -53,7 +53,8 @@ namespace xla::ffi {
|
|||
|
||||
// All user data types that are passed via the execution context or state must
|
||||
// be registered with the XLA FFI ahead of time to get unique type id.
|
||||
using TypeId = XLA_FFI_TypeId; // NOLINT
|
||||
using TypeId = XLA_FFI_TypeId; // NOLINT
|
||||
using TypeInfo = XLA_FFI_TypeInfo; // NOLINT
|
||||
|
||||
enum class DataType : uint8_t {
|
||||
INVALID = XLA_FFI_DataType_INVALID,
|
||||
|
|
@ -1512,12 +1513,6 @@ inline constexpr XLA_FFI_TypeInfo MakeTypeInfo() {
|
|||
};
|
||||
}
|
||||
|
||||
// // TODO(ezhulenev): Remove this once everyone migrates to MakeTypeInfo.
|
||||
template <typename T>
|
||||
inline constexpr XLA_FFI_TypeInfo TypeInfo() {
|
||||
return MakeTypeInfo<T>();
|
||||
}
|
||||
|
||||
#define XLA_FFI_REGISTER_TYPE(API, NAME, TYPE_ID, TYPE_INFO) \
|
||||
XLA_FFI_REGISTER_TYPE_(API, NAME, TYPE_ID, TYPE_INFO, __COUNTER__)
|
||||
#define XLA_FFI_REGISTER_TYPE_(API, NAME, TYPE_ID, TYPE_INFO, N) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user