-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
32 lines (26 loc) · 855 Bytes
/
config.toml
File metadata and controls
32 lines (26 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Configuration for Elementwise Operations Example
# This demonstrates the pattern for using mojo-toml for configuration
# Will be used by Mojo MAX Graph examples once the API is accessible
[graph]
name = "elementwise_minimal"
description = "Demonstrates MAX Graph basics with element-wise operations"
[graph.operation]
description = "y = relu(x * multiplier + offset)"
multiplier = 2.0
offset = 1.0
[graph.input]
size = 4
dtype = "float32"
# Test input data
values = [1.0, -2.0, 3.0, -4.0]
[graph.expected_output]
# Expected output: relu([1.0*2.0+1.0, -2.0*2.0+1.0, 3.0*2.0+1.0, -4.0*2.0+1.0])
# = relu([3.0, -3.0, 7.0, -7.0]) = [3.0, 0.0, 7.0, 0.0]
values = [3.0, 0.0, 7.0, 0.0]
[execution]
device = "cpu" # Options: "cpu", "gpu"
verbose = true
[display]
show_graph_structure = false
show_timing = true
precision = 4 # Decimal places for output