Home
last modified time | relevance | path

Searched refs:input_flat (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Das_string_op.cc123 const auto& input_flat = input_tensor->flat<T>(); \ in Compute()
124 for (int i = 0; i < input_flat.size(); ++i) { \ in Compute()
125 output_flat(i) = strings::Printf((enc_str.c_str()), input_flat(i)); \ in Compute()
137 const auto& input_flat = input_tensor->flat<bool>(); in Compute() local
138 for (int i = 0; i < input_flat.size(); ++i) { in Compute()
139 output_flat(i) = (input_flat(i)) ? "true" : "false"; in Compute()
143 const auto& input_flat = input_tensor->flat<complex64>(); in Compute() local
144 for (int i = 0; i < input_flat.size(); ++i) { in Compute()
146 format_.c_str(), input_flat(i).real(), input_flat(i).imag()); in Compute()
150 const auto& input_flat = input_tensor->flat<complex128>(); in Compute() local
[all …]
Dstring_to_hash_bucket_op.h39 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
47 typedef decltype(input_flat.size()) Index; in Compute()
48 for (Index i = 0; i < input_flat.size(); ++i) { in Compute()
49 const uint64 input_hash = hash(input_flat(i)); in Compute()
81 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
89 typedef decltype(input_flat.size()) Index; in Compute()
90 for (Index i = 0; i < input_flat.size(); ++i) { in Compute()
91 const uint64 input_hash = hash(key_, input_flat(i)); in Compute()
Dregex_full_match_op.cc34 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
51 for (size_t i = 0; i < input_flat.size(); ++i) { in Compute()
52 output_flat(i) = RE2::FullMatch(input_flat(i), match); in Compute()
74 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
80 for (size_t i = 0; i < input_flat.size(); ++i) { in Compute()
81 output_flat(i) = RE2::FullMatch(input_flat(i), *re_); in Compute()
Dstring_to_number_op.cc43 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
51 for (int i = 0; i < input_flat.size(); ++i) { in Compute()
54 strings::SafeStringToNumeric<OutputType>(input_flat(i), in Compute()
56 errors::InvalidArgument(kErrorMessage, input_flat(i).c_str())); in Compute()
Dstring_to_hash_bucket_op.cc36 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
44 typedef decltype(input_flat.size()) Index; in Compute()
45 for (Index i = 0; i < input_flat.size(); ++i) { in Compute()
46 const uint64 input_hash = Hash64(input_flat(i)); in Compute()
Dunicode_script_op.cc29 const auto& input_flat = input_tensor->flat<int32>(); in Compute() local
38 for (int i = 0; i < input_flat.size(); i++) { in Compute()
39 UScriptCode script_code = uscript_getScript(input_flat(i), status); in Compute()
Dquantized_batch_norm_op.cc39 auto input_flat = input.flat<T1>(); in ReferenceBatchNorm() local
47 const int row_count = input_flat.size() / depth; in ReferenceBatchNorm()
57 QuantizedToFloat(input_flat(input_index), input_min, input_max); in ReferenceBatchNorm()
102 auto input_flat = input.flat<T1>(); in FixedPointBatchNorm() local
110 const int row_count = input_flat.size() / depth; in FixedPointBatchNorm()
150 RequantizeInNewRange<T1, T2>(input_flat(input_index), input_min, in FixedPointBatchNorm()
Dsegment_reduction_ops.cc91 auto input_flat = input.flat_outer_dims<T>(); in Compute() local
92 const int64 num_col = input_flat.dimension(1); in Compute()
147 const T* in_slice_ptr = &input_flat(start, 0); in Compute()
658 auto input_flat = input.flat_outer_dims<T>(); in Compute() local
659 const int64 num_col = input_flat.dimension(1); in Compute()
735 Reduce(input_flat, indices_vec, start, end - start, out); in Compute()
740 " out of range [0, ", input_flat.dimension(0), ")")); in Compute()
762 int64 Reduce(const typename TTypes<T>::ConstMatrix& input_flat, in Reduce() argument
768 if (!FastBoundsCheck(index##n, input_flat.dimension(0))) return (i); in Reduce()
770 #define L(n) input_flat.template chip<0>(index##n) in Reduce()
[all …]
Dfake_quant_ops_test.cc379 auto input_flat = GetInput(0).flat<float>(); in TEST_F() local
381 FillValues<float>(&expected, {0.0f, input_flat(1), input_flat(2), in TEST_F()
382 input_flat(3), input_flat(4), 0.0f}); in TEST_F()
409 auto input_flat = GetInput(0).flat<float>(); in TEST_F() local
411 FillValues<float>(&expected, {0.0f, input_flat(1), input_flat(2), in TEST_F()
412 input_flat(3), input_flat(4), 0.0f}); in TEST_F()
440 auto input_flat = GetInput(0).flat<float>(); in TEST_F() local
442 FillValues<float>(&expected, {0.0f, input_flat(1), input_flat(2), in TEST_F()
443 input_flat(3), input_flat(4), 0.0f}); in TEST_F()
471 auto input_flat = GetInput(0).flat<float>(); in TEST_F() local
[all …]
Ddebug_ops.h246 const T* input_flat = input.template flat<T>().data(); in Compute() local
249 if (Eigen::numext::isnan(static_cast<double>(input_flat[i]))) { in Compute()
302 const T* input_flat = input.template flat<T>().data(); in Compute() local
309 const double x = static_cast<double>(input_flat[i]); in Compute()
349 const double x = static_cast<double>(input_flat[i]); in Compute()
Droll_op.cc292 auto input_flat = input.flat<T>().data(); in Compute() local
299 input_flat, output_flat, threshold, dim_range, isd); in Compute()
302 DoRoll<T>(context, num_elements, num_dims, dim_size, input_flat, in Compute()
Dreduce_join_op.cc125 const auto input_flat = input.flat<string>(); in Compute() local
173 input_flat(output_full_index + reduction_full_index); in Compute()
Dadjust_contrast_op.cc238 TTypes<float, 1>::ConstTensor input_flat(&input(0, 0, 0), input.size()); in ReduceMeanAcrossImage() local
250 input_flat.slice(Index(i * plane_size), Index(plane_size)); in ReduceMeanAcrossImage()
Dquantization_utils.h810 const auto& input_flat = input.flat<T1>(); in QuantizedAddUsingEigen() local
836 auto input_float = DEQUANTIZE_WITH_EIGEN(input_flat, input_q2f); in QuantizedAddUsingEigen()
856 const auto& input_flat = input.flat<T1>(); in QuantizedAdd() local
884 const T1 input_value = input_flat(index); in QuantizedAdd()
Dset_kernels.cc212 auto input_flat = input_tensor.flat<T>(); in PopulateFromDenseGroup() local
218 result->insert(input_flat(i)); in PopulateFromDenseGroup()
/external/tensorflow/tensorflow/contrib/libsvm/kernels/
Ddecode_libsvm_op.cc39 const auto& input_flat = input_tensor->flat<string>(); in Compute() local
48 for (int i = 0; i < input_flat.size(); ++i) { in Compute()
49 StringPiece line(input_flat(i)); in Compute()
55 "]: \"", input_flat(i), "\"")); in Compute()