Skip to content

Commit

Permalink
graph display floats rounded (#5021)
Browse files Browse the repository at this point in the history
Co-authored-by: gabrielsouza <gabriel.martins@perdcomp.com.br>
  • Loading branch information
GabrielZCode and gabrielsouza committed Jun 18, 2024
1 parent 03b367c commit 66760ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinygrad/engine/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def log_lazybuffer(lb:'LazyBuffer', scheduled=False):
for idx,x in enumerate(lb.srcs):
if nm(x) not in G.nodes: log_lazybuffer(x)
if x.base.realized is None and x.base.op is LoadOps.CONST:
label_append.append(f"\nCONST{idx} {x.base.arg}")
label_append.append(f"\nCONST{idx} {x.base.arg:g}")
else:
G.add_edge(nm(x), nm(lb), color='#a0a0a0')
label = '"' + \
Expand Down

0 comments on commit 66760ae

Please sign in to comment.