Home
last modified time | relevance | path

Searched refs:OnesLike (Results 1 – 25 of 44) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/
Doneslike_gpu_kernel.cc19 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumber…
21 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumber…
23 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumber…
25 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeInt8).AddOutputAttr(kNumberTyp…
27 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeInt16).AddOutputAttr(kNumberTy…
29 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTy…
31 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTy…
33 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kNumberTy…
35 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeUInt16).AddOutputAttr(kNumberT…
37 MS_REG_GPU_KERNEL_ONE(OnesLike, KernelAttr().AddInputAttr(kNumberTypeUInt32).AddOutputAttr(kNumberT…
[all …]
/third_party/mindspore/mindspore/core/ops/
Dones_like.h29 class MS_CORE_API OnesLike : public PrimitiveC {
32 OnesLike() : PrimitiveC(prim::kPrimOnesLike->name()) {} in OnesLike() function
34 ~OnesLike() = default;
35 MS_DECLARE_PARENT(OnesLike, PrimitiveC);
41 using PrimOnesLikePtr = std::shared_ptr<OnesLike>;
Dones_like.cc52 REGISTER_PRIMITIVE_EVAL_IMPL(OnesLike, prim::kPrimOnesLike, OnesLikeInfer, nullptr, true);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Doneslike_impl.cu21 __global__ void OnesLike(const size_t size, const T* input, T* output) { in OnesLike() function
31 OnesLike<<<GET_BLOCKS(size), GET_THREADS, 0, cuda_stream>>>(size, input, output); in CalOnesLike()
/third_party/mindspore/mindspore/_extends/graph_kernel/expanders/
Doneslike.py19 class OnesLike(Expander): class
D__init__.py45 from .oneslike import OnesLike
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Delewise_calculation_ops_declare.h57 DECLARE_OP_ADAPTER(OnesLike)
58 DECLARE_OP_USE_OUTPUT(OnesLike)
Delewise_calculation_ops_declare.cc293 INPUT_MAP(OnesLike) = {{1, INPUT_DESC(x)}};
294 ATTR_MAP(OnesLike) = EMPTY_ATTR_MAP;
295 OUTPUT_MAP(OnesLike) = {{0, OUTPUT_DESC(y)}};
296 REG_ADPT_DESC(OnesLike, kNameOnesLike, ADPT_DESC(OnesLike))
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Darithmetic_self_cpu_kernel.h72 MS_REG_CPU_KERNEL(OnesLike, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberType…
74 MS_REG_CPU_KERNEL(OnesLike, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeIn…
Darithmetic_self_cpu_kernel.cc81 void OnesLike(const T *, T *out, size_t size) { in OnesLike() function
328 {prim::kPrimOnesLike->name(), OnesLike<T>}, in LaunchKernel()
/third_party/mindspore/tests/st/ops/cpu/
Dtest_oneslike_op.py28 self.ones_like = P.OnesLike()
/third_party/mindspore/tests/st/ops/graph_kernel/
Dtest_oneslike.py27 self.oneslike = P.OnesLike()
/third_party/mindspore/mindspore/nn/probability/bijector/
Dscalar_affine.py90 self.oneslike = P.OnesLike()
/third_party/mindspore/tests/st/ops/gpu/
Dtest_oneslike_op.py30 self.ones_like = P.OnesLike()
/third_party/mindspore/mindspore/ops/bprop_mindir/
Dgenerate_mindir.py25 serializable_bprop_ops = [P.ReLU(), P.Identity(), inner.Range(1.0), P.OnesLike(), P.ZerosLike(), P.…
/third_party/mindspore/mindspore/nn/grad/
Dcell_grad.py74 self.oneslike = P.OnesLike()
/third_party/mindspore/mindspore/nn/loss/
Dloss.py860 self.ones_like = P.OnesLike()
1048 self.ones = P.OnesLike()
1214 self.ones = P.OnesLike()
/third_party/mindspore/mindspore/lite/schema/
Dmodel_v0.fbs236 OnesLike,
Dops.fbs126 OnesLike,
761 table OnesLike {
/third_party/mindspore/mindspore/lite/src/ops/
Dops_func_declare.h368 FUNC_MSOP2SCHEMAOP_DECLARE(OnesLike)
Dops_def.cc125 OP_TYPE(OnesLike)
761 OP_SCHEMA_DEF(OnesLike)
762 OP_SCHEMA_DEF_END(OnesLike)
/third_party/mindspore/mindspore/ops/operations/
D__init__.py26 IsInstance, IsSubClass, ArgMaxWithValue, OnesLike, ZerosLike,
/third_party/mindspore/mindspore/ops/
Dfunctional.py42 ones_like = P.OnesLike()
/third_party/mindspore/mindspore/nn/optim/
Dadafactor.py134 update_coff = P.Maximum()(update_rms_thres, P.OnesLike()(update_rms_thres))
/third_party/mindspore/mindspore/ops/_grad/
Dgrad_array_ops.py689 @bprop_getters.register(P.OnesLike)
956 ones_like = P.OnesLike()

12