Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Jul 15, 2024
1 parent c3a0c6f commit 555b1b7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pytorch-missing-braces.patch
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,32 @@ index 2c6ac38882f..d165059a956 100644

/**
* TypeMeta is a thin class that allows us to store the type of a container such
--- a/c10/util/order_preserving_flat_hash_map.h
+++ b/c10/util/order_preserving_flat_hash_map.h
@@ -177,11 +177,11 @@ struct sherwood_v3_entry {
};

inline int8_t log2(uint64_t value) {
- static constexpr std::array<int8_t, 64> table = {
+ static constexpr std::array<int8_t, 64> table = {{
63, 0, 58, 1, 59, 47, 53, 2, 60, 39, 48, 27, 54, 33, 42, 3,
61, 51, 37, 40, 49, 18, 28, 20, 55, 30, 34, 11, 43, 14, 22, 4,
62, 57, 46, 52, 38, 26, 32, 41, 50, 36, 17, 19, 29, 10, 13, 21,
- 56, 45, 25, 31, 35, 16, 9, 12, 44, 24, 15, 8, 23, 7, 6, 5};
+ 56, 45, 25, 31, 35, 16, 9, 12, 44, 24, 15, 8, 23, 7, 6, 5}};
value |= value >> 1;
value |= value >> 2;
value |= value >> 4;
--- a/torch/csrc/jit/runtime/operator.h
+++ b/torch/csrc/jit/runtime/operator.h
@@ -35,8 +35,8 @@ using ::c10::Symbol;
using OperationCreator = Operation (*)(const Node*);

namespace {
-const std::array<at::Tag, 1> kJitOnlyOperatorTags = {
- at::Tag::pt2_compliant_tag};
+const std::array<at::Tag, 1> kJitOnlyOperatorTags = {{
+ at::Tag::pt2_compliant_tag}};
}

/*

0 comments on commit 555b1b7

Please sign in to comment.