/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) -> !shape.size { 13 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 15 %num_elements = shape.reduce(%shape, %init) -> !shape.size { 25 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 27 %num_elements = shape.reduce(%shape, %init) -> !shape.size { 35 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 37 %num_elements = shape.reduce(%shape, %init) -> f32 { 47 %num_elements = shape.reduce(%shape, %init) -> !shape.size { 55 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/math/py-jax/jax-0.2.9/jax/_src/nn/ |
H A D | initializers.py | 35 def init(key, shape, dtype=dtype): function 37 return init 40 def init(key, shape, dtype=dtype): function 42 return init 51 def init(key, shape, dtype=dtype): function 70 return init 86 def init(key, shape, dtype=dtype): function 99 return init 108 def init(key, shape, dtype=dtype): function 112 if shape[-1] < shape[-2]: [all …]
|
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/neighbors/ |
H A D | _nca.py | 191 self.init = init 348 if self.components_.shape[1] != X.shape[1]: 353 X.shape[1], self.components_.shape[1] 366 init = self.init 369 init = check_array(init) 372 if init.shape[1] != X.shape[1]: 377 init.shape[1], X.shape[1] 382 if init.shape[0] > init.shape[1]: 387 init.shape[0], init.shape[1] 393 if self.n_components != init.shape[0]: [all …]
|
/dports/math/py-keras/Keras-2.4.3/examples/ |
H A D | mnist_net2net.py | 95 print('x_train shape:', x_train.shape, 'y_train shape:', y_train.shape) 96 print('x_test shape:', x_test.shape, 'y_test shape', y_test.shape) 115 assert teacher_w1.shape[0] == teacher_w2.shape[1], ( 117 assert teacher_w1.shape[3] == teacher_b1.shape[0], ( 123 if init == 'random-pad': 128 size=teacher_w2.shape[:2] + (n, teacher_w2.shape[3])) 139 if init == 'random-pad': 167 assert teacher_w1.shape[1] == teacher_w2.shape[0], ( 169 assert teacher_w1.shape[1] == teacher_b1.shape[0], ( 175 if init == 'random-pad': [all …]
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/devel/llvm13/llvm-project-13.0.1.src/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/test/Dialect/Shape/ |
H A D | invalid.mlir | 3 func @reduce_op_args_num_mismatch(%shape : !shape.shape, %init : !shape.size) { 5 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 14 func @reduce_op_arg0_wrong_type(%shape : !shape.shape, %init : !shape.size) { 16 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 27 func @reduce_op_arg1_wrong_type(%shape : !shape.shape, %init : !shape.size) { 29 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 49 func @reduce_op_init_type_mismatch(%shape : !shape.shape, %init : f32) { 51 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> f32 { 62 %num_elements = shape.reduce(%shape, %init) : !shape.shape -> !shape.size { 71 func @yield_op_type_mismatch(%shape : !shape.shape, %init : !shape.size) { [all …]
|
/dports/math/zarray/zarray-0.1.0/test/ |
H A D | test_zchunked_array.cpp | 20 shape_type shape = {10, 10, 10}; in TEST() local 32 shape_type shape = {10, 10, 10}; in TEST() local 52 shape_type shape = {4, 4}; in TEST() local 64 zdispatcher_t<detail::xassign_dummy_functor, 1>::init(); in TEST() 65 zdispatcher_t<detail::xmove_dummy_functor, 1>::init(); in TEST() 82 zdispatcher_t<detail::xassign_dummy_functor, 1>::init(); in TEST() 83 zdispatcher_t<detail::xmove_dummy_functor, 1>::init(); in TEST() 99 zdispatcher_t<detail::xassign_dummy_functor, 1>::init(); in TEST() 100 zdispatcher_t<detail::xmove_dummy_functor, 1>::init(); in TEST() 117 zdispatcher_t<detail::xassign_dummy_functor, 1>::init(); in TEST() [all …]
|
/dports/graphics/panomatic/panomatic-0.9.4/vigra/include/vigra/ |
H A D | multi_array.hxx | 186 initMultiArrayData(DestIterator d, Shape const & shape, T const & init, MetaInt<0>) 191 *d = init; 197 initMultiArrayData(DestIterator d, Shape const & shape, T const & init, MetaInt<N>) 202 initMultiArrayData(d.begin(), shape, init, MetaInt<N-1>()); 510 void init(const U & init); 732 MultiArrayView <N, T, C>::init(const U & init) 734 detail::initMultiArrayData(traverser_begin(), shape(), init, MetaInt<actual_dimension-1>()); 1068 MultiArray (const difference_type &shape, const_reference init, 1073 MultiArray (const difference_type &shape, const_pointer init, 1123 void reshape (const difference_type &shape, const_reference init); [all …]
|
/dports/math/casadi/casadi-3.5.5/test/python/ |
H A D | tools.py | 109 …s = struct_symSX([entry("x",shape=(3,2)),entry("y",shape=2),entry("z",shape=Sparsity.dense(3)),ent… 238 …s = struct_symMX([entry("x",shape=(3,2)),entry("y",shape=2),entry("z",shape=Sparsity.dense(3)),ent… 588 a = struct_symSX([entry("a",shape=(5,3)),entry("b",shape=(4,3))]) 604 x = struct([entry("a",shape=(2,3)),entry("b",shape=(2,3))]) 611 x = struct([entry("a",shape=(2,3)),entry("b",shape=(2,3))]) 652 entry("x",shape=n), 657 entry("x",shape=n), 692 entry("x",shape=n), 697 entry("x",shape=n), 716 entry("x",shape=n), [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/te/ |
H A D | operation.py | 52 shape = (shape,) if isinstance(shape, tvm.tir.PrimExpr) else shape 88 shape = (shape,) if isinstance(shape, tvm.tir.PrimExpr) else shape 133 def scan(init, update, state_placeholder, inputs=None, name="scan", tag="", attrs=None): argument 182 if isinstance(init, _tensor.Tensor): 183 init = [init] 192 if len(init) != len(update) or len(init) != len(state_placeholder): 194 axis = tvm.tir.IterVar((init[0].shape[0], update[0].shape[0]), "%s.idx" % name, 3) 195 op = _ffi_api.ScanOp(name, tag, attrs, axis, init, update, state_placeholder, inputs) 201 shape, 278 shape = (shape,) if isinstance(shape, (tvm.tir.PrimExpr, _Integral)) else shape variable [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/python/mxnet/ |
H A D | initializer.py | 84 def _verbose_print(self, desc, init, arr): argument 137 init = desc.attrs.get('__init__', "") 139 if init: 141 create(init)._init_weight(desc, arr) 142 self._verbose_print(desc, init, arr) 399 for prog, init in self.map: 401 init(name, arr) 739 if isinstance(init, string_types): 740 klass, kwargs = json.loads(init) 742 super(FusedRNN, self).__init__(init=init.dumps() if init is not None else None, [all …]
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/python/mxnet/ |
H A D | initializer.py | 84 def _verbose_print(self, desc, init, arr): argument 137 init = desc.attrs.get('__init__', "") 139 if init: 141 create(init)._init_weight(desc, arr) 142 self._verbose_print(desc, init, arr) 399 for prog, init in self.map: 401 init(name, arr) 739 if isinstance(init, string_types): 740 klass, kwargs = json.loads(init) 742 super(FusedRNN, self).__init__(init=init.dumps() if init is not None else None, [all …]
|
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/neighbors/tests/ |
H A D | test_nca.py | 100 M = rng.randn(rng.randint(1, X.shape[1] + 1), X.shape[1]) 188 init = rng.rand(X.shape[1] - 1, 3) 191 n_components = X.shape[1] 203 n_components = X.shape[1] + 2 242 init = rng.rand(X.shape[1], X.shape[1]) 247 init = rng.rand(X.shape[1], X.shape[1] + 1) 258 init = rng.rand(X.shape[1] + 1, X.shape[1]) 269 init = rng.rand(X.shape[1], X.shape[1]) 393 init = rng.randn(X.shape[1], X.shape[1]) 476 max_iter=30, n_components=X.shape[1], init="identity" [all …]
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_init.py | 32 gamma = mx.sym.Variable('gamma', init=mx.init.One()) 50 shape = (10, 10) 52 weight = mx.symbol.Variable("weight", shape=(shape[1], 2), 53 init=init, stype='row_sparse') 56 mod.bind(data_shapes=[('data', shape)]) 73 shape = tuple(np.random.randint(1, 10, size=np.random.randint(1, 5))) 75 init = mx.init.Constant(mx.nd.ones(shape)) 76 val = init.dumps() 79 init = mx.init.Constant(1) 82 init = mx.init.Constant(np.ones(shape)) [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_init.py | 32 gamma = mx.sym.Variable('gamma', init=mx.init.One()) 50 shape = (10, 10) 52 weight = mx.symbol.Variable("weight", shape=(shape[1], 2), 53 init=init, stype='row_sparse') 56 mod.bind(data_shapes=[('data', shape)]) 73 shape = tuple(np.random.randint(1, 10, size=np.random.randint(1, 5))) 75 init = mx.init.Constant(mx.nd.ones(shape)) 76 val = init.dumps() 79 init = mx.init.Constant(1) 82 init = mx.init.Constant(np.ones(shape)) [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/scala-package/core/src/test/scala/org/apache/mxnet/ |
H A D | KVStoreSuite.scala | 25 val shape = Shape(2, 1) constant 26 val ndArray = NDArray.zeros(shape) 28 kv.init("3", NDArray.ones(shape)) 35 val shape = Shape(2, 1) constant 36 val ndArray = NDArray.zeros(shape) 38 kv.init("3", NDArray.ones(shape)) 45 val shape = Shape(4, 4) constant 48 kv.init("a", NDArray.zeros(shape)) 49 kv.init(keys, Array.fill(keys.length)(NDArray.zeros(shape))) 76 val shape = Shape(2, 1) constant [all …]
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/scala-package/core/src/test/scala/org/apache/mxnet/ |
H A D | KVStoreSuite.scala | 25 val shape = Shape(2, 1) constant 26 val ndArray = NDArray.zeros(shape) 28 kv.init("3", NDArray.ones(shape)) 35 val shape = Shape(2, 1) constant 36 val ndArray = NDArray.zeros(shape) 38 kv.init("3", NDArray.ones(shape)) 45 val shape = Shape(4, 4) constant 48 kv.init("a", NDArray.zeros(shape)) 49 kv.init(keys, Array.fill(keys.length)(NDArray.zeros(shape))) 76 val shape = Shape(2, 1) constant [all …]
|
/dports/science/py-nilearn/nilearn-0.8.1/nilearn/decoding/ |
H A D | space_net_solvers.py | 122 out = np.ndarray(X.shape[0] + mask.ndim * X.shape[1]) 154 n_samples, _ = X.shape 261 _, n_features = X.shape 297 tol=tol, max_iter=max_iter, verbose=verbose, init=init) 323 _, n_features = X.shape 361 tol=tol, max_iter=max_iter, verbose=verbose, init=init) 526 dgap_tol=dgap_tol, init=unmaskvec(init), 534 init[:-1], mask) if init is not None else None, 539 w, obj, init = mfista( 541 dgap_factor=(.1 + l1_ratio) ** 2, tol=tol, init=init, verbose=verbose, [all …]
|
/dports/graphics/vigra/vigra-8acd73a/include/vigra/ |
H A D | multi_array.hxx | 182 initMultiArrayData(DestIterator d, Shape const & shape, T const & init, MetaInt<0>) in initMultiArrayData() argument 193 initMultiArrayData(DestIterator d, Shape const & shape, T const & init, MetaInt<N>) in initMultiArrayData() argument 198 initMultiArrayData(d.begin(), shape, init, MetaInt<N-1>()); in initMultiArrayData() 251 name##ScalarMultiArrayData(d.begin(), shape, init, MetaInt<N-1>()); \ 2623 MultiArray (const difference_type &shape, const_reference init, 2629 MultiArray (const difference_type &shape, MultiArrayInitializationTag init, 2634 MultiArray (const difference_type &shape, const_pointer init, 2853 view_type::init(init); in init() 2871 void reshape (const difference_type &shape, const_reference init); 3001 MultiArray <N, T, A>::MultiArray (const difference_type &shape, const_pointer init, in MultiArray() argument [all …]
|
/dports/misc/py-gluoncv/gluon-cv-0.9.0/scripts/gan/stylegan/ |
H A D | modules.py | 31 init=mx.init.Normal(sigma=1)) 32 self.bias = self.params.get('bias', shape=(out_channel), init=mx.init.Zero()) 55 grad_req='write', init=mx.init.Normal(sigma=1)) 56 … self.bias = self.params.get('bias', shape=(out_channel), grad_req='write', init=mx.init.Zero()) 113 init=mx.init.Normal(1)) 114 … self.bias = self.params.get('bias', shape=(out_dim), grad_req='write', init=mx.init.Zero()) 134 …self.weight = self.params.get('weight_orig', shape=(out_dim, in_dim), grad_req='write', init=mx.in… 135 self.bias = self.params.get('bias', shape=(out_dim), grad_req='write', init=mx.init.Zero()) 176 self.weight = self.params.get('weight_orig', shape=(1, channel, 1, 1), init=mx.init.Zero()) 188 …self.input = self.params.get('input', shape=(1, channel, size, size), init=mx.init.Normal(sigma=1)) [all …]
|