Skip to content

Commit

Permalink
fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JiacongSun committed Dec 2, 2024
1 parent 336bc20 commit 54f5920
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion zigzag/hardware/architecture/get_cacti_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,5 +617,5 @@ def get_w_cost_per_weight_from_cacti(
print(f"mem size: {mem_size//1024}[KB], r_cost_per_bit: {r_cost_per_bit}[pJ/bit], area: {area} [mm2]")
else:
print(
f"mem size: {mem_size // 1024 // 1024}[MB], r_cost_per_bit: {r_cost_per_bit}[pJ/bit], area: {area} [mm2]"
f"mem size: {mem_size // 1024 // 1024}[MB], r_cost_per_bit: {r_cost_per_bit}[pJ/bit], area: {area} [mm2]"
)
16 changes: 8 additions & 8 deletions zigzag/parser/accelerator_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create(self, core_id: int = 0, shared_mem_group_id: int | None = None) -> Ac
shared_mem_group_id=shared_mem_group_id,
is_imc=is_imc,
cacti_size_scaling=cacti_size_scaling,
cacti_bw_scaling=cacti_bw_scaling
cacti_bw_scaling=cacti_bw_scaling,
)
memory_factory.add_memory_to_graph(mem_graph)

Expand Down Expand Up @@ -159,13 +159,13 @@ class MemoryFactory:
"""! Create MemoryInstances and adds them to memory hierarchy."""

def __init__(
self,
name: str,
mem_data: dict[str, Any],
shared_mem_group_id: int = -1,
is_imc: bool = False,
cacti_size_scaling: float = 1,
cacti_bw_scaling: float = 1,
self,
name: str,
mem_data: dict[str, Any],
shared_mem_group_id: int = -1,
is_imc: bool = False,
cacti_size_scaling: float = 1,
cacti_bw_scaling: float = 1,
):
self.data = mem_data
self.name = name
Expand Down

0 comments on commit 54f5920

Please sign in to comment.