/external/tensorflow/tensorflow/core/kernels/ |
D | as_string_op.cc | 123 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 …]
|
D | string_to_hash_bucket_op.h | 39 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()
|
D | regex_full_match_op.cc | 34 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()
|
D | string_to_number_op.cc | 43 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()
|
D | string_to_hash_bucket_op.cc | 36 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()
|
D | unicode_script_op.cc | 29 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()
|
D | quantized_batch_norm_op.cc | 39 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()
|
D | segment_reduction_ops.cc | 91 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 …]
|
D | fake_quant_ops_test.cc | 379 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 …]
|
D | debug_ops.h | 246 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()
|
D | roll_op.cc | 292 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()
|
D | reduce_join_op.cc | 125 const auto input_flat = input.flat<string>(); in Compute() local 173 input_flat(output_full_index + reduction_full_index); in Compute()
|
D | adjust_contrast_op.cc | 238 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()
|
D | quantization_utils.h | 810 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()
|
D | set_kernels.cc | 212 auto input_flat = input_tensor.flat<T>(); in PopulateFromDenseGroup() local 218 result->insert(input_flat(i)); in PopulateFromDenseGroup()
|
/external/tensorflow/tensorflow/contrib/libsvm/kernels/ |
D | decode_libsvm_op.cc | 39 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()
|