/external/tensorflow/tensorflow/python/training/ |
D | sync_replicas_optimizer.py | 420 def get_init_tokens_op(self, num_tokens=-1): argument 445 if num_tokens == -1: 446 num_tokens = self._replicas_to_aggregate 447 elif num_tokens < tokens_needed: 450 (num_tokens, tokens_needed)) 452 if num_tokens > 0: 454 tokens = array_ops.fill([num_tokens], self._global_step) 461 def make_session_run_hook(self, is_chief, num_tokens=-1): argument 463 return _SyncReplicasOptimizerHook(self, is_chief, num_tokens) 469 def __init__(self, sync_optimizer, is_chief, num_tokens): argument [all …]
|
/external/jsmn/ |
D | jsmn.c | 7 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token() argument 9 if (parser->toknext >= num_tokens) { in jsmn_alloc_token() 36 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive() argument 68 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 85 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string() argument 101 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string() 152 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse() argument 169 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse() 232 r = jsmn_parse_string(parser, js, len, tokens, num_tokens); in jsmn_parse() 278 r = jsmn_parse_primitive(parser, js, len, tokens, num_tokens); in jsmn_parse()
|
D | jsmn.h | 70 jsmntok_t *tokens, unsigned int num_tokens);
|
/external/libtextclassifier/actions/ |
D | ngram-model.cc | 90 bool NGramModel::IsNGramMatch(const uint32* tokens, size_t num_tokens, in IsNGramMatch() argument 94 for (; token_idx < num_tokens && ngram_token_idx < num_ngram_tokens;) { in IsNGramMatch() 114 uint64 NGramModel::GetNumSkipGrams(int num_tokens, int max_ngram_length, in GetNumSkipGrams() argument 117 uint64 total = num_tokens; in GetNumSkipGrams() 119 ngram_len <= max_ngram_length && ngram_len <= num_tokens; ++ngram_len) { in GetNumSkipGrams() 130 if (len_i > num_tokens) continue; in GetNumSkipGrams() 133 const int num_start_offsets = num_tokens - len_i + 1; in GetNumSkipGrams()
|
D | ngram-model.h | 41 static uint64 GetNumSkipGrams(int num_tokens, int max_ngram_length, 53 bool IsNGramMatch(const uint32* tokens, size_t num_tokens,
|
/external/e2fsprogs/contrib/android/ |
D | e2fsdroid.c | 71 size_t num_tokens; in parse_ugid_map_entry() local 75 for (token = strtok_r(line, " ", &token_saveptr), num_tokens = 0; in parse_ugid_map_entry() 76 token && num_tokens < 3; in parse_ugid_map_entry() 77 token = strtok_r(NULL, " ", &token_saveptr), ++num_tokens) { in parse_ugid_map_entry() 79 *parsed[num_tokens] = strtoul(token, &endptr, 10); in parse_ugid_map_entry() 80 if ((*parsed[num_tokens] == ULONG_MAX && errno) || *endptr) { in parse_ugid_map_entry() 85 if (num_tokens < 3 || strtok_r(NULL, " ", &token_saveptr) != NULL) { in parse_ugid_map_entry()
|
/external/libtextclassifier/utils/tflite/ |
D | token_encoder.cc | 76 const TfLiteTensor& num_tokens = in Prepare() local 78 TF_LITE_ENSURE_EQ(context, num_tokens.dims->size, kEncoderInputRank); in Prepare() 79 TF_LITE_ENSURE_EQ(context, num_tokens.dims->data[0], kEncoderBatchSize); in Prepare() 120 const TfLiteTensor& num_tokens = in Eval() local 143 num_tokens.data.i32[i] + 2; /* num_tokens + start and end token. */ in Eval()
|
D | token_encoder_test.cc | 34 void SetNumTokens(const std::initializer_list<int>& num_tokens) { in SetNumTokens() argument 35 PopulateTensor(input_num_tokens_, num_tokens); in SetNumTokens() 36 PopulateTensor(input_length_, {static_cast<int32_t>(num_tokens.size())}); in SetNumTokens()
|
/external/u-boot/drivers/i2c/ |
D | meson_i2c.c | 52 uint num_tokens; /* Number of tokens to be written */ member 59 i2c->num_tokens = 0; in meson_i2c_reset_tokens() 64 if (i2c->num_tokens < 8) in meson_i2c_add_token() 65 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token() 67 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token() 69 i2c->num_tokens++; in meson_i2c_add_token()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_shader_cache.c | 49 struct gl_program *prog, unsigned num_tokens) in write_tgsi_to_cache() argument 51 blob_write_uint32(blob, num_tokens); in write_tgsi_to_cache() 52 blob_write_bytes(blob, tokens, num_tokens * sizeof(struct tgsi_token)); in write_tgsi_to_cache() 146 unsigned *num_tokens) in read_tgsi_from_cache() argument 148 *num_tokens = blob_read_uint32(blob_reader); in read_tgsi_from_cache() 149 unsigned tokens_size = *num_tokens * sizeof(struct tgsi_token); in read_tgsi_from_cache()
|
/external/tensorflow/tensorflow/contrib/gan/python/features/python/ |
D | conditioning_utils_impl.py | 81 num_tokens = one_hot.shape[1] 84 'embedding', [num_tokens, embedding_size])
|
/external/autotest/client/site_tests/platform_Pkcs11Events/ |
D | platform_Pkcs11Events.py | 13 def run_once(self, num_tokens, num_events): argument 15 token_list = ['/tmp/chaps%d' % x for x in range(num_tokens)]
|
D | control | 19 job.run_test('platform_Pkcs11Events', num_tokens=2, num_events=20)
|
D | control.regression | 19 job.run_test('platform_Pkcs11Events', num_tokens=7, num_events=200)
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.train.-sync-replicas-optimizer.pbtxt | 37 argspec: "args=[\'self\', \'num_tokens\'], varargs=None, keywords=None, defaults=[\'-1\'], " 53 …argspec: "args=[\'self\', \'is_chief\', \'num_tokens\'], varargs=None, keywords=None, defaults=[\'…
|
/external/libtextclassifier/annotator/ |
D | cached-features_test.cc | 40 std::unique_ptr<std::vector<float>> MakeFeatures(int num_tokens) { in MakeFeatures() argument 42 for (int i = 1; i <= num_tokens; ++i) { in MakeFeatures()
|
D | annotator.h | 399 bool ModelChunk(int num_tokens, const TokenSpan& span_of_interest, 408 int num_tokens, const TokenSpan& span_of_interest, 417 int num_tokens, const TokenSpan& span_of_interest,
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_text.h | 43 uint num_tokens );
|
D | tgsi_parse.c | 290 tgsi_alloc_tokens(unsigned num_tokens) in tgsi_alloc_tokens() argument 292 unsigned bytes = num_tokens * sizeof(struct tgsi_token); in tgsi_alloc_tokens()
|
D | tgsi_parse.h | 151 tgsi_alloc_tokens(unsigned num_tokens);
|
/external/virglrenderer/src/gallium/auxiliary/tgsi/ |
D | tgsi_text.h | 43 uint num_tokens );
|
D | tgsi_parse.c | 292 tgsi_alloc_tokens(unsigned num_tokens) in tgsi_alloc_tokens() argument 294 unsigned bytes = num_tokens * sizeof(struct tgsi_token); in tgsi_alloc_tokens()
|
D | tgsi_dump.c | 239 unsigned num_tokens, in dump_imm_data() argument 247 assert( num_tokens <= 4 ); in dump_imm_data() 248 for (i = 0; i < num_tokens; i++) { in dump_imm_data() 273 if (i < num_tokens - 1) in dump_imm_data()
|
D | tgsi_parse.h | 151 tgsi_alloc_tokens(unsigned num_tokens);
|
/external/virglrenderer/tests/ |
D | testvirgl_encode.c | 195 uint32_t num_tokens) in virgl_emit_shader_header() argument 201 virgl_encoder_write_dword(ctx->cbuf, num_tokens); in virgl_emit_shader_header() 241 int num_tokens; in virgl_encode_shader_state() local 247 num_tokens = tgsi_num_tokens(shader->tokens); in virgl_encode_shader_state() 259 num_tokens = 300; in virgl_encode_shader_state() 287 virgl_emit_shader_header(ctx, handle, len, type, offlen, num_tokens); in virgl_encode_shader_state()
|