Searched refs:dev_ctx (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/sparkfun_edge/ |
D | accelerometer_handler.cc | 33 lis2dh12_ctx_t dev_ctx; // accelerometer device control variable 87 lis2dh12_device_id_get(&dev_ctx, &whoamI); in initAccelerometer() 92 lis2dh12_block_data_update_set(&dev_ctx, PROPERTY_ENABLE); in initAccelerometer() 93 lis2dh12_temperature_meas_set(&dev_ctx, LIS2DH12_TEMP_ENABLE); in initAccelerometer() 94 lis2dh12_data_rate_set(&dev_ctx, LIS2DH12_ODR_25Hz); in initAccelerometer() 95 lis2dh12_full_scale_set(&dev_ctx, LIS2DH12_2g); in initAccelerometer() 96 lis2dh12_temperature_meas_set(&dev_ctx, LIS2DH12_TEMP_ENABLE); in initAccelerometer() 97 lis2dh12_operating_mode_set(&dev_ctx, LIS2DH12_HR_12bit); in initAccelerometer() 120 dev_ctx.write_reg = lis2dh12_write_platform_apollo3; // write bytes function in SetupAccelerometer() 121 dev_ctx.read_reg = lis2dh12_read_platform_apollo3; // read bytes function in SetupAccelerometer() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | permuter_test.cc | 383 DeviceContext* dev_ctx = nullptr; in DoPermute() local 386 dev_ctx = dev_info->default_context; in DoPermute() 387 dev_ctx->Ref(); in DoPermute() 389 dev_ctx = new DeviceContext; in DoPermute() 391 op_params.op_device_context = dev_ctx; in DoPermute() 413 dev_ctx->Unref(); in DoPermute()
|
D | ring_gatherer_test.cc | 461 DeviceContext* dev_ctx = nullptr; in DoGather() local 464 dev_ctx = dev_info->default_context; in DoGather() 465 dev_ctx->Ref(); in DoGather() 467 dev_ctx = new DeviceContext; in DoGather() 469 op_params.op_device_context = dev_ctx; in DoGather() 503 dev_ctx->Unref(); in DoGather()
|
D | ring_reducer_test.cc | 493 DeviceContext* dev_ctx = nullptr; in DoReduce() local 496 dev_ctx = dev_info->default_context; in DoReduce() 497 dev_ctx->Ref(); in DoReduce() 499 dev_ctx = new DeviceContext; in DoReduce() 501 op_params.op_device_context = dev_ctx; in DoReduce() 535 dev_ctx->Unref(); in DoReduce()
|
D | buf_rendezvous.cc | 87 DeviceContext* dev_ctx, const Tensor* v, in ProvideBuf() argument 117 h->prod_ctx = dev_ctx; in ProvideBuf()
|
D | hierarchical_tree_broadcaster_test.cc | 641 DeviceContext* dev_ctx = nullptr; in DoBroadcast() local 644 dev_ctx = dev_info->default_context; in DoBroadcast() 645 dev_ctx->Ref(); in DoBroadcast() 647 dev_ctx = new DeviceContext; in DoBroadcast() 649 op_params.op_device_context = dev_ctx; in DoBroadcast() 696 dev_ctx->Unref(); in DoBroadcast()
|
D | buf_rendezvous.h | 90 void ProvideBuf(const string& key, Device* dev, DeviceContext* dev_ctx,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | collective_nccl_test.cc | 287 DeviceContext* dev_ctx = nullptr; in PrepareDeviceContext() local 290 dev_ctx = dev_info->default_context; in PrepareDeviceContext() 291 dev_ctx->Ref(); in PrepareDeviceContext() 293 dev_ctx = new DeviceContext; in PrepareDeviceContext() 295 params->op_device_context = dev_ctx; in PrepareDeviceContext()
|