File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -657,6 +657,12 @@ def maybe_get_name(self) -> Optional[str]:
657
657
except NotImplementedError :
658
658
return None
659
659
660
+ def is_input_buffer (self ) -> bool :
661
+ try :
662
+ return self .get_name () in V .graph .graph_inputs
663
+ except NotImplementedError :
664
+ return False
665
+
660
666
def has_large_inner_fn (self , threshold : Optional [int ] = None ) -> bool :
661
667
return False
662
668
@@ -7261,6 +7267,9 @@ def realize_hint(self) -> None:
7261
7267
def unwrap_view (self ) -> IRNode :
7262
7268
return self .data .unwrap_view ()
7263
7269
7270
+ def is_input_buffer (self ) -> bool :
7271
+ return self .data .is_input_buffer ()
7272
+
7264
7273
def freeze_layout (self ) -> None :
7265
7274
return self .data .freeze_layout ()
7266
7275
@@ -7380,7 +7389,7 @@ def create(data): # type: ignore[no-untyped-def]
7380
7389
7381
7390
7382
7391
class StorageBox (MutableBox ):
7383
- def is_input_buffer (self ): # type: ignore[no-untyped-def]
7392
+ def is_input_buffer (self ) -> bool :
7384
7393
if isinstance (self .data , (InputBuffer , ReinterpretView )):
7385
7394
return self .data .get_name () in V .graph .graph_inputs
7386
7395
return False
You can’t perform that action at this time.
0 commit comments