-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into suggest-override
- Loading branch information
Showing
127 changed files
with
3,612 additions
and
3,873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
inference-engine/thirdparty/clDNN/api/cldnn/primitives/implementation_desc.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include "cldnn/runtime/tensor.hpp" | ||
|
||
#include <map> | ||
#include <ostream> | ||
|
||
namespace cldnn { | ||
|
||
/// @brief Primitives implementation type. | ||
enum class impl_types : uint8_t { | ||
cpu = 1 << 0, | ||
common = 1 << 1, | ||
ocl = 1 << 2, | ||
any = 0xFF, | ||
}; | ||
|
||
inline impl_types operator&(impl_types a, impl_types b) { | ||
typedef std::underlying_type<impl_types>::type underlying_type; | ||
return static_cast<impl_types>(static_cast<underlying_type>(a) & static_cast<underlying_type>(b)); | ||
} | ||
|
||
inline impl_types operator|(impl_types a, impl_types b) { | ||
typedef std::underlying_type<impl_types>::type underlying_type; | ||
return static_cast<impl_types>(static_cast<underlying_type>(a) | static_cast<underlying_type>(b)); | ||
} | ||
|
||
inline impl_types operator~(impl_types a) { | ||
typedef std::underlying_type<impl_types>::type underlying_type; | ||
return static_cast<impl_types>(~static_cast<underlying_type>(a)); | ||
} | ||
|
||
inline std::ostream& operator<<(std::ostream& out, const impl_types& impl_type) { | ||
switch (impl_type) { | ||
case impl_types::cpu: out << "cpu"; break; | ||
case impl_types::common: out << "common"; break; | ||
case impl_types::ocl: out << "ocl"; break; | ||
case impl_types::any: out << "any"; break; | ||
default: out << "unknown"; break; | ||
} | ||
|
||
return out; | ||
} | ||
|
||
/// @brief Description of primitives implementation. | ||
struct implementation_desc { | ||
format::type output_format; ///< Output format. | ||
std::string kernel_name; ///< GPU kernel name. | ||
impl_types impl_type; ///< GPU implementation type. | ||
|
||
implementation_desc() : | ||
output_format(format::any), | ||
kernel_name(""), | ||
impl_type(impl_types::any) {} | ||
|
||
implementation_desc(format::type output_format, | ||
std::string kernel_name, | ||
impl_types impl_type = impl_types::any) : | ||
output_format(output_format), | ||
kernel_name(kernel_name), | ||
impl_type(impl_type) {} | ||
}; | ||
|
||
using implementation_forcing_map = std::map<primitive_id, implementation_desc>; | ||
|
||
} // namespace cldnn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 0 additions & 126 deletions
126
inference-engine/thirdparty/clDNN/src/gpu/activation_gpu.cpp
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
inference-engine/thirdparty/clDNN/src/gpu/average_unpooling_gpu.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.