Home
last modified time | relevance | path

Searched refs:sum_op (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Didentify_l2_normalization_test.cc49 auto sum_op = new TensorFlowSumOperator; in RunIdentifyL2Normalization() local
50 sum_op->inputs = {sq_op->outputs[0]}; in RunIdentifyL2Normalization()
51 sum_op->outputs = {"Sumoutput"}; in RunIdentifyL2Normalization()
58 sqrt_op->inputs = {sum_op->outputs[0]}; in RunIdentifyL2Normalization()
71 model.operators.push_back(std::unique_ptr<Operator>(sum_op)); in RunIdentifyL2Normalization()
78 rsqrt_op->inputs = {sum_op->outputs[0]}; in RunIdentifyL2Normalization()
91 model.operators.push_back(std::unique_ptr<Operator>(sum_op)); in RunIdentifyL2Normalization()
Dresolve_constant_unary_test.cc50 auto sum_op = absl::make_unique<TensorFlowSumOperator>(); in RunResolveSum() local
51 sum_op->keep_dims = true; in RunResolveSum()
52 sum_op->inputs = {"input0", "input1"}; in RunResolveSum()
53 sum_op->outputs = {output_name}; in RunResolveSum()
54 model.operators.push_back(std::move(sum_op)); in RunResolveSum()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Didentify_l2_normalization.cc101 Operator* sum_op = in Run() local
103 if (sum_op->type != OperatorType::kSum) { in Run()
107 LogName(*sum_op)); in Run()
111 Operator* square_op = GetOpWithOutput(*model, sum_op->inputs[0]); in Run()
140 DeleteOpAndArrays(model, sum_op); in Run()
Dresolve_constant_unary.cc255 auto sum_op = static_cast<const TensorFlowSumOperator*>(unary_op); in Run() local
259 sum_op->keep_dims, axis_array.GetBuffer<ArrayDataType::kInt32>().data, in Run()
/external/tensorflow/tensorflow/c/experimental/ops/
Dmath_ops.cc120 AbstractOperationPtr sum_op(ctx->CreateOperation()); in Sum() local
121 TF_RETURN_IF_ERROR(sum_op->Reset("Sum", /*raw_device_name=*/nullptr)); in Sum()
122 TF_RETURN_IF_ERROR(MaybeSetOpName(sum_op.get(), name)); in Sum()
123 TF_RETURN_IF_ERROR(sum_op->AddInput(inputs[0])); // input_vals in Sum()
124 TF_RETURN_IF_ERROR(sum_op->AddInput(inputs[1])); // reduction_indices in Sum()
127 TF_RETURN_IF_ERROR(sum_op->Execute(outputs, &num_retvals)); in Sum()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFunctors.h102 internal::scalar_sum_op<T> sum_op;
103 *accum = sum_op(*accum, t);
127 internal::scalar_sum_op<T> sum_op;
128 return sum_op(saccum, predux(vaccum));
150 internal::scalar_sum_op<T> sum_op;
151 *accum = sum_op(*accum, t);
177 internal::scalar_sum_op<T> sum_op;
178 …return sum_op(saccum, predux(vaccum)) / (scalarCount_ + packetCount_ * unpacket_traits<Packet>::si…
/external/eigen/unsupported/test/
Dcxx11_meta.cpp37 using Eigen::internal::sum_op;
318 VERIFY((array_zip<sum_op>(a, b) == c)); in test_array_zip_and_apply()
321 VERIFY_IS_EQUAL((array_apply_and_reduce<sum_op, times2_op>(a)), 216); in test_array_zip_and_apply()
322 VERIFY_IS_EQUAL((array_apply_and_reduce<sum_op, times2_op>(b)), 30); in test_array_zip_and_apply()
323 VERIFY_IS_EQUAL((array_zip_and_reduce<product_op, sum_op>(a, b)), 14755932); in test_array_zip_and_apply()
324 VERIFY_IS_EQUAL((array_zip_and_reduce<sum_op, product_op>(a, b)), 388); in test_array_zip_and_apply()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_aggregate_ops.cc239 mkldnn::sum sum_op(sum_pd); in Compute() local
245 sum_op.execute(*fwd_cpu_stream, net_args); in Compute()
/external/eigen/unsupported/Eigen/CXX11/src/util/
DCXX11Meta.h291 struct sum_op {
329 constexpr inline decltype(reduce<sum_op, Ts...>::run((*((Ts*)0))...)) arg_sum(Ts... ts)
331 return reduce<sum_op, Ts...>::run(ts...);
391 …r inline auto array_sum(const array<T, N>& arr) -> decltype(array_reduce<sum_op, T, N>(arr, static…
393 return array_reduce<sum_op, T, N>(arr, static_cast<T>(0));
DEmulateCXX11Meta.h212 struct sum_op {
/external/tensorflow/tensorflow/python/client/
Dsession_clusterspec_prop_test.py385 sum_op = mul0 + mul1 + mul2
395 sum_op,
/external/tensorflow/tensorflow/lite/toco/
Dexport_tensorflow.cc923 tensorflow::NodeDef* sum_op = tensorflow_graph->add_node(); in ConvertL2NormalizationOperator() local
924 sum_op->set_op("Sum"); in ConvertL2NormalizationOperator()
925 sum_op->set_name(sum_output); in ConvertL2NormalizationOperator()
926 *sum_op->add_input() = square_output; in ConvertL2NormalizationOperator()
927 *sum_op->add_input() = sum_reduction_indices; in ConvertL2NormalizationOperator()
928 (*sum_op->mutable_attr())["T"].set_type(DT_FLOAT); in ConvertL2NormalizationOperator()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer_test.cc393 auto sum_op = ops::Sum(scope.WithOpName("sum").WithDevice("/device:GPU:0"), in ReduceTransposerKeepDims() local
396 auto z = ops::Identity(scope.WithOpName("z"), sum_op); in ReduceTransposerKeepDims()
460 auto sum_op = ops::Max(scope.WithOpName("max").WithDevice("/device:GPU:0"), in ReduceTransposerValidAxisNode() local
463 auto z = ops::Identity(scope.WithOpName("z"), sum_op); in ReduceTransposerValidAxisNode()