Home
last modified time | relevance | path

Searched refs:Initializer (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/external/tensorflow/tensorflow/tools/graph_transforms/
Dfold_old_batch_norms_test.cc49 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFoldOldBatchNorms()
55 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFoldOldBatchNorms()
63 Const(root.WithOpName("mean_op"), Input::Initializer(mean_data)); in TestFoldOldBatchNorms()
68 Input::Initializer(variance_data)); in TestFoldOldBatchNorms()
73 Const(root.WithOpName("beta_op"), Input::Initializer(beta_data)); in TestFoldOldBatchNorms()
78 Const(root.WithOpName("gamma_op"), Input::Initializer(gamma_data)); in TestFoldOldBatchNorms()
133 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
139 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
147 Const(root.WithOpName("mean_op"), Input::Initializer(mean_data)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
152 Input::Initializer(variance_data)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
[all …]
Dquantize_nodes_test.cc164 return Const(root.WithOpName(name), Input::Initializer(tensor)); in TestIgnoreOps()
215 Output a_op = Const(root.WithOpName("a_op"), Input::Initializer(a_tensor)); in TestQuantizeMatMul()
219 Output b_op = Const(root.WithOpName("b_op"), Input::Initializer(b_tensor)); in TestQuantizeMatMul()
266 Output x = Const(root.WithOpName("x"), Input::Initializer(x_float_tensor)); in TestQuantizeMul()
270 Output y = Const(root.WithOpName("y"), Input::Initializer(y_float_tensor)); in TestQuantizeMul()
301 Output x = Const(root.WithOpName("x"), Input::Initializer(x_float_tensor)); in TestQuantizeAdd()
305 Output y = Const(root.WithOpName("y"), Input::Initializer(y_float_tensor)); in TestQuantizeAdd()
327 Const(root.WithOpName("input_op"), Input::Initializer(input_tensor)); in TestQuantizeConv2D()
333 Const(root.WithOpName("filter_op"), Input::Initializer(filter_tensor)); in TestQuantizeConv2D()
351 Const(root.WithOpName("input_op"), Input::Initializer(input_tensor)); in TestQuantizeBiasAdd()
[all …]
Dfold_batch_norms_test.cc48 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFoldBatchNormsConv2D()
54 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFoldBatchNormsConv2D()
62 Input::Initializer(mul_values_data)); in TestFoldBatchNormsConv2D()
99 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFoldBatchNormsDepthwiseConv2dNative()
105 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFoldBatchNormsDepthwiseConv2dNative()
113 Input::Initializer(mul_values_data)); in TestFoldBatchNormsDepthwiseConv2dNative()
150 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFoldBatchNormsConv2DShared()
156 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFoldBatchNormsConv2DShared()
164 Input::Initializer(mul_values_data)); in TestFoldBatchNormsConv2DShared()
171 Input::Initializer(mul_values_data)); in TestFoldBatchNormsConv2DShared()
[all …]
Dinsert_logging_test.cc52 Const(root.WithOpName("const_node1"), Input::Initializer(const_tensor)); in TestInsertLogging()
54 Const(root.WithOpName("const_node2"), Input::Initializer(const_tensor)); in TestInsertLogging()
56 Const(root.WithOpName("const_node3"), Input::Initializer(const_tensor)); in TestInsertLogging()
99 Const(root.WithOpName("const_node1"), Input::Initializer(const_tensor)); in TestInsertLoggingByOpType()
101 Const(root.WithOpName("const_node2"), Input::Initializer(const_tensor)); in TestInsertLoggingByOpType()
103 Const(root.WithOpName("const_node3"), Input::Initializer(const_tensor)); in TestInsertLoggingByOpType()
148 Const(root.WithOpName("const_node1"), Input::Initializer(const_tensor)); in TestInsertLoggingByPrefix()
150 Const(root.WithOpName("const_node2"), Input::Initializer(const_tensor)); in TestInsertLoggingByPrefix()
152 Const(root.WithOpName("const_node3"), Input::Initializer(const_tensor)); in TestInsertLoggingByPrefix()
Dfuse_convolutions_test.cc53 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFuseResizePadAndConv()
62 Input::Initializer(pad_dims_data)); in TestFuseResizePadAndConv()
70 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFuseResizePadAndConv()
110 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFuseResizeAndConv()
120 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFuseResizeAndConv()
159 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFusePadAndConv()
164 Input::Initializer(pad_dims_data)); in TestFusePadAndConv()
172 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFusePadAndConv()
Dflatten_atrous_test.cc48 Const(root.WithOpName("input_op"), Input::Initializer(input_data)); in TestFlattenAtrousConv()
53 Input::Initializer(block_shape_data)); in TestFlattenAtrousConv()
58 Input::Initializer(paddings_data)); in TestFlattenAtrousConv()
68 Const(root.WithOpName("weights_op"), Input::Initializer(weights_data)); in TestFlattenAtrousConv()
76 Const(root.WithOpName("crops_op"), Input::Initializer(crops_data)); in TestFlattenAtrousConv()
Dtransform_utils_test.cc40 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestMapNamesToNodes()
44 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestMapNamesToNodes()
73 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestMapNodesToOutputs()
77 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestMapNodesToOutputs()
227 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestFilterGraphDef()
231 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestFilterGraphDef()
287 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestGetOpTypeMatches()
291 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestGetOpTypeMatches()
384 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestGetOpTypeMatchesDAG()
417 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestReplaceMatchingOpTypes()
[all …]
Dfold_constants_test.cc55 Const(root.WithOpName("a_expect_removed"), Input::Initializer(a_data)); in TestSimpleAdd()
60 Const(root.WithOpName("b_expect_removed"), Input::Initializer(b_data)); in TestSimpleAdd()
92 Const(root.WithOpName("a_expect_remains"), Input::Initializer(a_data)); in TestOpExclusionAdd()
97 Const(root.WithOpName("b_expect_remains"), Input::Initializer(b_data)); in TestOpExclusionAdd()
125 Input::Initializer({1, 1, 1}, TensorShape({1, 1, 3}))); in TestShapePropagation()
232 Const(o_root.WithOpName("a_const"), Input::Initializer(a_const_data)); in TestReplaceSendRecvs()
241 Const(n_root.WithOpName("a_const"), Input::Initializer(a_const_data)); in TestReplaceSendRecvs()
302 Output a_const = Const(root.WithOpName("a"), Input::Initializer(a_data)); in TestRemoveUnusedNodes()
306 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestRemoveUnusedNodes()
315 Const(root.WithOpName("unused"), Input::Initializer(unused_data)); in TestRemoveUnusedNodes()
[all …]
Dfreeze_requantization_ranges_test.cc53 Input::Initializer(quantized_tensor)); in TestFreezeRequantizationRanges()
58 Input::Initializer(quantized_min_tensor)); in TestFreezeRequantizationRanges()
63 Input::Initializer(quantized_min_tensor)); in TestFreezeRequantizationRanges()
68 Const(root.WithOpName("offset_op"), Input::Initializer(offset_tensor)); in TestFreezeRequantizationRanges()
73 Input::Initializer(offset_min_tensor)); in TestFreezeRequantizationRanges()
78 Input::Initializer(offset_max_tensor)); in TestFreezeRequantizationRanges()
/external/tensorflow/tensorflow/core/common_runtime/
Dlower_case_op_test.cc138 feeds.emplace(Output(branch_index.node()), Input::Initializer(-1)); in TEST()
139 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
147 feeds.emplace(Output(branch_index.node()), Input::Initializer(0)); in TEST()
148 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
156 feeds.emplace(Output(branch_index.node()), Input::Initializer(1)); in TEST()
157 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
165 feeds.emplace(Output(branch_index.node()), Input::Initializer(2)); in TEST()
166 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
174 feeds.emplace(Output(branch_index.node()), Input::Initializer(20)); in TEST()
175 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
[all …]
Dlower_if_op_test.cc134 feeds.emplace(Output(pred.node()), Input::Initializer(false)); in TEST()
135 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
143 feeds.emplace(Output(pred.node()), Input::Initializer(true)); in TEST()
144 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
241 feeds.emplace(Output(pred.node()), Input::Initializer(true)); in TEST()
242 feeds.emplace(Output(initial_val.node()), Input::Initializer(10)); in TEST()
251 feeds.emplace(Output(pred.node()), Input::Initializer(false)); in TEST()
252 feeds.emplace(Output(initial_val.node()), Input::Initializer(10)); in TEST()
324 feeds.emplace(Output(pred.node()), Input::Initializer(false)); in TEST()
325 feeds.emplace(Output(a.node()), Input::Initializer(10)); in TEST()
[all …]
Dlower_functional_ops_test.cc184 feeds.emplace(Output(counter.node()), Input::Initializer(0)); in TEST()
185 feeds.emplace(Output(pred.node()), Input::Initializer(true)); in TEST()
186 feeds.emplace(Output(a.node()), Input::Initializer(1)); in TEST()
194 feeds.emplace(Output(counter.node()), Input::Initializer(0)); in TEST()
195 feeds.emplace(Output(pred.node()), Input::Initializer(false)); in TEST()
196 feeds.emplace(Output(a.node()), Input::Initializer(1)); in TEST()
311 feeds.emplace(Output(pred.node()), Input::Initializer(true)); in TEST()
312 feeds.emplace(Output(a.node()), Input::Initializer(1)); in TEST()
320 feeds.emplace(Output(pred.node()), Input::Initializer(false)); in TEST()
321 feeds.emplace(Output(a.node()), Input::Initializer(1)); in TEST()
/external/tensorflow/tensorflow/core/profiler/internal/testdata/
Dgraph.pbtxt56 name: "ScalarW/Initializer/random_normal/shape"
97 name: "ScalarW/Initializer/random_normal/mean"
135 name: "ScalarW/Initializer/random_normal/stddev"
173 name: "ScalarW/Initializer/random_normal/RandomStandardNormal"
175 input: "ScalarW/Initializer/random_normal/shape"
219 name: "ScalarW/Initializer/random_normal/mul"
221 input: "ScalarW/Initializer/random_normal/RandomStandardNormal"
222 input: "ScalarW/Initializer/random_normal/stddev"
248 name: "ScalarW/Initializer/random_normal"
250 input: "ScalarW/Initializer/random_normal/mul"
[all …]
/external/tensorflow/tensorflow/stream_executor/platform/default/
Dinitialize.h26 class Initializer {
29 explicit Initializer(InitializerFunc func) { func(); } in Initializer() function
32 Dependency(const char *n, Initializer *i) : name(n), initializer(i) {} in Dependency()
34 Initializer *const initializer;
39 Initializer *initializer,
49 ::stream_executor::port::Initializer google_initializer_##type##_##name( \
56 extern ::stream_executor::port::Initializer google_initializer_##type##_##name
/external/swiftshader/third_party/subzero/src/
DIceGlobalInits.h226 class Initializer {
227 Initializer(const Initializer &) = delete;
228 Initializer &operator=(const Initializer &) = delete;
243 explicit Initializer(InitializerKind Kind) : Kind(Kind) {} in Initializer() function
248 static_assert(std::is_trivially_destructible<Initializer>::value,
255 class DataInitializer : public Initializer {
272 static bool classof(const Initializer *D) { in classof()
279 : Initializer(DataInitializerKind), ContentsSize(Values.size()), in DataInitializer()
292 : Initializer(DataInitializerKind), ContentsSize(StrLen), in DataInitializer()
306 class ZeroInitializer : public Initializer {
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorInitializer.h27 struct Initializer { struct
29 typename Initializer<Derived, N - 1>::InitList> InitList; argument
37 Initializer<Derived, N - 1>::run(tensor, indices, v); in run() argument
43 struct Initializer<Derived, 1> {
59 struct Initializer<Derived, 0> {
72 … const typename Initializer<Derived, traits<Derived>::NumDimensions>::InitList& vals) {
74 Initializer<Derived, traits<Derived>::NumDimensions>::run(tensor, &indices, vals);
/external/tensorflow/tensorflow/cc/ops/
Dconst_op.h29 Output Const(const Scope& scope, const Input::Initializer& val);
36 Output Const(const Scope& scope, const Input::Initializer& val) { in Const()
40 typedef typename Input::Initializer::RealType<T>::type DstT; in Const()
47 return Const(scope, Input::Initializer(t)); in Const()
68 return Const(scope, Input::Initializer(v, shape)); in Const()
74 return Const(scope, Input::Initializer(v, shape)); in Const()
/external/tensorflow/tensorflow/cc/framework/
Dops.h105 struct Initializer { struct
111 Initializer(const T& v) { // NOLINT(runtime/explicit) in Initializer() function
118 Initializer(const Tensor& t) : tensor(t) {} // NOLINT(runtime/explicit) in Initializer() function
124 Initializer(const T& v, const TensorShape& shape) { in Initializer() function
137 Initializer( in Initializer() function
150 Initializer(const std::initializer_list<T>& v, const TensorShape& shape) { in Initializer() argument
168 Initializer(const std::initializer_list<Initializer>& v);
210 : Input(Initializer(v)) {}
212 Input(const Initializer& init) // NOLINT(runtime/explicit)
220 Input(const std::initializer_list<Initializer>&
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dxla_cluster_util_test.cc43 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
59 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
79 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
105 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
117 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
129 Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0)); in TEST()
175 ops::Const(s.WithOpName("constant_ref"), Input::Initializer(0.0)); in CreateSubgraphTouchingRefVar()
181 ops::Const(s.WithOpName("constant_normal"), Input::Initializer(0.0)); in CreateSubgraphNotTouchingRefVar()
192 ops::Const(s.WithOpName("constant_ref_pco"), Input::Initializer(0.0)); in CreateSubgraphCallingFunctionWithRefVar()
202 ops::Const(s.WithOpName("constant_normal_pco"), Input::Initializer(0.0)); in CreateSubgraphCallingFunctionWithoutRefVar()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dconv_ops_test.cc194 Const(root.WithOpName("input"), Input::Initializer(input_data)); in CompareFusedAndSeparate()
201 Const(root.WithOpName("filter"), Input::Initializer(filter_data)); in CompareFusedAndSeparate()
255 Const(root.WithOpName("input"), Input::Initializer(input_data)); in CompareFusedPadOnlyAndSeparate()
262 Const(root.WithOpName("filter"), Input::Initializer(filter_data)); in CompareFusedPadOnlyAndSeparate()
619 ops::Const(root.WithOpName("input"), Input::Initializer(input_data)), in RunConv2DWithBias()
620 ops::Const(root.WithOpName("filter"), Input::Initializer(filter_data)), in RunConv2DWithBias()
626 ops::Const(root.WithOpName("bias"), Input::Initializer(bias_data))); in RunConv2DWithBias()
640 ops::Const(root.WithOpName("input"), Input::Initializer(input_data)), in RunConv2DWithBiasAndActivation()
641 ops::Const(root.WithOpName("filter"), Input::Initializer(filter_data)), in RunConv2DWithBiasAndActivation()
647 ops::Const(root.WithOpName("bias"), Input::Initializer(bias_data))); in RunConv2DWithBiasAndActivation()
[all …]
Dfused_batch_norm_ex_op_test.cc148 Input::Initializer(y_backprop_data)); in RunFusedBatchNorm()
150 ops::Const(root.WithOpName("input"), Input::Initializer(input_data)); in RunFusedBatchNorm()
152 ops::Const(root.WithOpName("scale"), Input::Initializer(scale_data)); in RunFusedBatchNorm()
154 ops::Const(root.WithOpName("offset"), Input::Initializer(offset_data)); in RunFusedBatchNorm()
156 ops::Const(root.WithOpName("mean"), Input::Initializer(mean_data)); in RunFusedBatchNorm()
158 ops::Const(root.WithOpName("var"), Input::Initializer(var_data)); in RunFusedBatchNorm()
160 Input::Initializer(side_input_data)); in RunFusedBatchNorm()
240 Input::Initializer(y_backprop_data)); in RunFusedBatchNormEx()
242 ops::Const(root.WithOpName("input"), Input::Initializer(input_data)); in RunFusedBatchNormEx()
244 ops::Const(root.WithOpName("scale"), Input::Initializer(scale_data)); in RunFusedBatchNormEx()
[all …]
Dremote_fused_graph_execute_op_test_utils.cc61 Output a_const = ops::Const(root.WithOpName("A"), Input::Initializer(a_data)); in BuildMultipleAddGraph()
65 Output b_const = ops::Const(root.WithOpName("B"), Input::Initializer(b_data)); in BuildMultipleAddGraph()
69 Output c_const = ops::Const(root.WithOpName("C"), Input::Initializer(c_data)); in BuildMultipleAddGraph()
73 Output d_const = ops::Const(root.WithOpName("D"), Input::Initializer(d_data)); in BuildMultipleAddGraph()
77 Output e_const = ops::Const(root.WithOpName("E"), Input::Initializer(e_data)); in BuildMultipleAddGraph()
/external/libchrome/base/memory/
Dprotected_memory.h133 class Initializer {
137 Initializer(ProtectedMemory<T>* PM, const T& Init);
139 DISALLOW_IMPLICIT_CONSTRUCTORS(Initializer);
268 ProtectedMemory<T>::Initializer::Initializer(ProtectedMemory<T>* PM, in Initializer() function
Dprotected_memory_unittest.cc37 TEST_F(ProtectedMemoryTest, Initializer) { in TEST_F() argument
38 static ProtectedMemory<int>::Initializer I(&init, 4); in TEST_F()
99 static ProtectedMemory<BadIcall>::Initializer I( in TEST_F()
113 static ProtectedMemory<int (*)(int)>::Initializer I( in TEST_F()
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2.py47 class Initializer(object): class
93 class Zeros(Initializer):
133 class Ones(Initializer):
175 class Constant(Initializer):
267 class RandomUniform(Initializer):
331 class RandomNormal(Initializer):
392 class TruncatedNormal(Initializer):
457 class VarianceScaling(Initializer):
569 class Orthogonal(Initializer):
656 class Identity(Initializer):

12345678910>>...12