Home
last modified time | relevance | path

Searched refs:num_tokens (Results 1 – 25 of 27) sorted by relevance

12

/external/jsmn/
Djsmn.c9 jsmntok_t *tokens, size_t num_tokens) { in jsmn_alloc_token() argument
11 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
38 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_primitive() argument
70 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive()
87 size_t len, jsmntok_t *tokens, size_t num_tokens) { in jsmn_parse_string() argument
103 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string()
154 jsmntok_t *tokens, unsigned int num_tokens) { in jsmn_parse() argument
171 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse()
231 r = jsmn_parse_string(parser, js, len, tokens, num_tokens); in jsmn_parse()
248 r = jsmn_parse_primitive(parser, js, len, tokens, num_tokens); in jsmn_parse()
Djsmn_test.c450 int i, r, num_tokens; in test_jwk() local
473 num_tokens = jsmn_parse(&p, js, strlen(js), NULL, 0); in test_jwk()
474 printf("num_tokens=%d, len=%lu\n", num_tokens, strlen(js)); in test_jwk()
476 unsigned int tokens_size = num_tokens * sizeof(jsmntok_t); in test_jwk()
479 printf("!!! failed to alloc for %d tokens, size=%u\n", num_tokens, in test_jwk()
485 r = jsmn_parse(&p, js, strlen(js), tokens, num_tokens); in test_jwk()
487 for (i = 0; i < num_tokens; ++i) { in test_jwk()
Djsmn.h67 jsmntok_t *tokens, unsigned int num_tokens);
/external/tensorflow/tensorflow/python/training/
Dsync_replicas_optimizer.py404 def get_init_tokens_op(self, num_tokens=-1): argument
429 if num_tokens == -1:
430 num_tokens = self._replicas_to_aggregate
431 elif num_tokens < tokens_needed:
434 (num_tokens, tokens_needed))
436 if num_tokens > 0:
438 tokens = array_ops.fill([num_tokens], self._global_step)
445 def make_session_run_hook(self, is_chief, num_tokens=-1): argument
447 return _SyncReplicasOptimizerHook(self, is_chief, num_tokens)
453 def __init__(self, sync_optimizer, is_chief, num_tokens): argument
[all …]
Dsync_replicas_optimizer_test.py70 is_chief, num_tokens=num_workers)
/external/tensorflow/tensorflow/contrib/gan/python/features/python/
Dconditioning_utils_impl.py78 num_tokens = one_hot.shape[1]
81 'embedding', [num_tokens, embedding_size])
/external/autotest/client/site_tests/platform_Pkcs11Events/
Dplatform_Pkcs11Events.py13 def run_once(self, num_tokens, num_events): argument
15 token_list = ['/tmp/chaps%d' % x for x in range(num_tokens)]
Dcontrol.regression19 job.run_test('platform_Pkcs11Events', num_tokens=7, num_events=200)
Dcontrol19 job.run_test('platform_Pkcs11Events', num_tokens=2, num_events=20)
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vs.c55 unsigned num_tokens; in get_dummy_vertex_shader() local
66 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_vertex_shader()
267 unsigned num_tokens; in compile_passthrough_vs() local
316 new_vs.base.tokens = ureg_get_tokens(ureg, &num_tokens); in compile_passthrough_vs()
Dsvga_state_fs.c64 unsigned num_tokens; in get_dummy_fragment_shader() local
75 tokens = ureg_get_tokens(ureg, &num_tokens); in get_dummy_fragment_shader()
/external/tensorflow/tensorflow/tools/api/golden/
Dtensorflow.train.-sync-replicas-optimizer.pbtxt38 argspec: "args=[\'self\', \'num_tokens\'], varargs=None, keywords=None, defaults=[\'-1\'], "
54 …argspec: "args=[\'self\', \'is_chief\', \'num_tokens\'], varargs=None, keywords=None, defaults=[\'…
/external/libtextclassifier/
Dcached-features_test.cc40 std::unique_ptr<std::vector<float>> MakeFeatures(int num_tokens) { in MakeFeatures() argument
42 for (int i = 1; i <= num_tokens; ++i) { in MakeFeatures()
Dtext-classifier.h279 bool ModelChunk(int num_tokens, const TokenSpan& span_of_interest,
288 int num_tokens, const TokenSpan& span_of_interest,
297 int num_tokens, const TokenSpan& span_of_interest,
Dtext-classifier.cc1296 bool TextClassifier::ModelChunk(int num_tokens, in ModelChunk() argument
1310 {0, num_tokens}); in ModelChunk()
1318 num_tokens, span_of_interest, inference_span, cached_features, in ModelChunk()
1323 if (!ModelClickContextScoreChunks(num_tokens, span_of_interest, in ModelChunk()
1382 int num_tokens, const TokenSpan& span_of_interest, in ModelClickContextScoreChunks() argument
1436 if (candidate_span.first >= 0 && candidate_span.second <= num_tokens) { in ModelClickContextScoreChunks()
1453 int num_tokens, const TokenSpan& span_of_interest, in ModelBoundsSensitiveScoreChunks() argument
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_text.h43 uint num_tokens );
Dtgsi_parse.c294 tgsi_alloc_tokens(unsigned num_tokens) in tgsi_alloc_tokens() argument
296 unsigned bytes = num_tokens * sizeof(struct tgsi_token); in tgsi_alloc_tokens()
Dtgsi_parse.h152 tgsi_alloc_tokens(unsigned num_tokens);
Dtgsi_dump.c239 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()
287 if (i < num_tokens - 1) in dump_imm_data()
Dtgsi_scan.h45 uint num_tokens; member
Dtgsi_text.c1912 uint num_tokens ) in tgsi_text_translate() argument
1920 ctx.tokens_end = tokens + num_tokens; in tgsi_text_translate()
/external/webp/src/enc/
Dvp8l_enc.c565 const HuffmanTreeToken* const tokens, const int num_tokens, in StoreHuffmanTreeToBitMask() argument
568 for (i = 0; i < num_tokens; ++i) { in StoreHuffmanTreeToBitMask()
594 int num_tokens; in StoreFullHuffmanCode() local
601 num_tokens = VP8LCreateCompressedHuffmanTree(tree, tokens, max_tokens); in StoreFullHuffmanCode()
606 for (i = 0; i < num_tokens; ++i) { in StoreFullHuffmanCode()
617 int trimmed_length = num_tokens; in StoreFullHuffmanCode()
620 int i = num_tokens; in StoreFullHuffmanCode()
636 length = write_trimmed_length ? trimmed_length : num_tokens; in StoreFullHuffmanCode()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c202 uint32_t num_tokens) in virgl_emit_shader_header() argument
208 virgl_encoder_write_dword(ctx->cbuf, num_tokens); in virgl_emit_shader_header()
248 int num_tokens = tgsi_num_tokens(tokens); in virgl_encode_shader_state() local
298 virgl_emit_shader_header(ctx, handle, len, type, offlen, num_tokens); in virgl_encode_shader_state()
/external/tensorflow/tensorflow/contrib/gan/python/
Dtrain_test.py776 g_sync_init_op = g_opt.get_init_tokens_op(num_tokens=1)
777 d_sync_init_op = d_opt.get_init_tokens_op(num_tokens=1)
/external/clang/tools/c-index-test/
Dc-index-test.c3587 unsigned num_tokens; in perform_token_annotation() local
3670 clang_tokenize(TU, range, &tokens, &num_tokens); in perform_token_annotation()
3677 cursors = (CXCursor *)malloc(num_tokens * sizeof(CXCursor)); in perform_token_annotation()
3678 clang_annotateTokens(TU, tokens, num_tokens, cursors); in perform_token_annotation()
3698 for (i = 0; i != num_tokens; ++i) { in perform_token_annotation()
3725 clang_disposeTokens(TU, tokens, num_tokens); in perform_token_annotation()

12