-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tensorflow-lite] update patch files
- Loading branch information
Showing
5 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h b/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h | ||
index c25efc2f..23a04428 100644 | ||
--- a/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h | ||
+++ b/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h | ||
@@ -16,8 +16,8 @@ limitations under the License. | ||
#ifndef TENSORFLOW_TSL_PLATFORM_ML_DTYPES_H_ | ||
#define TENSORFLOW_TSL_PLATFORM_ML_DTYPES_H_ | ||
|
||
-#include "ml_dtypes/include/float8.h" // from @ml_dtypes | ||
-#include "ml_dtypes/include/int4.h" // from @ml_dtypes | ||
+#include "ml_dtypes/float8.h" // from @ml_dtypes | ||
+#include "ml_dtypes/int4.h" // from @ml_dtypes | ||
|
||
namespace tsl { | ||
using float8_e4m3fn = ml_dtypes::float8_e4m3fn; | ||
diff --git a/tensorflow/lite/core/interpreter.h b/tensorflow/lite/core/interpreter.h | ||
index 54e9a472..98a2fd67 100644 | ||
--- a/tensorflow/lite/core/interpreter.h | ||
+++ b/tensorflow/lite/core/interpreter.h | ||
@@ -994,7 +994,7 @@ class Interpreter { | ||
// The flag is shared across all subgraphs in the interpreter. | ||
// When the application calls `Cancel`, the flag will be set to false. | ||
// It "resets" to true at the beginning of each `Invoke`. | ||
- std::atomic_flag continue_invocation_{false}; | ||
+ std::atomic_flag continue_invocation_ = ATOMIC_FLAG_INIT; | ||
bool cancellation_enabled_ = false; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters