Home
last modified time | relevance | path

Searched refs:input_max_tensor (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dquantize_and_dequantize_op.cc80 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 …]
Dquantize_and_dequantize_op_gpu.cu.cc34 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 ()()
Dquantize_and_dequantize_op.h49 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 …]
Ddequantize_op.cc95 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/
Dquantize_training.cc514 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/
Dquantize_nodes_test.cc934 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()