Home
last modified time | relevance | path

Searched full:zeros (Results 1 – 25 of 5439) sorted by relevance

12345678910>>...218

/external/pytorch/test/jit/
Dtest_batch_mm.py100 T1 = torch.zeros((n, n))
101 T2 = torch.zeros((n, n))
102 T3 = torch.zeros((n, n))
103 T4 = torch.zeros((n, n))
104 T5 = torch.zeros((n, n))
105 T6 = torch.zeros((n, n))
106 T7 = torch.zeros((n, n))
107 T8 = torch.zeros((n, n))
126 T1 = torch.zeros((n, n))
127 T2 = torch.zeros((n, n))
[all …]
/external/webrtc/common_audio/signal_processing/include/
Dspl_inl_mips.h130 int zeros = 0; in WebRtcSpl_NormW32() local
136 " sra %[zeros], %[a], 31 \n\t" in WebRtcSpl_NormW32()
138 " move %[zeros], $zero \n\t" in WebRtcSpl_NormW32()
140 "xor %[zeros], %[a], %[zeros] \n\t" in WebRtcSpl_NormW32()
141 "clz %[zeros], %[zeros] \n\t" in WebRtcSpl_NormW32()
142 "addiu %[zeros], %[zeros], -1 \n\t" in WebRtcSpl_NormW32()
145 : [zeros] "=&r"(zeros) in WebRtcSpl_NormW32()
148 return (int16_t)zeros; in WebRtcSpl_NormW32()
152 int zeros = 0; in WebRtcSpl_NormU32() local
154 __asm __volatile("clz %[zeros], %[a] \n\t" in WebRtcSpl_NormU32()
[all …]
/external/webrtc/modules/audio_processing/
Dresidual_echo_detector_unittest.cc24 std::vector<float> zeros(160, 0.f); in TEST() local
32 echo_detector->AnalyzeCaptureAudio(zeros); in TEST()
34 echo_detector->AnalyzeRenderAudio(zeros); in TEST()
37 echo_detector->AnalyzeRenderAudio(zeros); in TEST()
38 echo_detector->AnalyzeCaptureAudio(zeros); in TEST()
51 std::vector<float> zeros(160, 0.f); in TEST() local
59 echo_detector->AnalyzeRenderAudio(zeros); in TEST()
61 echo_detector->AnalyzeCaptureAudio(zeros); in TEST()
73 std::vector<float> zeros(160, 0.f); in TEST() local
82 echo_detector->AnalyzeCaptureAudio(zeros); in TEST()
[all …]
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_cipher.padding.data140 Check one and zeros padding #1 (correct)
144 Check one and zeros padding #2 (correct)
148 Check one and zeros padding #3 (correct)
152 Check one and zeros padding #4 (correct)
156 Check one and zeros padding #5 (correct)
160 Check one and zeros padding #6 (missing one)
164 Check one and zeros padding #7 (overlong)
168 Check one and zeros padding #8 (last byte 0x80 | x)
172 Check zeros and len padding #1 (correct)
176 Check zeros and len padding #2 (correct)
[all …]
Dtest_suite_cipher.des.data73 DES Encrypt and decrypt 0 bytes with one and zeros padding
77 DES Encrypt and decrypt 1 byte with one and zeros padding
81 DES Encrypt and decrypt 2 bytes with one and zeros padding
85 DES Encrypt and decrypt 7 bytes with one and zeros padding
89 DES Encrypt and decrypt 8 bytes with one and zeros padding
93 DES Encrypt and decrypt 9 bytes with one and zeros padding
97 DES Encrypt and decrypt 15 bytes with one and zeros padding
101 DES Encrypt and decrypt 16 bytes with one and zeros padding
105 DES Encrypt and decrypt 17 bytes with one and zeros padding
109 DES Encrypt and decrypt 31 bytes with one and zeros padding
[all …]
/external/mbedtls/tests/suites/
Dtest_suite_cipher.padding.data140 Check one and zeros padding #1 (correct)
144 Check one and zeros padding #2 (correct)
148 Check one and zeros padding #3 (correct)
152 Check one and zeros padding #4 (correct)
156 Check one and zeros padding #5 (correct)
160 Check one and zeros padding #6 (missing one)
164 Check one and zeros padding #7 (overlong)
168 Check one and zeros padding #8 (last byte 0x80 | x)
172 Check zeros and len padding #1 (correct)
176 Check zeros and len padding #2 (correct)
[all …]
Dtest_suite_cipher.des.data73 DES Encrypt and decrypt 0 bytes with one and zeros padding
77 DES Encrypt and decrypt 1 byte with one and zeros padding
81 DES Encrypt and decrypt 2 bytes with one and zeros padding
85 DES Encrypt and decrypt 7 bytes with one and zeros padding
89 DES Encrypt and decrypt 8 bytes with one and zeros padding
93 DES Encrypt and decrypt 9 bytes with one and zeros padding
97 DES Encrypt and decrypt 15 bytes with one and zeros padding
101 DES Encrypt and decrypt 16 bytes with one and zeros padding
105 DES Encrypt and decrypt 17 bytes with one and zeros padding
109 DES Encrypt and decrypt 31 bytes with one and zeros padding
[all …]
/external/pytorch/test/distributed/_tensor/
Dtest_init.py5 from torch.distributed._tensor import DeviceMesh, DTensor, Replicate, Shard, zeros
126 torch.zeros,
127 torch.distributed._tensor.zeros,
138 dist_tensor = zeros(size, device_mesh=mesh, placements=placements)
143 local_tensor = torch.zeros(8, 3)
150 dist_tensor = zeros(size, device_mesh=mesh, placements=placements)
155 self.assertEqual(torch.zeros(8, 3), local_tensor)
158 self.assertEqual(torch.zeros(7, 3), local_tensor)
164 dist_tensor = zeros(size, device_mesh=mesh, placements=placements)
169 self.assertEqual(local_tensor, torch.zeros([16, 4]))
[all …]
/external/libchrome/ui/gfx/geometry/
Dmatrix3_unittest.cc15 Matrix3F zeros = Matrix3F::Zeros(); in TEST() local
24 EXPECT_EQ(zeros, product_zeros); in TEST()
52 EXPECT_EQ(0.0f, Matrix3F::Zeros().Determinant()); in TEST()
56 Matrix3F matrix = Matrix3F::Zeros(); in TEST()
75 Matrix3F singular = Matrix3F::Zeros(); in TEST()
80 EXPECT_EQ(Matrix3F::Zeros(), singular.Inverse()); in TEST()
82 Matrix3F regular = Matrix3F::Zeros(); in TEST()
94 Matrix3F matrix = Matrix3F::Zeros(); in TEST()
116 Matrix3F matrix = Matrix3F::Zeros(); in TEST()
120 Matrix3F eigenvectors = Matrix3F::Zeros(); in TEST()
[all …]
/external/executorch/kernels/quantized/test/
Dop_add_test.cpp36 /// zeros().
50 Tensor qinput1 = tfo.zeros({3, 5}); in test_dtype()
51 Tensor qinput2 = tfo.zeros({3, 5}); in test_dtype()
52 Tensor qoutput = tfo.zeros({3, 5}); in test_dtype()
118 Tensor qinput1 = tfo.zeros({3, 5}); in TEST()
119 Tensor qinput2 = tfo.zeros({3, 5}); in TEST()
120 Tensor qoutput = tfo.zeros({3, 5}); in TEST()
171 Tensor dq_input1 = tf.zeros({3, 5}); in TEST()
172 Tensor dq_input2 = tf.zeros({3, 5}); in TEST()
173 Tensor reference_op_output = tf.zeros({3, 5}); in TEST()
[all …]
/external/executorch/kernels/test/
Dop_min_test.cpp44 Tensor min = tf_in.zeros({2, 3, 2}); in test_min_out_invalid_dimensions()
45 Tensor min_indices = tf_in.zeros({2, 3}); in test_min_out_invalid_dimensions()
53 min = tf_in.zeros({2, 3, 2}); in test_min_out_invalid_dimensions()
54 min_indices = tf_in.zeros({2, 3, 2}); in test_min_out_invalid_dimensions()
60 min = tf_in.zeros({2, 3, 1}); in test_min_out_invalid_dimensions()
61 min_indices = tf_in.zeros({2, 3, 1}); in test_min_out_invalid_dimensions()
67 min = tf_in.zeros({2, 3, 1}); in test_min_out_invalid_dimensions()
68 min_indices = tf_in.zeros({2, 3, 1}); in test_min_out_invalid_dimensions()
100 Tensor min = tf.zeros(out_shape, dynamism); in test_dynamic_shape()
101 Tensor min_indices = tfl.zeros(out_shape, dynamism); in test_dynamic_shape()
[all …]
Dop_max_test.cpp44 Tensor max = tf_in.zeros({2, 3, 2}); in test_max_out_invalid_dimensions()
45 Tensor max_indices = tf_in.zeros({2, 3}); in test_max_out_invalid_dimensions()
53 max = tf_in.zeros({2, 3, 2}); in test_max_out_invalid_dimensions()
54 max_indices = tf_in.zeros({2, 3, 2}); in test_max_out_invalid_dimensions()
60 max = tf_in.zeros({2, 3, 1}); in test_max_out_invalid_dimensions()
61 max_indices = tf_in.zeros({2, 3, 1}); in test_max_out_invalid_dimensions()
67 max = tf_in.zeros({2, 3, 1}); in test_max_out_invalid_dimensions()
68 max_indices = tf_in.zeros({2, 3, 1}); in test_max_out_invalid_dimensions()
104 Tensor max = tf.zeros(out_shape, dynamism); in test_dynamic_shape()
105 Tensor max_indices = tfl.zeros(out_shape, dynamism); in test_dynamic_shape()
[all …]
Dop_scatter_test.cpp51 Tensor in = tf_data.zeros(sizes); in test_scatter_src_out()
52 Tensor out = tf_data.zeros(sizes); in test_scatter_src_out()
101 out = tf_data.zeros(/*sizes=*/{2, 3, 3}); in test_scatter_src_out()
131 out = tf_data.zeros(/*sizes=*/{2, 3, 3}); in test_scatter_src_out()
170 Tensor self = tf_data.zeros(sizes); in test_scatter_src_out_invalid_dim()
171 Tensor out = tf_data.zeros(sizes); in test_scatter_src_out_invalid_dim()
180 src = tf_data.zeros(/*sizes=*/{2, 2, 2}); in test_scatter_src_out_invalid_dim()
184 src = tf_data.zeros(/*sizes=*/{5, 5}); in test_scatter_src_out_invalid_dim()
185 index = tf_index.zeros(/*sizes=*/{2, 2, 2}); in test_scatter_src_out_invalid_dim()
191 index = tf_index.zeros(/*sizes=*/{4, 6}); in test_scatter_src_out_invalid_dim()
[all …]
Dop_arange_test.cpp42 Tensor out = tf.zeros({10}); in test_arange_dtype()
74 Tensor out = tf.zeros({10}); in test_arange_start_dtype()
88 /// A generic smoke test that works for any dtype that supports zeros().
103 Tensor out = tf.zeros({6}); in TEST_F()
124 Tensor out = tf.zeros({5, 1}); in TEST_F()
136 tf.zeros({5}, torch::executor::TensorShapeDynamism::DYNAMIC_BOUND); in TEST_F()
147 tf.zeros({10}, torch::executor::TensorShapeDynamism::DYNAMIC_BOUND); in TEST_F()
161 tf.zeros({1}, torch::executor::TensorShapeDynamism::DYNAMIC_UNBOUND); in TEST_F()
166 /// A generic smoke test that works for any dtype that supports zeros().
185 Tensor out = tf.zeros({6}); in TEST_F()
[all …]
Dop_fill_test.cpp41 Tensor self = tf.zeros(sizes); in test_fill_scalar_out()
42 Tensor out = tf.zeros(sizes); in test_fill_scalar_out()
65 Tensor self = tf.zeros(sizes); in test_fill_tensor_out()
66 Tensor out = tf.zeros(sizes); in test_fill_tensor_out()
109 Tensor self = tf.zeros({1});
110 Tensor out = tf.zeros({1});
115 Tensor other1 = tf.zeros({1});
119 Tensor other2 = tf.zeros({2});
123 Tensor other3 = tf.zeros({3, 3});
142 Tensor self = tf.zeros({1}); in TEST_F()
[all …]
Dop_glu_test.cpp42 Tensor out = tf_out.zeros(out_sizes_1); in test_glu_out()
49 out = tf_out.zeros(out_sizes_2); in test_glu_out()
63 Tensor in = tf_in.zeros(/*sizes=*/{4, 4, 4}); in test_glu_out_mismatched_shape()
64 Tensor out = tf_in.zeros(/*sizes=*/{2, 4, 2}); in test_glu_out_mismatched_shape()
68 out = tf_in.zeros(/*sizes=*/{4, 4, 4}); in test_glu_out_mismatched_shape()
76 Tensor in = tf_in.zeros(/*sizes=*/{2, 2}); in test_glu_out_invalid_dim()
78 Tensor out = tf_in.zeros(out_sizes); in test_glu_out_invalid_dim()
84 in = tf_in.zeros(/*sizes=*/{3, 2}); in test_glu_out_invalid_dim()
97 Tensor out = tf_float.zeros(out_sizes); in test_div_invalid_input_dtype_dies()
111 Tensor out = tf_out.zeros(out_sizes); in test_div_invalid_output_dtype_dies()
[all …]
/external/webrtc/modules/audio_processing/agc/legacy/
Ddigital_agc.cc24 // zeros = 0:31; lvl = 2.^(1-zeros);
86 int zeros, zerosScale; in WebRtcAgc_CalculateGainTable() local
162 zeros = WebRtcSpl_NormU32(absInLevel); in WebRtcAgc_CalculateGainTable()
164 if (zeros < 15) { in WebRtcAgc_CalculateGainTable()
166 tmpU32no2 = absInLevel >> (15 - zeros); // Q(zeros-1) in WebRtcAgc_CalculateGainTable()
167 tmpU32no2 = WEBRTC_SPL_UMUL_32_16(tmpU32no2, kLogE_1); // Q(zeros+13) in WebRtcAgc_CalculateGainTable()
168 if (zeros < 9) { in WebRtcAgc_CalculateGainTable()
169 zerosScale = 9 - zeros; in WebRtcAgc_CalculateGainTable()
170 tmpU32no1 >>= zerosScale; // Q(zeros+13) in WebRtcAgc_CalculateGainTable()
172 tmpU32no2 >>= zeros - 9; // Q22 in WebRtcAgc_CalculateGainTable()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dftrl_ops_test.py76 var=np.zeros((1, 3, 2)),
78 linear=np.zeros((1, 3, 2)),
89 grad=np.zeros((1, 3, 2)), # make accum_new == acum
98 linear=np.zeros((1, 3, 2)),
108 linear=np.zeros((1, 3, 2)),
118 linear=np.zeros((1, 3, 2)),
128 linear=np.zeros((1, 3, 2)),
131 self.assertAllClose(np.zeros((1, 3, 2)), var)
138 linear=np.zeros((1, 3, 2)),
147 accum=np.zeros((1, 3, 2)),
[all …]
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/
DZerosTest.java43 Zeros<Integer> op = Zeros.create(scope, Constant.create(scope, shape), Integer.class); in createIntZeros()
61 Zeros<Float> op = Zeros.create(scope, Constant.create(scope, shape), Float.class); in createFloatZeros()
79 Zeros<Double> op = Zeros.create(scope, Constant.create(scope, shape), Double.class); in createDoubleZeros()
97 Zeros<Long> op = Zeros.create(scope, Constant.create(scope, shape), Long.class); in createLongZeros()
115 Zeros<Boolean> op = Zeros.create(scope, Constant.create(scope, shape), Boolean.class); in createBooleanZeros()
133 Zeros<UInt8> op = Zeros.create(scope, Constant.create(scope, shape), UInt8.class); in createUInt8Zeros()
152 Zeros.create(scope, Constant.create(scope, shape), String.class); in cannotCreateStringZeros()
163Zeros<Float> zeros = Zeros.create(scope.withSubScope("test"), Constant.create(scope, shape), Float… in operationsComposingZerosAreCorrectlyNamed() local
164 …List<Tensor<?>> results = sess.runner().addTarget("test/Zeros/Zero").addTarget("test/Zeros/Fill").… in operationsComposingZerosAreCorrectlyNamed()
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/op/core/
DZeros.java27 * An operator creating a constant initialized with zeros of the shape given by `dims`.
30 * <pre>{@code ops.zeros(ops.constant(new long[]{2, 2}), Float.class)}</pre>
37 public class Zeros<T> implements Op, Operand<T> { class
45 * @return a constant tensor initialized with zeros
46 * @throws IllegalArgumentException if the tensor type or shape cannot be initialized with zeros.
48 public static <T, U extends Number> Zeros<T> create(Scope scope, Operand<U> dims, Class<T> type) { in create()
49 …Scope childScope = scope.withSubScope("Zeros"); // If scope had an op name set, it will prevail on… in create()
52 …w new IllegalArgumentException(type.getSimpleName() + " tensors cannot be initialized with zeros"); in create()
55 return new Zeros<T>(Fill.create(childScope, dims, zero)); in create()
65 private Zeros(Fill<T> fill) { in Zeros() method in Zeros
/external/executorch/extension/llm/custom_ops/
Dop_sdpa_with_kv_cache_test.cpp139 exec_aten::Tensor key_cache_0 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
140 exec_aten::Tensor value_cache_0 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
141 exec_aten::Tensor key_cache_1 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
142 exec_aten::Tensor value_cache_1 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
143 exec_aten::Tensor key_cache_2 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
144 exec_aten::Tensor value_cache_2 = tfFloat.zeros({1, 5, 4, 4}); in TEST()
171 exec_aten::Tensor out = tfFloat.zeros(out_size); in TEST()
206 out = tfFloat.zeros(out_size); in TEST()
241 out = tfFloat.zeros(out_size); in TEST()
276 out = tfFloat.zeros(out_size); in TEST()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dslicing_test.py45 array_ops.zeros([1, 1, event_dim]),
53 array_ops.zeros([7, 6, 5, 4, 3]),
61 array_ops.zeros([7, 6, 5, 4, 3]),
69 array_ops.zeros([7, 1, 5, 4, 3]),
77 array_ops.zeros([7, 6, 5, 4, 3]),
85 array_ops.zeros([7, 6, 5, 4, 3]),
93 array_ops.zeros([7, 6, 5, 4, 3]),
101 array_ops.zeros([7, 1, 5, 4, 3]),
109 array_ops.zeros([7, 6, 5, 4, 3]),
117 array_ops.zeros([7, 1, 5, 4, 3]),
[all …]
/external/pytorch/test/jit/xnnpack/
Dtest_xnnpack_delegate.py52 "inputs": [torch.zeros(1)],
53 "outputs": [torch.zeros(1)],
70 "inputs": [torch.zeros(1), torch.zeros(1)],
71 "outputs": [torch.zeros(1)],
91 "inputs": [torch.zeros(1)],
92 "outputs": [torch.zeros(1)],
96 lowered(torch.zeros(1))
108 sample_output = torch.zeros(1, 512, 512, 3)
136 sample_output = torch.zeros(5, 3, 4, 1)
164 sample_output = torch.zeros(1, 512, 512, 3)
/external/executorch/kernels/portable/cpu/util/test/
Dbroadcast_test.cpp37 Tensor c = tf.zeros({2, 2}); in TEST()
52 tf.zeros({1, 2}), tf.zeros({2, 1}), tf.zeros({1}), tf.zeros({2, 2})}; in TEST()
67 Tensor c = tf.zeros({2, 2}); in TEST()
90 Tensor b = tf.zeros({2, 1}); in TEST()
91 Tensor c = tf.zeros({1, 2}); in TEST()
107 Tensor b = tf.zeros({2, 1}); in TEST()
118 Tensor a = tf.zeros({2, 1}); in TEST()
119 Tensor b = tf.zeros({5, 1, 2}); in TEST()
148 Tensor t = tf.zeros({4, 3, 5}); in TEST()
169 Tensor broadcast_from = tf.zeros({2, 1, 3, 1}); in TEST()
[all …]
/external/pytorch/test/distributed/
Dtest_nccl.py63 expected = torch.zeros(128).uniform_().to(dtype=dtype)
66 tensors.append(torch.zeros(128, dtype=dtype, device=device))
75 tensors.append(torch.zeros(128, dtype=dtype, device=device))
89 torch.zeros(128).uniform_().to(dtype=dtype) for i in range(nGPUs)
91 expected = torch.zeros(128, dtype=dtype)
115 torch.zeros(128).uniform_().to(dtype=dtype) for i in range(nGPUs)
117 expected = torch.zeros(128, dtype=dtype)
179 cpu_inputs = [torch.zeros(128).uniform_().to(dtype=dtype) for i in range(nGPUs)]
184 torch.zeros(128 * nGPUs, device=i, dtype=dtype) for i in range(nGPUs)
194 torch.zeros(128 * nGPUs, device=i, dtype=dtype) for i in range(nGPUs)
[all …]

12345678910>>...218