Home
last modified time | relevance | path

Searched +refs:data +refs:shape (Results 1 – 25 of 27666) sorted by relevance

12345678910>>...1107

/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/topi/
H A Dscatter_add.py24 out = output_tensor(data.shape, data.dtype)
25 for i in range(data.shape[0]):
34 out = output_tensor(data.shape, data.dtype)
56 out = output_tensor(data.shape, data.dtype)
100 out = output_tensor(data.shape, data.dtype)
186 axis += len(data.shape)
188 assert axis < len(data.shape)
190 if len(data.shape) == 1:
192 if len(data.shape) == 2:
194 if len(data.shape) == 3:
[all …]
H A Dscatter.py24 out = output_tensor(data.shape, data.dtype)
25 for i in range(data.shape[0]):
34 out = output_tensor(data.shape, data.dtype)
35 for i in range(data.shape[0]):
56 out = output_tensor(data.shape, data.dtype)
100 out = output_tensor(data.shape, data.dtype)
186 axis += len(data.shape)
190 if len(data.shape) == 1:
192 if len(data.shape) == 2:
194 if len(data.shape) == 3:
[all …]
/dports/math/dune-fem/dune-fem-d1c625e6d51167d0cce57de6adcef21f548a8f82/python/dune/ufl/
H A Dtensors.py28 def reformat(fmt, shape, data): argument
30 return fmt([reformat(fmt, shape[1:], data[i]) for i in range(0, shape[0])])
66 def __init__(self, shape, data=None): argument
68 self.data = fill(shape, Zero()) if data is None else data
78 return ExprTensor(self.shape, apply(lambda u, v: u + v, self.shape, self.data, other.data))
86 return ExprTensor(self.shape, apply(lambda v: v / other, self.shape, self.data))
94 return ExprTensor(self.shape, apply(lambda v: -v, self.shape, self.data))
117 return ExprTensor(self.shape, apply(lambda v: v, self.shape, self.data))
126 return ExprTensor(self.shape, apply(lambda v: op(v), self.shape, self.data))
132 return reformat(as_tensor, self.shape, self.data)
[all …]
/dports/math/py-ssm/ssm-0.0.1/ssm/
H A Dstats.py101 D = data.shape[-1]
145 D = data.shape[-1]
169 assert mask.shape == data.shape
305 D = data.shape[-1]
311 assert mask.shape == data.shape
346 D = data.shape[-1]
468 assert mask.shape == data.shape
505 assert mask.shape == data.shape
554 assert mask.shape == data.shape
591 assert mask.shape == data.shape
[all …]
/dports/science/py-chainer/chainer-7.8.0/chainerx_cc/chainerx/testing/
H A Darray_test.cc65 Array a = BuildArray(shape).WithData<T>(data).Build(); in TEST_P()
69 Array a = *BuildArray(shape).WithData<T>(data); in TEST_P()
85 Array a = BuildArray(shape).WithData<T>(data); in TEST_P()
86 ExpectArrayAttr(shape, dtype, strides, data, device(), a); in TEST_P()
96 Array a = BuildArray(shape).WithData<T>(data); in TEST_P()
97 ExpectArrayAttr(shape, dtype, strides, data, device(), a); in TEST_P()
107 Array a = BuildArray(shape).WithData<T>(data); in TEST_P()
108 ExpectArrayAttr(shape, dtype, strides, data, device(), a); in TEST_P()
118 Array a = BuildArray(shape).WithData<T>(data.begin(), data.end()); in TEST_P()
119 ExpectArrayAttr(shape, dtype, strides, data, device(), a); in TEST_P()
[all …]
/dports/graphics/krita/krita-4.4.8/libs/flake/tests/
H A DTestSvgParser.cpp55 QVERIFY(shape); in testUnitPx()
80 QVERIFY(shape); in testUnitPxResolution()
106 QVERIFY(shape); in testUnitPt()
131 QVERIFY(shape); in testUnitIn()
156 QVERIFY(shape); in testUnitPercentInitial()
181 QVERIFY(shape); in testScalingViewport()
208 QVERIFY(shape); in testScalingViewportKeepMeet1()
235 QVERIFY(shape); in testScalingViewportKeepMeet2()
262 QVERIFY(shape); in testScalingViewportKeepMeetAlign()
289 QVERIFY(shape); in testScalingViewportKeepSlice1()
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/topi/nn/
H A Dupsampling.py67 scaled_h = data.shape[2] * scale_h
68 scaled_w = data.shape[3] * scale_w
70 simplify(topi.cast(te.round(scaled_h), data.shape[2].dtype)),
80 scaled_h = data.shape[1] * scale_h
81 scaled_w = data.shape[2] * scale_w
159 scaled_d = data.shape[2] * scale_d
160 scaled_h = data.shape[3] * scale_h
161 scaled_w = data.shape[4] * scale_w
175 scaled_d = data.shape[1] * scale_d
176 scaled_h = data.shape[2] * scale_h
[all …]
H A Dfifo_buffer.py27 def fifo_buffer(data, buffer, axis): argument
59 assert len(data.shape) == len(buffer.shape), (
61 + "buffer.shape = {}, data.shape = {}".format(buffer.shape, data.shape)
65 for i in range(len(data.shape)):
67 assert int(str(data.shape[i])) <= int(str(buffer.shape[i]))
69 assert int(str(data.shape[i])) == int(str(buffer.shape[i]))
72 data_size = data.shape[axis]
90 data[i - buflen + data_size, j],
100 data[i, j - buflen + data_size],
182 begin[axis] = data.shape[axis]
[all …]
/dports/graphics/py-geomdl/geomdl-5.2.10/geomdl/
H A D_exchange.py225 shape.delta = data['delta']
227 shape.name = data['name']
229 shape.id = data['id']
270 shape.name = data['name']
272 shape.id = data['id']
303 shape.name = data['name']
305 shape.id = data['id']
356 shape.name = data['name']
358 shape.id = data['id']
448 shape.name = data['name']
[all …]
/dports/science/qiskit-aer/qiskit-aer-0.5.2/qiskit/providers/aer/pulse/qutip_lite/
H A Dfastsparse.py121 self.data,
129 data = data[:actual_nnz]
133 data = data.copy()
135 A = fast_csr_matrix((data, indices, indptr), dtype=data.dtype, shape=self.shape)
137 A = csr_matrix((data, indices, indptr), dtype=data.dtype, shape=self.shape)
190 ret.data = np.multiply(ret.data, other[ret.row, ret.col]
242 A = csr_matrix((data, indices, indptr), shape=(M, N))
360 data = np.asarray(data, dtype=complex)
363 shape=self.shape, dtype=data.dtype)
366 shape=self.shape, dtype=data.dtype)
[all …]
/dports/science/py-scipy/scipy-1.7.1/scipy/sparse/
H A Ddia.py163 (self.shape + (self.dtype.type, self.nnz, self.data.shape[0],
272 L = self.data.shape[1]
305 data_rows, data_cols = self.data.shape
344 data = np.hstack((self.data, np.zeros((self.data.shape[0], pad_amount),
376 num_offsets, offset_len = self.data.shape
391 return csc_matrix((data, indices, indptr), shape=self.shape,
398 num_offsets, offset_len = self.data.shape
411 A = coo_matrix((data,(row,col)), shape=self.shape, dtype=self.dtype)
423 return dia_matrix((data, self.offsets.copy()), shape=self.shape)
425 return dia_matrix((data,self.offsets), shape=self.shape)
[all …]
/dports/misc/adios2/ADIOS2-2.7.1/testing/adios2/engine/ssc/
H A DTestSscMoreReadersThanWriters.cpp86 engine.Put(bpInts, myInts.data(), adios2::Mode::Sync); in Writer()
161 VerifyData(myChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
163 VerifyData(myUChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
165 VerifyData(myShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
167 VerifyData(myUShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
169 VerifyData(myInts.data(), currentStep, Dims(shape.size(), 0), shape, in Reader()
171 VerifyData(myUInts.data(), currentStep, Dims(shape.size(), 0), in Reader()
173 VerifyData(myFloats.data(), currentStep, Dims(shape.size(), 0), in Reader()
175 VerifyData(myDoubles.data(), currentStep, Dims(shape.size(), 0), in Reader()
177 VerifyData(myComplexes.data(), currentStep, Dims(shape.size(), 0), in Reader()
[all …]
H A DTestSscMoreWritersThanReaders.cpp84 engine.Put(bpInts, myInts.data(), adios2::Mode::Sync); in Writer()
159 VerifyData(myChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
161 VerifyData(myUChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
163 VerifyData(myShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
165 VerifyData(myUShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
167 VerifyData(myInts.data(), currentStep, Dims(shape.size(), 0), shape, in Reader()
169 VerifyData(myUInts.data(), currentStep, Dims(shape.size(), 0), in Reader()
171 VerifyData(myFloats.data(), currentStep, Dims(shape.size(), 0), in Reader()
173 VerifyData(myDoubles.data(), currentStep, Dims(shape.size(), 0), in Reader()
175 VerifyData(myComplexes.data(), currentStep, Dims(shape.size(), 0), in Reader()
[all …]
H A DTestSsc7d.cpp84 engine.Put(bpInts, myInts.data(), adios2::Mode::Sync); in Writer()
160 VerifyData(myChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
162 VerifyData(myUChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
164 VerifyData(myShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
166 VerifyData(myUShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
168 VerifyData(myInts.data(), currentStep, Dims(shape.size(), 0), shape, in Reader()
170 VerifyData(myUInts.data(), currentStep, Dims(shape.size(), 0), in Reader()
172 VerifyData(myFloats.data(), currentStep, Dims(shape.size(), 0), in Reader()
174 VerifyData(myDoubles.data(), currentStep, Dims(shape.size(), 0), in Reader()
176 VerifyData(myComplexes.data(), currentStep, Dims(shape.size(), 0), in Reader()
[all …]
H A DTestSscNoSelection.cpp84 engine.Put(bpInts, myInts.data(), adios2::Mode::Sync); in Writer()
159 VerifyData(myChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
161 VerifyData(myUChars.data(), currentStep, Dims(shape.size(), 0), in Reader()
163 VerifyData(myShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
165 VerifyData(myUShorts.data(), currentStep, Dims(shape.size(), 0), in Reader()
167 VerifyData(myInts.data(), currentStep, Dims(shape.size(), 0), shape, in Reader()
169 VerifyData(myUInts.data(), currentStep, Dims(shape.size(), 0), in Reader()
171 VerifyData(myFloats.data(), currentStep, Dims(shape.size(), 0), in Reader()
173 VerifyData(myDoubles.data(), currentStep, Dims(shape.size(), 0), in Reader()
175 VerifyData(myComplexes.data(), currentStep, Dims(shape.size(), 0), in Reader()
[all …]
/dports/misc/tvm/incubator-tvm-0.6.1/topi/python/topi/nn/
H A Dfifo_buffer.py25 def fifo_buffer(data, buffer, axis): argument
57 assert len(data.shape) == len(buffer.shape), \
59 'buffer.shape = {}, data.shape = {}'.format(buffer.shape, data.shape)
62 for i in range(len(data.shape)):
64 assert int(str(data.shape[i])) <= int(str(buffer.shape[i]))
66 assert int(str(data.shape[i])) == int(str(buffer.shape[i]))
69 data_size = data.shape[axis]
72 if len(buffer.shape) == 1:
77 data[i - buflen + data_size]),
151 begin[axis] = data.shape[axis]
[all …]
/dports/misc/py-tvm/incubator-tvm-0.6.1/topi/python/topi/nn/
H A Dfifo_buffer.py25 def fifo_buffer(data, buffer, axis): argument
57 assert len(data.shape) == len(buffer.shape), \
59 'buffer.shape = {}, data.shape = {}'.format(buffer.shape, data.shape)
62 for i in range(len(data.shape)):
64 assert int(str(data.shape[i])) <= int(str(buffer.shape[i]))
66 assert int(str(data.shape[i])) == int(str(buffer.shape[i]))
69 data_size = data.shape[axis]
72 if len(buffer.shape) == 1:
77 data[i - buflen + data_size]),
151 begin[axis] = data.shape[axis]
[all …]
/dports/math/py-cvxpy/cvxpy-1.1.17/cvxpy/lin_ops/
H A Dlin_utils.py234 lh_op.data)
236 rh_op.data)
645 return [(operator.data, operator.shape)]
713 return id_to_new_var[expr.data]
720 return lo.LinOp(expr.type, expr.shape, new_args, expr.data)
761 return create_const(check_param_val(expr.data), expr.shape)
767 if isinstance(expr.data, lo.LinOp) and expr.data.type == lo.PARAM:
768 data_lin_op = expr.data
771 data = create_const(val, data_lin_op.shape)
773 data = expr.data
[all …]
/dports/devel/py-qutip/qutip-4.6.2/qutip/
H A Dfastsparse.py101 self.data,
109 data = data[:actual_nnz]
113 data = data.copy()
115 A = fast_csr_matrix((data, indices, indptr), dtype=data.dtype, shape=self.shape)
117 A = csr_matrix((data, indices, indptr), dtype=data.dtype, shape=self.shape)
169 ret.data = np.multiply(ret.data, other[ret.row, ret.col]
238 A = csr_matrix((data, indices, indptr), shape=(M, N))
353 data = np.asarray(data, dtype=complex)
356 shape=self.shape,dtype=data.dtype)
359 shape=self.shape,dtype=data.dtype)
[all …]
/dports/graphics/py-visvis/visvis-1.13.0/core/
H A DbaseTexture.py48 s1 = [n for n in data.shape]
49 s2 = [nearestN(n) for n in data.shape]
271 self._GetFormat(data.shape)
332 internalformat, format = self._GetFormat(data.shape)
386 self._shape = data.shape
409 shape = [i for i in reversed( list(data.shape[:self._ndim]) )]
410 args = [target, 0] + [0 for i in shape] + shape + [format,gltype,data]
430 shape = [i for i in reversed( list(data.shape[:self._ndim]) )]
455 shape = [i for i in reversed( list(data.shape[:self._ndim]) )]
694 if data.shape[0] == 256 and data.dtype == np.float32:
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/go/arrow/tensor/
H A Dtensor.go146 return NewInt8(data, shape, strides, names)
148 return NewInt16(data, shape, strides, names)
150 return NewInt32(data, shape, strides, names)
152 return NewInt64(data, shape, strides, names)
154 return NewUint8(data, shape, strides, names)
156 return NewUint16(data, shape, strides, names)
158 return NewUint32(data, shape, strides, names)
160 return NewUint64(data, shape, strides, names)
162 return NewFloat32(data, shape, strides, names)
166 return NewDate32(data, shape, strides, names)
[all …]
/dports/databases/arrow/apache-arrow-6.0.1/go/arrow/tensor/
H A Dtensor.go146 return NewInt8(data, shape, strides, names)
148 return NewInt16(data, shape, strides, names)
150 return NewInt32(data, shape, strides, names)
152 return NewInt64(data, shape, strides, names)
154 return NewUint8(data, shape, strides, names)
156 return NewUint16(data, shape, strides, names)
158 return NewUint32(data, shape, strides, names)
160 return NewUint64(data, shape, strides, names)
162 return NewFloat32(data, shape, strides, names)
166 return NewDate32(data, shape, strides, names)
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/go/arrow/tensor/
H A Dtensor.go146 return NewInt8(data, shape, strides, names)
148 return NewInt16(data, shape, strides, names)
150 return NewInt32(data, shape, strides, names)
152 return NewInt64(data, shape, strides, names)
154 return NewUint8(data, shape, strides, names)
156 return NewUint16(data, shape, strides, names)
158 return NewUint32(data, shape, strides, names)
160 return NewUint64(data, shape, strides, names)
162 return NewFloat32(data, shape, strides, names)
166 return NewDate32(data, shape, strides, names)
[all …]
/dports/science/py-chainer/chainer-7.8.0/chainer/utils/
H A Dsparse.py43 def __init__(self, data, row, col, shape, order=None, argument
59 self.shape = shape # (row, col)
68 shape = self.shape
70 shape = (data.shape[0], *self.shape)
75 x = xp.zeros(shape, dtype=data.dtype)
89 for i in range(data.shape[0]):
144 shape = x.shape
145 return CooMatrix(data, row, col, shape,
162 shape = x.shape[1:]
163 return CooMatrix(data, row, col, shape,
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/relay/op/
H A Dtransform.py225 for shape in newshape:
386 shape = [shape]
388 shape = list(shape)
687 def broadcast_to(data, shape): argument
705 return _dyn_make.broadcast_to(data, shape)
707 shape = [shape]
709 shape = list(shape)
710 return _make.broadcast_to(data, shape)
751 def collapse_sum_to(data, shape): argument
768 shape = const(list(shape), "int32")
[all …]

12345678910>>...1107