Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ void calculate(Tensor output, Tensor input, std::vector<size_t> dim, bool keepdi
}

static bool registered = []() {
All::dispatcher().registerDevice({Device::Type::CPU,
Device::Type::NVIDIA,
Device::Type::METAX,
Device::Type::MOORE,
Device::Type::ILUVATAR},
&calculate, false);
All::dispatcher().registerAll(&calculate, false);
return true;
}();

Expand Down
7 changes: 1 addition & 6 deletions src/infinicore/ops/sum/sum_infiniop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ void calculate(Tensor output, Tensor input, std::vector<size_t> dim, bool keepdi
}

static bool registered = []() {
Sum::dispatcher().registerDevice({Device::Type::CPU,
Device::Type::NVIDIA,
Device::Type::METAX,
Device::Type::MOORE,
Device::Type::ILUVATAR},
&calculate, false);
Sum::dispatcher().registerAll(&calculate, false);
return true;
}();

Expand Down
7 changes: 1 addition & 6 deletions src/infinicore/ops/topk/topk_infiniop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ void calculate(Tensor values_output, Tensor indices_output, Tensor input, size_t
}

static bool registered = []() {
TopK::dispatcher().registerDevice({Device::Type::CPU,
Device::Type::NVIDIA,
Device::Type::METAX,
Device::Type::MOORE,
Device::Type::ILUVATAR},
&calculate, false);
TopK::dispatcher().registerAll(&calculate, false);
return true;
}();

Expand Down
7 changes: 1 addition & 6 deletions src/infinicore/ops/var/var_infiniop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ void calculate(Tensor var_output, Tensor input, std::vector<size_t> dim, bool un
}

static bool registered = []() {
Var::dispatcher().registerDevice({Device::Type::CPU,
Device::Type::NVIDIA,
Device::Type::METAX,
Device::Type::MOORE,
Device::Type::ILUVATAR},
&calculate, false);
Var::dispatcher().registerAll(&calculate, false);
return true;
}();

Expand Down
7 changes: 1 addition & 6 deletions src/infinicore/ops/var_mean/var_mean_infiniop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ void calculate(Tensor var_output, Tensor mean_output, Tensor input, std::vector<
}

static bool registered = []() {
Var_Mean::dispatcher().registerDevice({Device::Type::CPU,
Device::Type::NVIDIA,
Device::Type::METAX,
Device::Type::MOORE,
Device::Type::ILUVATAR},
&calculate, false);
Var_Mean::dispatcher().registerAll(&calculate, false);
return true;
}();

Expand Down
Loading