Skip to content

Commit

Permalink
Adding annotation for tir.allocate
Browse files Browse the repository at this point in the history
* fix defaults

Change-Id: I844d1fa28bce797a37da313d776138b4fdc00e0f
  • Loading branch information
manupak committed Oct 1, 2021
1 parent 2d12303 commit 506c2f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/tvm/tir/stmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,17 @@ class Allocate(Stmt):
"""

def __init__(self, buffer_var, dtype, extents, condition, body, annotations=None, span=None):
if annotations is None:
annotations = dict()
self.__init_handle_by_constructor__(
_ffi_api.Allocate,
_ffi_api.Allocate, # type: ignore
buffer_var,
dtype,
extents,
condition,
body,
annotations,
span, # type: ignore
span,
)


Expand Down

0 comments on commit 506c2f2

Please sign in to comment.