Home | History | Annotate | Download | only in framework

Lines Matching refs:scope

42   Scope scope = Scope::NewRootScope();
44 auto x = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape));
45 auto y = Square(scope, x);
48 scope, {x}, {shape}, {y}, {shape}, &max_error)));
53 Scope scope = Scope::NewRootScope();
55 auto x = Placeholder(scope, DT_DOUBLE, Placeholder::Shape(shape));
56 auto y = Square(scope, x);
59 scope, {x}, {shape}, {y}, {shape}, &max_error)));
64 Scope scope = Scope::NewRootScope();
66 auto x = Placeholder(scope, DT_COMPLEX64, Placeholder::Shape(shape));
67 auto y = Square(scope, x);
70 scope, {x}, {shape}, {y}, {shape}, &max_error)));
75 Scope scope = Scope::NewRootScope();
77 auto x = Placeholder(scope, DT_COMPLEX128, Placeholder::Shape(shape));
78 auto y = Square(scope, x);
81 scope, {x}, {shape}, {y}, {shape}, &max_error)));
87 Scope scope = Scope::NewRootScope();
89 auto x = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape));
90 auto y = Complex(scope, x, x);
93 scope, {x}, {shape}, {y}, {shape}, &max_error)));
99 Scope scope = Scope::NewRootScope();
101 auto x = Placeholder(scope, DT_COMPLEX64, Placeholder::Shape(shape));
102 auto y = Real(scope, x);
105 scope, {x}, {shape}, {y}, {shape}, &max_error)));
112 Scope scope = Scope::NewRootScope();
114 auto x = Placeholder(scope, DT_FLOAT, Placeholder::Shape(shape));
116 auto y = Div(scope, x, Sub(scope, x, x));
119 scope, {x}, {shape}, {y}, {shape}, &max_error)));
124 Scope scope = Scope::NewRootScope();
130 auto x = Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape));
131 auto y = Const(scope, {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}, y_shape);
132 auto z = MatMul(scope, x, y);
135 scope, {x}, {x_shape}, {z}, {z_shape}, &max_error)));
141 Scope scope = Scope::NewRootScope();
143 auto x = Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape));
145 auto split_dim = Const(scope, 1, {});
146 auto y = Split(scope, split_dim, x, /* num_split */ 2);
150 scope, {x}, {x_shape}, y.output, {y_shape, y_shape}, &max_error)));
156 Scope scope = Scope::NewRootScope();
159 xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape)));
160 xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape)));
161 auto y = Stack(scope, xs, Stack::Axis(0));
165 scope, xs, {x_shape, x_shape}, {y}, {y_shape}, &max_error)));
172 Scope scope = Scope::NewRootScope();
175 xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(shape)));
176 xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(shape)));
177 auto tmp = Stack(scope, xs, Stack::Axis(0));
178 auto y = Unstack(scope, tmp, 2, Unstack::Axis(0));
181 scope, xs, {shape, shape}, y.output, {shape, shape}, &max_error)));