Add 'const' to constexpr to prevent "error C2131: expression did not evaluate to a constant" on MSVC.
PiperOrigin-RevId: 266865894
This commit is contained in:
parent
5aa4165460
commit
496acffd78
@ -23,7 +23,9 @@ limitations under the License.
|
||||
namespace xla {
|
||||
namespace gpu {
|
||||
|
||||
constexpr absl::string_view kDefaultBlacklist = R"pb(
|
||||
// MSVC requires the extra const. Without, it reports an
|
||||
// "error C2131: expression did not evaluate to a constant".
|
||||
constexpr const absl::string_view kDefaultBlacklist = R"pb(
|
||||
entries {
|
||||
hlo: "(f16[256,112,112,64]{3,2,1,0}, u8[0]{0}) custom-call(f16[256,224,224,4]{3,2,1,0}, f16[7,7,4,64]{2,1,0,3}), window={size=7x7 stride=2x2 pad=3_3x3_3}, dim_labels=b01f_01io->b01f, custom_call_target=\"__cudnn$convForward\", backend_config=\"{conv_result_scale:1}\""
|
||||
cc { major: 7 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user