We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ed648 commit 2e187d7Copy full SHA for 2e187d7
src/relay/parser/parser.cc
@@ -1352,8 +1352,11 @@ class Parser {
1352
auto next = Peek();
1353
switch (next->token_type) {
1354
case TokenType::kFloat:
1355
+ return runtime::Float(Downcast<FloatImm>(Match(next->token_type)->data)->value);
1356
case TokenType::kInteger:
1357
+ return runtime::Int(Downcast<IntImm>(Match(next->token_type)->data)->value);
1358
case TokenType::kBoolean:
1359
+ return runtime::Bool(Downcast<IntImm>(Match(next->token_type)->data)->value);
1360
case TokenType::kStringLiteral:
1361
return Match(next->token_type)->data;
1362
case TokenType::kMetaReference:
0 commit comments