Home
last modified time | relevance | path

Searched refs:input_type (Results 1 – 25 of 160) sorted by relevance

1234567

/external/autotest/client/cros/input_playback/
Dinput_playback.py18 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/
Dunary_ops.cc56 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 …]
Delu_op.cc36 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 …]
Dbatch_norm_op.cc44 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()
Drelu_op.cc36 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()
Dbinary_ops.cc85 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)),
Dlrn_ops.cc52 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()
Dcategorical_op.cc65 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()
Dmatrix_band_part_op.cc51 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/
Dtouch_WakeupSource.py27 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/
Dtouch_playback_test_base.py61 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/
Dtoco_cmdline_flags.cc70 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/
Dipc_generator.cc133 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/
Dtouch_UpdateErrors.py81 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/
Dsequence_ops_test.cc33 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()
Ddebug_ops_test.cc42 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/
Dtouch_HasInput.py13 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/
Dconcatenation.cc51 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/
Dtyped-optimization.cc119 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/
Dxla_helpers.cc36 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/
Dsummaries.py248 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/
Dplatform_InputVolume.py30 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/
Daudio_test_gui.py171 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/
Dplatform_InputBrowserNav.py28 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/
Dcpp_service.cc148 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()

1234567