Skip to content

fbcode//executorch/backends/vulkan/test #2024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/vulkan/test/test_vulkan_delegate_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def test_to_bytes_same_as_from_bytes(self) -> None:
header = VulkanDelegateHeader.from_bytes(EXAMPLE_HEADER_DATA)

to_bytes = header.to_bytes()
self.assertEquals(EXAMPLE_HEADER_DATA, to_bytes)
self.assertEqual(EXAMPLE_HEADER_DATA, to_bytes)
2 changes: 2 additions & 0 deletions exir/program/_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def _get_updated_graph_signature(
arg = (
old_input_spec.arg
if isinstance(old_input_spec.arg, ConstantArgument)
# pyre-fixme[20]: Argument `class_fqn` expected.
else type(old_input_spec.arg)(node.name)
)
new_input_specs.append(
Expand All @@ -104,6 +105,7 @@ def _get_updated_graph_signature(
arg = (
old_output_spec.arg
if isinstance(old_output_spec.arg, ConstantArgument)
# pyre-fixme[20]: Argument `class_fqn` expected.
else type(old_output_spec.arg)(node.name)
)
new_output_specs.append(
Expand Down
1 change: 1 addition & 0 deletions exir/serde/export_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ def serialize_optional_tensor_args(a):
# serialize/deserialize function.
custom_obj_name = f"_custom_obj_{len(self.custom_objs)}"
self.custom_objs[custom_obj_name] = arg
# pyre-fixme[20]: Argument `class_fqn` expected.
return Argument.create(as_custom_obj=CustomObjArgument(custom_obj_name))
else:
raise SerializeError(f"Unsupported argument type: {type(arg)}")
Expand Down
2 changes: 1 addition & 1 deletion exir/sym_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def eval_upper_bound(maybe_symint: Union[int, torch.SymInt]) -> Optional[int]:
var_range: ValueRanges = bound_sympy(expr, shape_env.var_to_range)
upper_bound = var_range.upper
if isinstance(upper_bound, sympy.Integer):
concrete_upper = int(var_range.upper) # pyre-ignore
concrete_upper = int(var_range.upper)
assert isinstance(
concrete_upper, int
), f"Expect upper bound to be a concrete int but got {concrete_upper}"
Expand Down
1 change: 1 addition & 0 deletions exir/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def __init__(self) -> None:
super().__init__()

def forward(self, input: Tensor, sections: int, dim: int = 0) -> List[Tensor]:
# pyre-fixme[7]: Expected `List[Tensor]` but got `Tuple[Tensor, ...]`.
return torch.tensor_split(input, sections, dim)


Expand Down