Home
last modified time | relevance | path

Searched refs:nvals (Results 1 – 25 of 33) sorted by relevance

12

/external/tensorflow/tensorflow/python/ops/ragged/
Drow_partition.py403 nvals, argument
429 nvals = math_ops.cast(nvals, row_starts.dtype)
436 check_ops.assert_less_equal(row_starts[-1:], nvals, message=msg),
440 row_splits = array_ops.concat([row_starts, [nvals]], axis=0)
485 nvals, argument
533 nrows = nvals // rowlen_or_1
537 nrows = nvals // const_row_length
541 const_nvals = tensor_util.constant_value(nvals)
557 nrows * uniform_row_length, nvals,
559 nrows, "must equal nvals", nvals)))
[all …]
Drow_partition_test.py55 rt4 = RowPartition.from_row_starts(row_starts=[0, 4, 4, 7, 8], nvals=8)
208 nvals = constant_op.constant(7)
211 rp = RowPartition.from_row_starts(row_starts, nvals, validate=False)
250 nvals = 16
252 nvals=nvals, uniform_row_length=2)
258 nvals=0, uniform_row_length=0, nrows=10)
259 self.assertEqual(self.evaluate(a.nvals()), 0)
263 nvals = array_ops.placeholder_with_default(
266 nvals=nvals, uniform_row_length=3)
267 const_nvals1 = self.evaluate(rt1.nvals())
[all …]
Dragged_tensor.py331 nvals = _nrows(values, row_partition.dtype)
334 row_partition.nvals(out_type=row_partition.dtype),
335 nvals,
530 nvals=_nrows(values),
638 nvals = _nvals_uniform_row_length(values, uniform_row_length)
641 nvals=nvals,
2871 nvals = constant_op.constant(const_nvals, uniform_row_length.dtype)
2873 nvals = values.nrows(out_type=uniform_row_length.dtype)
2875 nvals = array_ops.shape(values, out_type=uniform_row_length.dtype)[0]
2876 return nvals
/external/tensorflow/tensorflow/python/ops/structured/
Dstructured_array_ops.py144 nvals = st.nrows()
146 nvals, nvals, nrows=1, validate=False)
149 nvals = (
150 st.row_partitions[axis - 2].nvals() if (axis - 2 >= 0) else st.nrows())
152 1, nvals, nrows=nvals, validate=False),)
154 nvals = (
157 1, nvals, nrows=nvals, validate=False),) + st.row_partitions[axis - 1:]
Dstructured_tensor.py1290 nvals=shape_cumprod[i + 1],
1314 nvals = len(values[0])
1315 assert all(nvals == len(values[i]) for i in range(1, len(values)))
1532 nrows = value.row_partitions[-1].nvals()
/external/tensorflow/tensorflow/core/ops/
Dcount_ops.cc36 auto nvals = c->UnknownDim(); in DenseCountSparseOutputShapeFn() local
37 c->set_output(0, c->Matrix(nvals, rank)); // out.indices in DenseCountSparseOutputShapeFn()
38 c->set_output(1, c->Vector(nvals)); // out.values in DenseCountSparseOutputShapeFn()
45 auto nvals = c->UnknownDim(); in SparseCountSparseOutputShapeFn() local
46 c->set_output(0, c->Matrix(nvals, rank)); // out.indices in SparseCountSparseOutputShapeFn()
47 c->set_output(1, c->Vector(nvals)); // out.values in SparseCountSparseOutputShapeFn()
57 auto nvals = c->UnknownDim(); in RaggedCountSparseOutputShapeFn() local
58 c->set_output(0, c->Matrix(nvals, rank)); // out.indices in RaggedCountSparseOutputShapeFn()
59 c->set_output(1, c->Vector(nvals)); // out.values in RaggedCountSparseOutputShapeFn()
/external/flac/src/libFLAC/
Dbitreader.c554 FLAC__bool FLAC__bitreader_skip_byte_block_aligned_no_crc(FLAC__BitReader *br, uint32_t nvals) in FLAC__bitreader_skip_byte_block_aligned_no_crc() argument
563 …while(nvals && br->consumed_bits) { /* i.e. run until we read 'nvals' bytes or we hit the end of t… in FLAC__bitreader_skip_byte_block_aligned_no_crc()
566 nvals--; in FLAC__bitreader_skip_byte_block_aligned_no_crc()
568 if(0 == nvals) in FLAC__bitreader_skip_byte_block_aligned_no_crc()
571 while(nvals >= FLAC__BYTES_PER_WORD) { in FLAC__bitreader_skip_byte_block_aligned_no_crc()
574 nvals -= FLAC__BYTES_PER_WORD; in FLAC__bitreader_skip_byte_block_aligned_no_crc()
580 while(nvals) { in FLAC__bitreader_skip_byte_block_aligned_no_crc()
583 nvals--; in FLAC__bitreader_skip_byte_block_aligned_no_crc()
589 …LAC__bitreader_read_byte_block_aligned_no_crc(FLAC__BitReader *br, FLAC__byte *val, uint32_t nvals) in FLAC__bitreader_read_byte_block_aligned_no_crc() argument
598 …while(nvals && br->consumed_bits) { /* i.e. run until we read 'nvals' bytes or we hit the end of t… in FLAC__bitreader_read_byte_block_aligned_no_crc()
[all …]
Dbitwriter.c409 …bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], uint32_t nvals) in FLAC__bitwriter_write_byte_block() argument
414 …if(bw->capacity <= bw->words + nvals / (FLAC__BITS_PER_WORD / 8) + 1 && !bitwriter_grow_(bw, nvals in FLAC__bitwriter_write_byte_block()
418 for(i = 0; i < nvals; i++) { in FLAC__bitwriter_write_byte_block()
542 …_rice_signed_block(FLAC__BitWriter *bw, const FLAC__int32 *vals, uint32_t nvals, uint32_t paramete… in FLAC__bitwriter_write_rice_signed_block() argument
557 while(nvals) { in FLAC__bitwriter_write_rice_signed_block()
631 nvals--; in FLAC__bitwriter_write_rice_signed_block()
885 …ool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], uint32_t nvals);
/external/iptables/libxtables/
Dxtoptions.c242 if (cb->nvals >= ARRAY_SIZE(cb->val.u32_range)) in xtopt_mint_value_to_cb()
245 cb->val.u8_range[cb->nvals] = value; in xtopt_mint_value_to_cb()
247 cb->val.u16_range[cb->nvals] = value; in xtopt_mint_value_to_cb()
249 cb->val.u32_range[cb->nvals] = value; in xtopt_mint_value_to_cb()
251 cb->val.u64_range[cb->nvals] = value; in xtopt_mint_value_to_cb()
305 cb->nvals = 0; in xtopt_parse_mint()
307 if (cb->nvals == maxiter) in xtopt_parse_mint()
314 value = (cb->nvals == 1) ? lmax : 0; in xtopt_parse_mint()
328 ++cb->nvals; in xtopt_parse_mint()
620 cb->nvals = 0; in xtopt_parse_mport()
[all …]
/external/flac/src/libFLAC/include/private/
Dbitreader.h80 FLAC__bool FLAC__bitreader_skip_byte_block_aligned_no_crc(FLAC__BitReader *br, uint32_t nvals); /* …
81 …_byte_block_aligned_no_crc(FLAC__BitReader *br, FLAC__byte *val, uint32_t nvals); /* WATCHOUT: doe…
84 FLAC__bool FLAC__bitreader_read_rice_signed_block(FLAC__BitReader *br, int vals[], uint32_t nvals, …
Dbitwriter.h87 …ool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], uint32_t nvals);
95 …_rice_signed_block(FLAC__BitWriter *bw, const FLAC__int32 *vals, uint32_t nvals, uint32_t paramete…
/external/tensorflow/tensorflow/core/kernels/
Dragged_tensor_to_sparse_kernel.cc63 const int64 nvals = in Compute() local
69 context, context->allocate_output(0, TensorShape({nvals, indices_len}), in Compute()
118 DCHECK_EQ(next_index, nvals); in Compute()
Dragged_tensor_to_tensor_op.cc370 int nvals = context->input(kValueInputIndex).shape().dim_size(0); in Compute() local
371 output_index.reserve(nvals); in Compute()
372 new_output_index.reserve(nvals); in Compute()
508 INDEX_TYPE nvals = (dst_end - dst_start) * value_element_size; in SetOutput() local
509 copy_array<VALUE_TYPE, INDEX_TYPE>(dst, src, nvals); in SetOutput()
Dragged_range_op.cc84 SPLITS_TYPE nvals = rt_nested_splits(nrows); in Compute() local
88 OP_REQUIRES_OK(context, context->allocate_output(1, TensorShape({nvals}), in Compute()
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/ragged/
Dragged_tensor_to_tensor_tflite.cc494 int nvals = (dst_end - dst_start) * value_element_size; in SetOutputT() local
495 std::copy(src, src + nvals, dst); in SetOutputT()
656 int nvals = input_values.dims->data[0]; in Eval() local
657 output_index.reserve(nvals); in Eval()
658 new_output_index.reserve(nvals); in Eval()
Dragged_range_tflite.cc112 const SPLITS_TYPE nvals = rt_nested_splits[nrows]; in EvalT() local
118 IntArrayFromInt(nvals))); in EvalT()
/external/llvm/bindings/go/llvm/
Dir.go750 ptr, nvals := llvmMetadataRefs(mds)
751 md.C = C.LLVMMDNode2(c.C, ptr, nvals)
755 ptr, nvals := llvmMetadataRefs(mds)
756 md.C = C.LLVMTemporaryMDNode(c.C, ptr, nvals)
800 ptr, nvals := llvmValueRefs(constVals)
801 v.C = C.LLVMConstStructInContext(c.C, ptr, nvals,
806 ptr, nvals := llvmValueRefs(constVals)
807 v.C = C.LLVMConstNamedStruct(t.C, ptr, nvals)
818 ptr, nvals := llvmValueRefs(constVals)
819 v.C = C.LLVMConstArray(t.C, ptr, nvals)
[all …]
/external/iptables/extensions/
Dlibxt_NFQUEUE.c92 if (cb->nvals != 2) in NFQUEUE_parse_v1()
112 if (cb->nvals != 2) in NFQUEUE_parse_v2()
136 if (cb->nvals != 2) in NFQUEUE_parse_v3()
Dlibxt_tcpmss.c30 if (cb->nvals == 2) { in tcpmss_parse()
Dlibxt_length.c30 if (cb->nvals >= 2) in length_parse()
Dlibxt_esp.c36 if (cb->nvals == 1) in esp_parse()
Dlibxt_ipcomp.c34 if (cb->nvals == 1) in comp_parse()
Dlibxt_conntrack.c392 if (cb->nvals >= 2) in conntrack_parse()
460 if (cb->nvals >= 2) in conntrack_mt_parse()
468 info->origsrc_port_high = cb->val.port_range[cb->nvals >= 2]; in conntrack_mt_parse()
475 info->origdst_port_high = cb->val.port_range[cb->nvals >= 2]; in conntrack_mt_parse()
482 info->replsrc_port_high = cb->val.port_range[cb->nvals >= 2]; in conntrack_mt_parse()
489 info->repldst_port_high = cb->val.port_range[cb->nvals >= 2]; in conntrack_mt_parse()
Dlibip6t_ah.c46 if (cb->nvals == 1) in ah_parse()
/external/llvm-project/llvm/bindings/go/llvm/
Dir.go821 ptr, nvals := llvmMetadataRefs(mds)
822 md.C = C.LLVMMDNode2(c.C, ptr, nvals)
866 ptr, nvals := llvmValueRefs(constVals)
867 v.C = C.LLVMConstStructInContext(c.C, ptr, nvals,
872 ptr, nvals := llvmValueRefs(constVals)
873 v.C = C.LLVMConstNamedStruct(t.C, ptr, nvals)
884 ptr, nvals := llvmValueRefs(constVals)
885 v.C = C.LLVMConstArray(t.C, ptr, nvals)
889 ptr, nvals := llvmValueRefs(constVals)
890 v.C = C.LLVMConstStruct(ptr, nvals, boolToLLVMBool(packed))
[all …]

12