/external/autotest/client/cros/input_playback/ |
D | input_playback.py | 18 def __init__(self, input_type): argument 19 self.input_type = input_type # e.g. 'touchpad' 29 s = '%s:' % self.input_type 109 def has(self, input_type): argument 115 return input_type in self.devices 123 def emulate(self, input_type='mouse', property_file=None): argument 140 new_device = Device(input_type) 147 if input_type not in self._DEFAULT_PROPERTY_FILES: 149 'type %s' % input_type) 152 current_dir, self._DEFAULT_PROPERTY_FILES[input_type]) [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | unary_ops.cc | 56 b->Mul(XlaHelpers::FloatLiteral(b, input_type(0), 2.0), 57 b->Atan2(b->Pow(b->Sub(XlaHelpers::One(b, input_type(0)), 59 XlaHelpers::FloatLiteral(b, input_type(0), 0.5)), 60 b->Add(XlaHelpers::One(b, input_type(0)), x)))); 66 XlaHelpers::One(b, input_type(0))), 67 XlaHelpers::FloatLiteral(b, input_type(0), 0.5))))); 72 b->Mul(XlaHelpers::FloatLiteral(b, input_type(0), 2.0), 73 b->Atan2(x, b->Add(XlaHelpers::One(b, input_type(0)), 74 b->Pow(b->Sub(XlaHelpers::One(b, input_type(0)), 76 XlaHelpers::FloatLiteral(b, input_type(0), [all …]
|
D | elu_op.cc | 36 const auto zero = XlaHelpers::Zero(b, input_type(0)); in Compile() 37 const auto one = XlaHelpers::One(b, input_type(0)); in Compile() 51 const auto zero = XlaHelpers::Zero(b, input_type(0)); in Compile() 52 const auto one = XlaHelpers::One(b, input_type(0)); in Compile() 70 const auto zero = XlaHelpers::Zero(b, input_type(0)); in Compile() 71 const auto one = XlaHelpers::One(b, input_type(0)); in Compile() 72 const auto scale = XlaHelpers::FloatLiteral(b, input_type(0), in Compile() 74 const auto scale_alpha = XlaHelpers::FloatLiteral(b, input_type(0), in Compile() 90 const auto zero = XlaHelpers::Zero(b, input_type(0)); in Compile() 91 const auto one = XlaHelpers::One(b, input_type(0)); in Compile() [all …]
|
D | batch_norm_op.cc | 44 xla::PrimitiveType input_type; in Compile() local 46 DataTypeToPrimitiveType(ctx->input_type(0), &input_type)); in Compile() 49 DataTypeToPrimitiveType(ctx->input_type(1), &scale_type)); in Compile() 71 builder->GetTupleElement(output, 0), input_type)); in Compile() 85 ctx->SetOutput(0, builder->ConvertElementType(output, input_type)); in Compile() 133 DataType input_dtype = ctx->input_type(0); in Compile() 134 DataType scale_dtype = ctx->input_type(2); in Compile() 135 xla::PrimitiveType input_type; in Compile() local 136 OP_REQUIRES_OK(ctx, DataTypeToPrimitiveType(input_dtype, &input_type)); in Compile() 188 ctx->SetOutput(0, b->ConvertElementType(x_backprop, input_type)); in Compile()
|
D | relu_op.cc | 36 auto zero = XlaHelpers::Zero(builder, input_type(0)); in Compile() 47 auto zero = XlaHelpers::Zero(builder, input_type(0)); in Compile() 48 auto six = XlaHelpers::IntegerLiteral(builder, input_type(0), 6); in Compile() 62 b->Broadcast(XlaHelpers::Zero(b, input_type(0)), shape.dim_sizes()); in Compile() 77 b->Broadcast(XlaHelpers::Zero(b, input_type(0)), shape.dim_sizes()); in Compile() 79 XlaHelpers::IntegerLiteral(b, input_type(0), 6), shape.dim_sizes()); in Compile()
|
D | binary_ops.cc | 85 FloorDivImpl(b, input_type(0), lhs, rhs, broadcast_helper)); 102 FloorModImpl(b, input_type(0), lhs, rhs, broadcast_helper)); 109 (DataTypeIsUnsigned(ctx->input_type(0)) 122 b->Mul(b->Pow(lhs, XlaHelpers::IntegerLiteral(b, input_type(0), 3)), 123 b->Div(rhs, XlaHelpers::IntegerLiteral(b, input_type(0), -2)), 127 XlaHelpers::FloatLiteral(b, input_type(0), 0.5)), 152 b->Sub(XlaHelpers::One(b, input_type(0)), lhs))); 156 XlaHelpers::One(b, input_type(1))))); 160 b->Div(lhs, Square(b, b->Add(XlaHelpers::One(b, input_type(0)), 163 XLA_MAKE_BINARY(TanhGrad, b->Mul(rhs, b->Sub(XlaHelpers::One(b, input_type(0)),
|
D | lrn_ops.cc | 52 squared, XlaHelpers::Zero(builder, input_type(0)), in Compile() 53 *ctx->GetOrCreateAdd(input_type(0)), in Compile() 135 squared, XlaHelpers::Zero(builder, input_type(0)), in Compile() 136 *ctx->GetOrCreateAdd(input_type(0)), in Compile() 150 dy, XlaHelpers::Zero(builder, input_type(0)), in Compile() 151 *ctx->GetOrCreateAdd(input_type(0)), in Compile()
|
D | categorical_op.cc | 65 DataTypeToPrimitiveType(input_type(0), &uniform_xla_type)); in Compile() 69 XlaHelpers::Zero(builder, input_type(0)), in Compile() 70 XlaHelpers::One(builder, input_type(0)), uniform_shape); in Compile() 85 input_type(0), output_type(0), /*axis=*/2, &argmax)); in Compile()
|
D | matrix_band_part_op.cc | 51 DataType input_type = context->input_type(0); in Compile() local 52 DataType index_type = context->input_type(1); in Compile() 84 auto zero_input = XlaHelpers::Zero(builder, input_type); in Compile()
|
/external/autotest/client/site_tests/touch_WakeupSource/ |
D | touch_WakeupSource.py | 27 def _find_wakeup_file(self, input_type): argument 39 device_dir = self.player.devices[input_type].device_dir 41 raise error.TestError('No device directory for %s!' % input_type) 45 logging.info('%s not found for %s', filename, input_type) 48 event = self.player.devices[input_type].node.split('/')[-1] 61 logging.info('Could not find parent bus for %s.', input_type) 64 logging.info('Parent bus of %s is %s.', input_type, parent) 72 def _is_wake_source(self, input_type): argument 83 filename = self._find_wakeup_file(input_type) 89 logging.info('Found that %s is a wake source.', input_type) [all …]
|
/external/autotest/client/cros/ |
D | touch_playback_test_base.py | 61 self.player.emulate(input_type='mouse', property_file=mouse_props) 71 def _find_test_files(self, input_type, gestures): argument 90 if not self.player.has(input_type): 91 raise error.TestError('Device does not have a %s!' % input_type) 93 if input_type in ['touchpad', 'touchscreen', 'stylus']: 94 hw_id = self.player.devices[input_type].hw_id 96 raise error.TestError('No valid hw_id for %s!' % input_type) 97 filename_fmt = '%s_%s_%s' % (self._platform, input_type, hw_id) 100 device_name = self.player.devices[input_type].name 101 filename_fmt = '%s_%s' % (device_name, input_type) [all …]
|
/external/tensorflow/tensorflow/contrib/lite/toco/ |
D | toco_cmdline_flags.cc | 70 Flag("input_type", parsed_flags.input_type.bind(), in ParseTocoFlagsFromCommandLineFlags() 71 parsed_flags.input_type.default_value(), in ParseTocoFlagsFromCommandLineFlags() 177 if (parsed_toco_flags.input_type.specified()) { in ReadTocoFlagsFromCommandLineFlags() 185 toco::IODataType input_type; in ReadTocoFlagsFromCommandLineFlags() local 186 QCHECK(toco::IODataType_Parse(parsed_toco_flags.input_type.value(), in ReadTocoFlagsFromCommandLineFlags() 187 &input_type)); in ReadTocoFlagsFromCommandLineFlags() 188 toco_flags->set_inference_input_type(input_type); in ReadTocoFlagsFromCommandLineFlags() 204 toco::IODataType input_type; in ReadTocoFlagsFromCommandLineFlags() local 205 QCHECK(toco::IODataType_Parse(input_types[0], &input_type)); in ReadTocoFlagsFromCommandLineFlags() 206 toco_flags->set_inference_input_type(input_type); in ReadTocoFlagsFromCommandLineFlags()
|
/external/perfetto/src/ipc/protoc_plugin/ |
D | ipc_generator.cc | 133 std::string input_type = method.input_type()->name(); in ForEachMethod() local 135 function(method, input_type, output_type); in ForEachMethod() 151 const std::string& input_type, in GenerateServiceHeader() 159 method.name(), "i", input_type, "o", output_type); in GenerateServiceHeader() 167 const std::string& input_type, in GenerateServiceHeader() argument 175 method.name(), "i", input_type, "o", output_type); in GenerateServiceHeader() 200 const std::string& input_type, in GenerateServiceCpp() 202 printer->Print(kCppMethodDescriptor, "c", svc.name(), "i", input_type, "o", in GenerateServiceCpp() 213 const std::string& input_type, in GenerateServiceCpp() argument 216 input_type, "o", output_type); in GenerateServiceCpp()
|
/external/autotest/client/site_tests/touch_UpdateErrors/ |
D | touch_UpdateErrors.py | 81 def _check_updates(self, input_type): argument 89 hw_id = self.player.devices[input_type].hw_id 91 raise error.TestError('%s has no valid hw_id!' % input_type) 120 def run_once(self, input_type='touchpad'): argument 122 if not self.player.has(input_type): 123 raise error.TestError('No %s found on this device!' % input_type) 130 self._check_updates(input_type)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | sequence_ops_test.cc | 33 void MakeOp(DataType input_type) { in MakeOp() argument 35 .Input(FakeInput(input_type)) in MakeOp() 36 .Input(FakeInput(input_type)) in MakeOp() 37 .Input(FakeInput(input_type)) in MakeOp() 45 void MakeOp(DataType input_type, DataType index_type) { in MakeOp() argument 47 .Input(FakeInput(input_type)) in MakeOp() 48 .Input(FakeInput(input_type)) in MakeOp()
|
D | debug_ops_test.cc | 42 Status Init(DataType input_type, const std::vector<string>& debug_urls) { in Init() argument 46 .Input(FakeInput(input_type)) in Init() 53 Status Init(DataType input_type) { in Init() argument 55 return Init(input_type, empty_debug_urls); in Init() 180 Status Init(DataType input_type) { in Init() argument 182 .Input(FakeInput(input_type)) in Init() 243 Status Init(DataType input_type) { in Init() argument 245 .Input(FakeInput(input_type)) in Init() 251 Status InitGated(DataType input_type, const std::vector<string>& debug_urls) { in InitGated() argument 253 .Input(FakeInput(input_type)) in InitGated() [all …]
|
/external/autotest/client/site_tests/touch_HasInput/ |
D | touch_HasInput.py | 13 def run_once(self, input_type=''): argument 20 if not input_type: 23 if not self.player.has(input_type): 24 raise error.TestFail('Device does not have a %s!' % input_type)
|
/external/tensorflow/tensorflow/contrib/lite/kernels/ |
D | concatenation.cc | 51 TfLiteType input_type = t0->type; in Prepare() local 61 input_type == kTfLiteFloat32 || input_type == kTfLiteUInt8); in Prepare() 69 TF_LITE_ENSURE_EQ(context, t->type, input_type); in Prepare() 70 if (input_type == kTfLiteUInt8) { in Prepare() 89 TF_LITE_ENSURE_EQ(context, output->type, input_type); in Prepare() 90 if (input_type == kTfLiteUInt8) { in Prepare()
|
/external/v8/src/compiler/ |
D | typed-optimization.cc | 119 Type* const input_type = NodeProperties::GetType(input); in ReduceCheckHeapObject() local 120 if (!input_type->Maybe(Type::SignedSmall())) { in ReduceCheckHeapObject() 155 Type* const input_type = NodeProperties::GetType(input); in ReduceCheckString() local 156 if (input_type->Is(Type::String())) { in ReduceCheckString() 193 Type* const input_type = NodeProperties::GetType(input); in ReduceNumberFloor() local 194 if (input_type->Is(type_cache_.kIntegerOrMinusZeroOrNaN)) { in ReduceNumberFloor() 197 if (input_type->Is(Type::PlainNumber()) && in ReduceNumberFloor() 227 Type* const input_type = NodeProperties::GetType(input); in ReduceNumberRoundop() local 228 if (input_type->Is(type_cache_.kIntegerOrMinusZeroOrNaN)) { in ReduceNumberRoundop() 236 Type* const input_type = NodeProperties::GetType(input); in ReduceNumberToUint8Clamped() local [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/ |
D | xla_helpers.cc | 36 const TensorShape& input_shape, DataType input_type, in ArgMinMax() argument 42 init_value = XlaHelpers::MaxValue(builder, input_type); in ArgMinMax() 43 reducer = ctx->GetOrCreateMin(input_type); in ArgMinMax() 45 init_value = XlaHelpers::MinValue(builder, input_type); in ArgMinMax() 46 reducer = ctx->GetOrCreateMax(input_type); in ArgMinMax() 185 const TensorShape& input_shape, DataType input_type, in ArgMax() argument 188 return ArgMinMax(builder, ctx, input, input_shape, input_type, output_type, in ArgMax() 195 const TensorShape& input_shape, DataType input_type, in ArgMin() argument 198 return ArgMinMax(builder, ctx, input, input_shape, input_type, output_type, in ArgMin()
|
/external/tensorflow/tensorflow/contrib/specs/python/ |
D | summaries.py | 248 input_type=dtypes.float32): argument 268 inputs = array_ops.placeholder(input_type, input_shape) 276 input_type=dtypes.float32): argument 292 inputs = array_ops.placeholder(input_type, input_shape) 300 input_type=dtypes.float32): argument 311 inputs = array_ops.placeholder(input_type, input_shape)
|
/external/autotest/client/site_tests/platform_InputVolume/ |
D | platform_InputVolume.py | 30 self._player.emulate(input_type='keyboard') 43 input_type='keyboard', filename='keyboard_f9') 61 input_type='keyboard', filename='keyboard_f10') 77 input_type='keyboard', filename='keyboard_f8')
|
/external/adhd/cras/src/tests/ |
D | audio_test_gui.py | 171 def start_test(self, input_type, output_type, input_file='', argument 186 if input_type == 'file' or output_type == 'file': 190 if input_type == 'file': 194 set_input = ['cras_test_client', '--select_input', str(input_type)]
|
/external/autotest/client/site_tests/platform_InputBrowserNav/ |
D | platform_InputBrowserNav.py | 28 self._player.emulate(input_type='keyboard') 38 input_type='keyboard', filename='keyboard_f1') 49 input_type='keyboard', filename='keyboard_f2') 70 input_type='keyboard', filename='keyboard_f3')
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_service.cc | 148 sub_vars["input_type"] = ClassName(method->input_type(), true); in GenerateMethodSignatures() 219 sub_vars["input_type"] = ClassName(method->input_type(), true); in GenerateNotImplementedMethods() 249 sub_vars["input_type"] = ClassName(method->input_type(), true); in GenerateCallMethod() 290 (which == REQUEST) ? method->input_type() : method->output_type(); in GenerateGetPrototype() 317 sub_vars["input_type"] = ClassName(method->input_type(), true); in GenerateStubMethods()
|