Searched refs:input_max_tensor (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
D | quantize_and_dequantize_op.cc | 80 Tensor input_max_tensor; in Compute() local 85 input_max_tensor = ctx->input(2); in Compute() 88 auto max_val = input_max_tensor.scalar<T>()(); in Compute() 99 OP_REQUIRES(ctx, input_max_tensor.dim_size(0) == depth, in Compute() 102 input_max_tensor.dim_size(0), " expected ", depth, in Compute() 104 input_max_tensor.shape())); in Compute() 111 range_shape, &input_max_tensor)); in Compute() 117 range_given_, &input_min_tensor, &input_max_tensor, round_mode_, in Compute() 123 num_bits_, range_given_, &input_min_tensor, &input_max_tensor, in Compute() 163 const Tensor& input_max_tensor = ctx->input(3); in Compute() local [all …]
|
D | quantize_and_dequantize_op_gpu.cu.cc | 34 Tensor* input_min_tensor, Tensor* input_max_tensor, in operator ()() 39 input_max_tensor, round_mode, narrow_range, output); in operator ()() 47 Tensor* input_min_tensor, Tensor* input_max_tensor, in operator ()() 52 input_max_tensor, round_mode, narrow_range, output); in operator ()() 61 typename TTypes<T>::ConstScalar input_max_tensor, in operator ()() 66 d, gradient, input, input_min_tensor, input_max_tensor, input_backprop, in operator ()() 77 const Tensor* input_max_tensor, in operator ()() 82 d, gradient, input, input_min_tensor, input_max_tensor, input_backprop, in operator ()()
|
D | quantize_and_dequantize_op.h | 49 Tensor* input_min_tensor, Tensor* input_max_tensor, 58 Tensor* input_min_tensor, Tensor* input_max_tensor, 79 const Tensor* input_max_tensor, 184 Tensor* input_min_tensor, Tensor* input_max_tensor, in Compute() 190 auto input_max = input_max_tensor->scalar<T>(); in Compute() 199 max_range = input_max_tensor->scalar<T>()(); in Compute() 225 Tensor* input_min_tensor, Tensor* input_max_tensor, in Compute() 231 auto input_max = input_max_tensor->vec<T>(); in Compute() 251 std::memcpy(max_range.data(), input_max_tensor->vec<T>().data(), in Compute() 300 const Tensor* input_max_tensor, in Compute() [all …]
|
D | dequantize_op.cc | 95 const Tensor& input_max_tensor = ctx->input(2); in Compute() local 108 const float max_range = input_max_tensor.flat<float>()(0); in Compute() 127 auto max_ranges = input_max_tensor.vec<float>(); in Compute()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | quantize_training.cc | 514 Tensor input_max_tensor(DT_FLOAT, TensorShape()); in MakeInputMinMax() local 515 input_max_tensor.flat<float>()(0) = edge.input_max; in MakeInputMinMax() 519 .Attr("value", input_max_tensor) in MakeInputMinMax()
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | quantize_nodes_test.cc | 934 Tensor input_max_tensor(DT_FLOAT, TensorShape({})); in TestMergeAdjacentRequantizes() local 935 test::FillValues<float>(&input_max_tensor, {255.0f}); in TestMergeAdjacentRequantizes() 937 Input::Initializer(input_max_tensor)); in TestMergeAdjacentRequantizes()
|