Update data structures and types to 1.11.0.

This commit is contained in:
闫鹏全
2023-01-05 21:38:53 +08:00
parent 3fc05d486d
commit 8da378d72f
26 changed files with 104 additions and 108 deletions
+2 -2
View File
@@ -641,7 +641,7 @@ def argument_type_str(t: Type, *, simple_type: bool = False) -> str:
BaseTy.Tensor: 'Tensor',
BaseTy.int: 'int64_t',
BaseTy.float: 'double',
BaseTy.str: 'std::string'
BaseTy.str: 'c10::string_view'
}
if t.name in base_dict:
return base_dict[t.name]
@@ -1048,7 +1048,7 @@ def arg_parser_unpack_method(t: Type, has_default: bool) -> str:
BaseTy.int: 'toInt64',
BaseTy.bool: 'toBool',
BaseTy.float: 'toDouble',
BaseTy.str: 'string'
BaseTy.str: 'stringView'
}
if t.name in [BaseTy.Tensor, BaseTy.Stream, BaseTy.Storage,
BaseTy.Scalar, BaseTy.Dimname]: