Home
last modified time | relevance | path

Searched refs:mode_string (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dquantize_op.cc68 string mode_string; in QuantizeV2Op() local
69 OP_REQUIRES_OK(ctx, ctx->GetAttr("mode", &mode_string)); in QuantizeV2Op()
71 (mode_string == "MIN_COMBINED" || mode_string == "MIN_FIRST" || in QuantizeV2Op()
72 mode_string == "SCALED"), in QuantizeV2Op()
75 mode_string + "'")); in QuantizeV2Op()
76 if (mode_string == "MIN_COMBINED") { in QuantizeV2Op()
78 } else if (mode_string == "MIN_FIRST") { in QuantizeV2Op()
80 } else if (mode_string == "SCALED") { in QuantizeV2Op()
96 OP_REQUIRES(ctx, mode_string == "SCALED", in QuantizeV2Op()
100 mode_string + "'.")); in QuantizeV2Op()
Ddequantize_op.cc55 string mode_string; in DequantizeOp() local
56 OP_REQUIRES_OK(ctx, ctx->GetAttr("mode", &mode_string)); in DequantizeOp()
68 (mode_string == "MIN_COMBINED" || in DequantizeOp()
69 mode_string == "MIN_FIRST" || mode_string == "SCALED"), in DequantizeOp()
72 mode_string + "'")); in DequantizeOp()
75 ctx, (mode_string == "MIN_COMBINED"), in DequantizeOp()
78 mode_string + "'")); in DequantizeOp()
81 if (mode_string == "MIN_COMBINED") { in DequantizeOp()
83 } else if (mode_string == "MIN_FIRST") { in DequantizeOp()
85 } else if (mode_string == "SCALED") { in DequantizeOp()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_quantize_op.cc217 string mode_string; in MklQuantizeV2Op() local
218 OP_REQUIRES_OK(ctx, ctx->GetAttr("mode", &mode_string)); in MklQuantizeV2Op()
220 (mode_string == "MIN_COMBINED" || mode_string == "MIN_FIRST" || in MklQuantizeV2Op()
221 mode_string == "SCALED"), in MklQuantizeV2Op()
224 mode_string + "'")); in MklQuantizeV2Op()
225 if (mode_string == "MIN_COMBINED") { in MklQuantizeV2Op()
227 } else if (mode_string == "MIN_FIRST") { in MklQuantizeV2Op()
229 } else if (mode_string == "SCALED") { in MklQuantizeV2Op()
245 OP_REQUIRES(ctx, mode_string == "SCALED", in MklQuantizeV2Op()
249 mode_string + "'.")); in MklQuantizeV2Op()
Dmkl_dequantize_op.cc42 string mode_string; in MklDequantizeOp() local
43 OP_REQUIRES_OK(ctx, ctx->GetAttr("mode", &mode_string)); in MklDequantizeOp()
44 OP_REQUIRES(ctx, mode_string == "SCALED", in MklDequantizeOp()
47 mode_string + "'")); in MklDequantizeOp()
Dmkl_qmatmul_op.cc141 string mode_string; in MklDnnQuantizedMatMulOp() local
142 OP_REQUIRES_OK(context, context->GetAttr("input_quant_mode", &mode_string)); in MklDnnQuantizedMatMulOp()
143 if (mode_string == "MIN_FIRST") { in MklDnnQuantizedMatMulOp()
145 } else if (mode_string == "SCALED") { in MklDnnQuantizedMatMulOp()
150 mode_string)); in MklDnnQuantizedMatMulOp()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Ddequantize_op.cc43 string mode_string; in DequantizeOp() local
47 OP_REQUIRES_OK(ctx, ctx->GetAttr("mode", &mode_string)); in DequantizeOp()
49 ctx, (mode_string == "MIN_COMBINED"), in DequantizeOp()
51 mode_string + "'")); in DequantizeOp()
/external/f2fs-tools/tools/sg_write_buffer/
Dsg_write_buffer.c138 const char *mode_string; member
178 for (mp = mode_arr; mp->mode_string; ++mp) { in print_modes()
180 mp->mode_string, mp->comment); in print_modes()
271 for (mp = mode_arr; mp->mode_string; ++mp) { in main()
272 if (0 == strncmp(mp->mode_string, optarg, len)) { in main()
277 if (! mp->mode_string) { in main()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dquantize.h83 absl::string_view mode_string = "MIN_COMBINED",
139 if (mode_string == "MIN_COMBINED") {
/external/python/cpython3/Modules/_io/
Dfileio.c1053 mode_string(fileio *self) function
1091 self->fd, mode_string(self), self->closefd ? "True" : "False");
1099 nameobj, mode_string(self), self->closefd ? "True" : "False");
1171 return PyUnicode_FromString(mode_string(self));
/external/python/cpython2/Modules/_io/
Dfileio.c936 mode_string(fileio *self) in mode_string() function
969 self->fd, mode_string(self)); in fileio_repr()
978 mode_string(self)); in fileio_repr()
1115 return PyUnicode_FromString(mode_string(self)); in get_mode()
/external/mesa3d/src/compiler/glsl/
Dlinker.cpp874 mode_string(var), in validate_intrastage_arrays()
886 mode_string(var), in validate_intrastage_arrays()
954 mode_string(var), in cross_validate_globals()
967 mode_string(var), var->name); in cross_validate_globals()
973 "differing values\n", mode_string(var), var->name); in cross_validate_globals()
1002 mode_string(var), var->name); in cross_validate_globals()
1014 mode_string(var), var->name); in cross_validate_globals()
1075 mode_string(var), var->name); in cross_validate_globals()
1103 mode_string(var), var->name); in cross_validate_globals()
1109 mode_string(var), var->name); in cross_validate_globals()
[all …]
Dglsl_parser_extras.h172 mode_string(var), requirement); in check_explicit_attrib_location_allowed()
188 mode_string(var), requirement); in check_separate_shader_objects_allowed()
Dir.h2521 mode_string(const ir_variable *var);
Dir.cpp2373 mode_string(const ir_variable *var) in mode_string() function
Dast_to_hir.cpp3297 mode_string(var), in apply_explicit_location()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dsnapshot_util.cc887 Status DetermineOpState(const std::string& mode_string, bool file_exists, in DetermineOpState() argument
891 if (mode_string == kModeRead) { in DetermineOpState()
901 if (mode_string == kModeWrite) { in DetermineOpState()
907 if (mode_string == kModePassthrough) { in DetermineOpState()
Dsnapshot_util.h296 Status DetermineOpState(const std::string& mode_string, bool file_exists,
/external/tensorflow/tensorflow/stream_executor/
Ddnn.cc552 const char* mode_string = in ToString() local
566 mode_string, window, strides, padding, propagate_string); in ToString()
/external/tensorflow/tensorflow/core/common_runtime/
Dmkl_layout_pass.cc1530 string mode_string; in DequantizeRewrite() local
1531 TF_CHECK_OK(GetNodeAttr(n->def(), "mode", &mode_string)); in DequantizeRewrite()
1532 if (mode_string != "SCALED") { in DequantizeRewrite()
1657 string mode_string; in QuantizeOpRewrite() local
1662 TF_CHECK_OK(GetNodeAttr(n->def(), "mode", &mode_string)); in QuantizeOpRewrite()
1679 if (!((mode_string == "SCALED" && round_mode_string == "HALF_TO_EVEN") || in QuantizeOpRewrite()
1680 (mode_string == "MIN_FIRST"))) { in QuantizeOpRewrite()
1695 if (mode_string == "MIN_FIRST") { in QuantizeOpRewrite()