Skip to content

Commit

Permalink
Revert "[NPUW] Add initial unpack and partitioning unit tests on NPUW" (
Browse files Browse the repository at this point in the history
#26884)

Reverts #25780

Causes failures on master branch and in pull requests
  • Loading branch information
ababushk authored Oct 2, 2024
1 parent ad448dd commit 18c852e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1,478 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ namespace ov {
namespace npuw {
namespace online {

class Group; // forward declaration

namespace detail {
// At partitioning level we exclude some "non-Ops" to not interfere with the passes.
// We include some of them back to properly link everything at plugin level
Expand All @@ -31,8 +33,6 @@ class Snapshot : public std::enable_shared_from_this<Snapshot> {
m_node_to_prod_cons(std::make_shared<detail::OVNodeMap>()),
m_node_to_gr(std::make_shared<detail::OVNodeToGroupMap>()) {}

friend class Group; // forward declaration

// Simple passes
void singleGroup();

Expand All @@ -49,27 +49,27 @@ class Snapshot : public std::enable_shared_from_this<Snapshot> {
void repeatedBlocks();
void earlyAvoids();
void earlyRegroup();
void markInternalCompute();
void resetExcludedRep();

// Utility
std::shared_ptr<own::ade::Graph> getGraph() const;
size_t graphSize() const;
const detail::OVNodeSet& getNodeProducers(const detail::OVNodePtr& node) const;
const detail::OVNodeSet& getNodeConsumers(const detail::OVNodePtr& node) const;
const detail::OVPortsMap& getPortsMap() const;
const detail::OVNodeToGroupMapPtr& getNodeToGroupMap() const;
const std::map<std::string, std::vector<std::set<std::string>>>& getMatches() const;
detail::GPtrSet getRepGroups(const std::shared_ptr<Group>& group) const;
void repeat(detail::Pass&& pass);
void setCtx(const PassContext& ctx);
size_t graphSize() const;

private:
detail::GPtrSet getRepGroups(const std::shared_ptr<Group>& group) const;
const detail::OVNodeSet& getNodeProducers(const detail::OVNodePtr& node) const;
const detail::OVNodeSet& getNodeConsumers(const detail::OVNodePtr& node) const;
void identifyUniques();
void mergeUniques();
void mergeTriangles();
void cleanUpUniques();
void afterUniques();
void markInternalCompute();
void resetExcludedRep();
bool cleanUpUniquesImpl(const detail::GPtrSet& gset);
std::shared_ptr<Repeated> tryGrowRepeatingGroups(const detail::GPtrSet& repeating_groups);
std::shared_ptr<Repeated> tryMergeTriangles(const detail::GPtrSet& repeating_groups);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/intel_npu/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ if (MSVC)
ov_add_compiler_flags(/wd5105)
endif()
add_subdirectory(functional)
add_subdirectory(unit)
49 changes: 0 additions & 49 deletions src/plugins/intel_npu/tests/unit/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 18c852e

Please sign in to comment.