Nikolay Chirkov and Copybara-Service
1124569c29
Tensor: Make tensor not requiring "-x objective-c++" option.
...
In this case tensor.h is compiled differently for C++ and Objective-C++ that violates ODR (once definition rule). Tensor has no virtual methods conditionally compiled but some Metal-related data members. Instead, unique_ptr to MtlResources that is declared as forward structure is unconditionally defined in the tensor class. MtlResources is defined differently in cc-file only that compiled just once per project so no ODR violation is here.
PiperOrigin-RevId: 504029286
2023-01-23 11:00:35 -08:00
..
2022-11-29 10:19:44 -08:00
2022-12-20 16:41:49 -08:00
2022-11-29 10:19:44 -08:00
2023-01-11 16:07:22 -08:00
2022-09-06 21:46:17 +00:00
2021-09-01 18:15:31 -07:00
2021-09-01 18:15:31 -07:00
2021-09-01 18:15:31 -07:00
2022-06-28 12:11:05 +00:00
2023-01-23 11:00:35 -08:00
2022-10-25 12:53:39 -07:00
2019-06-16 16:06:57 -07:00
2019-06-16 16:06:57 -07:00
2021-02-27 03:30:05 -05:00
2020-08-05 20:27:31 -04:00
2022-09-06 21:46:17 +00:00
2022-09-28 21:32:36 +00:00
2022-09-28 21:32:36 +00:00
2022-09-28 21:32:36 +00:00
2020-09-17 11:09:17 -04:00
2020-09-17 11:09:17 -04:00
2020-09-17 11:09:17 -04:00
2021-12-13 15:56:02 -08:00
2020-07-29 21:18:36 -04:00
2021-10-06 14:27:49 -07:00
2021-02-27 03:30:05 -05:00
2022-09-28 21:32:36 +00:00
2022-09-28 21:32:36 +00:00
2022-09-06 21:46:17 +00:00
2022-03-21 12:12:39 -07:00
2021-07-27 19:36:32 -04:00
2020-03-20 15:28:51 -07:00
2022-09-06 21:46:17 +00:00
2022-09-06 21:46:17 +00:00
2022-09-06 21:46:17 +00:00
2022-09-06 21:46:17 +00:00
2022-09-06 21:46:17 +00:00
2020-08-30 19:52:55 -04:00
2019-06-16 16:06:57 -07:00
2022-03-21 12:12:39 -07:00
2020-03-02 10:35:07 -08:00
2023-01-05 08:56:37 -08:00
2023-01-04 08:23:56 -08:00
2022-12-28 16:09:02 -08:00
2023-01-23 11:00:35 -08:00
2022-10-08 09:44:08 -07:00
2023-01-23 11:00:35 -08:00
2023-01-23 11:00:35 -08:00
2022-09-06 21:46:17 +00:00
2019-06-16 16:06:57 -07:00
2019-06-16 16:06:57 -07:00