Skip to content

Commit 2e187d7

Browse files
committed
Use boxed primitives for relay attribute types
1 parent e0ed648 commit 2e187d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/relay/parser/parser.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,11 @@ class Parser {
13521352
auto next = Peek();
13531353
switch (next->token_type) {
13541354
case TokenType::kFloat:
1355+
return runtime::Float(Downcast<FloatImm>(Match(next->token_type)->data)->value);
13551356
case TokenType::kInteger:
1357+
return runtime::Int(Downcast<IntImm>(Match(next->token_type)->data)->value);
13561358
case TokenType::kBoolean:
1359+
return runtime::Bool(Downcast<IntImm>(Match(next->token_type)->data)->value);
13571360
case TokenType::kStringLiteral:
13581361
return Match(next->token_type)->data;
13591362
case TokenType::kMetaReference:

0 commit comments

Comments
 (0)