mediapipe/mediapipe/calculators/tensor
Nikolay Chirkov 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
..
testdata Internal change 2022-11-07 17:23:46 -08:00
audio_to_tensor_calculator_test.cc Internal change 2022-09-28 21:32:36 +00:00
audio_to_tensor_calculator.cc Internal change 2022-11-18 08:47:09 -08:00
audio_to_tensor_calculator.proto Internal change 2022-11-18 08:47:09 -08:00
bert_preprocessor_calculator_test.cc Open-sources the bert_preprocessor_calculator_test. 2022-10-17 13:30:11 -07:00
bert_preprocessor_calculator.cc Open-source bert_preprocessor_calculator 2022-10-14 15:31:31 -07:00
bert_preprocessor_calculator.proto Open-source bert_preprocessor_calculator 2022-10-14 15:31:31 -07:00
BUILD Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
feedback_tensors_calculator_test.cc Internal change 2022-09-28 21:32:36 +00:00
feedback_tensors_calculator.cc Internal change 2022-09-28 21:32:36 +00:00
feedback_tensors_calculator.proto Internal change 2022-09-28 21:32:36 +00:00
image_to_tensor_calculator_test.cc Extracted common test helper functions out from the unittest into a sharable 2022-11-21 14:39:56 -08:00
image_to_tensor_calculator.cc Extracted common logics from the ImageToTensorCalculator such that it can be 2022-11-01 18:43:46 -07:00
image_to_tensor_calculator.proto Project import generated by Copybara. 2022-05-05 19:57:20 +00:00
image_to_tensor_converter_gl_buffer.cc Fix RGBA vs RGB selection when creating GLTexture. 2023-01-05 07:58:07 -08:00
image_to_tensor_converter_gl_buffer.h Project import generated by Copybara. 2021-02-27 03:30:05 -05:00
image_to_tensor_converter_gl_texture.cc Internal change 2022-12-20 11:04:42 -08:00
image_to_tensor_converter_gl_texture.h Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
image_to_tensor_converter_gl_utils_test.cc Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
image_to_tensor_converter_gl_utils.cc Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
image_to_tensor_converter_gl_utils.h Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
image_to_tensor_converter_metal.cc Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
image_to_tensor_converter_metal.h Project import generated by Copybara. 2021-02-27 03:30:05 -05:00
image_to_tensor_converter_opencv.cc Internal change 2022-11-21 15:47:45 -08:00
image_to_tensor_converter_opencv.h Project import generated by Copybara. 2022-03-21 12:12:39 -07:00
image_to_tensor_converter.h Extracted common logics from the ImageToTensorCalculator such that it can be 2022-11-01 18:43:46 -07:00
image_to_tensor_utils_test.cc Internal change 2022-11-07 17:23:46 -08:00
image_to_tensor_utils.cc Internal change 2022-11-21 13:06:47 -08:00
image_to_tensor_utils.h Extracted common logics from the ImageToTensorCalculator such that it can be 2022-11-01 18:43:46 -07:00
inference_calculator_cpu.cc Enable unsigned quantized infererence using XNNPACK. 2022-11-13 07:10:04 -08:00
inference_calculator_face_detection_test.cc Project import generated by Copybara. 2022-06-28 12:11:05 +00:00
inference_calculator_gl_advanced.cc Add alternative method to determine unique kernel cache path 2022-11-28 16:52:16 -08:00
inference_calculator_gl.cc Return error status when any tflite input and output tensor doesn't have valid dimensionality information that is needed to allocate Gl/Metal buffer before calling ModifyGraphWithDelegate. 2022-11-18 12:44:55 -08:00
inference_calculator_metal.cc Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
inference_calculator_test.cc Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
inference_calculator_utils.cc Project import generated by Copybara. 2022-09-09 01:35:36 +00:00
inference_calculator_utils.h Project import generated by Copybara. 2022-09-07 17:47:04 +00:00
inference_calculator_xnnpack.cc Enable unsigned quantized infererence using XNNPACK. 2022-11-13 07:10:04 -08:00
inference_calculator.cc Project import generated by Copybara. 2022-09-07 17:47:04 +00:00
inference_calculator.h Project import generated by Copybara. 2022-09-07 17:47:04 +00:00
inference_calculator.proto Add missing import to InferenceCalculator.proto 2022-12-07 10:52:17 -08:00
inference_interpreter_delegate_runner.cc Add CPU invoke to Perfetto trace 2022-11-01 17:50:39 -07:00
inference_interpreter_delegate_runner.h Project import generated by Copybara. 2022-09-07 17:47:04 +00:00
inference_runner.h Add CPU invoke to Perfetto trace 2022-11-01 17:50:39 -07:00
landmarks_to_tensor_calculator_test.cc Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
landmarks_to_tensor_calculator.cc Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
landmarks_to_tensor_calculator.h Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
landmarks_to_tensor_calculator.proto Project import generated by Copybara. 2021-09-13 21:35:51 -04:00
regex_preprocessor_calculator_test.cc Internal cleanup for text-domain unit tests. 2022-10-19 10:31:21 -07:00
regex_preprocessor_calculator.cc Open-source the regex_preprocessing_calculator 2022-10-14 16:18:20 -07:00
regex_preprocessor_calculator.proto Open-source the regex_preprocessing_calculator 2022-10-14 16:18:20 -07:00
tensor_converter_calculator_test.cc Project import generated by Copybara. 2021-03-31 20:33:42 -04:00
tensor_converter_calculator.cc Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
tensor_converter_calculator.proto Project import generated by Copybara. 2020-11-04 19:09:58 -05:00
tensors_dequantization_calculator_test.cc Add a string-to-bool test model to TextClassifier. 2022-10-08 09:44:08 -07:00
tensors_dequantization_calculator.cc Add a string-to-bool test model to TextClassifier. 2022-10-08 09:44:08 -07:00
tensors_to_audio_calculator_test.cc Implement the initial version of TensorsToAudioCalculator that supports ifft and inverse hann windowing. 2022-10-28 13:19:43 -07:00
tensors_to_audio_calculator.cc Implement the initial version of TensorsToAudioCalculator that supports ifft and inverse hann windowing. 2022-10-28 13:19:43 -07:00
tensors_to_audio_calculator.proto Implement the initial version of TensorsToAudioCalculator that supports ifft and inverse hann windowing. 2022-10-28 13:19:43 -07:00
tensors_to_classification_calculator_test.cc Internal change 2022-10-25 12:53:39 -07:00
tensors_to_classification_calculator.cc Internal change 2022-10-25 12:53:39 -07:00
tensors_to_classification_calculator.proto Internal change 2022-10-25 12:53:39 -07:00
tensors_to_detections_calculator.cc Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
tensors_to_detections_calculator.proto Project import generated by Copybara. 2022-05-05 19:57:20 +00:00
tensors_to_floats_calculator_test.cc Project import generated by Copybara. 2021-03-31 20:33:42 -04:00
tensors_to_floats_calculator.cc Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
tensors_to_floats_calculator.proto Project import generated by Copybara. 2020-12-09 22:43:33 -05:00
tensors_to_landmarks_calculator.cc Project import generated by Copybara. 2022-09-06 21:46:17 +00:00
tensors_to_landmarks_calculator.proto Project import generated by Copybara. 2020-12-09 22:43:33 -05:00
tensors_to_segmentation_calculator.cc Tensor: Make tensor not requiring "-x objective-c++" option. 2023-01-23 11:00:35 -08:00
tensors_to_segmentation_calculator.proto Project import generated by Copybara. 2021-06-03 17:04:35 -04:00
text_to_tensor_calculator_test.cc Open-sources TextToTensorCalculator. 2022-10-18 08:28:53 -07:00
text_to_tensor_calculator.cc Internal change 2022-09-28 16:47:33 -07:00
universal_sentence_encoder_preprocessor_calculator_test.cc Open-sources UniversalSentenceEncoderPreprocessorCalculator. 2022-10-19 09:20:38 -07:00
universal_sentence_encoder_preprocessor_calculator.cc Adds a preprocessor for Universal Sentence Encoder models. 2022-10-14 21:38:28 -07:00