Explore
Connect
Documentation
Snippets
Log in
Sign up
Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Create a new graph
Graph().as_default()
# Create variables
A = Variable([[
1
,
0
], [
0
, -
1
]])
b = Variable([
1
,
1
])
# Create placeholder
x = placeholder()
# Create hidden node y
y = matmul(A, x)
# Create output node z
z = add(y, b)
Enter to Rename, Shift+Enter to Preview
Run