Enable BitwiseOps to LogicalOps transform for static bool dtype on CPU plugin (#21510)
* Re-enable bitwise-logical transform in CPU plugin * Update docstrings
This commit is contained in:
1 parent
be7c70c8c4
commit
336a69ec24
3 files changed
+4
-7
No files matched your search
+2
-1
@@ -38,7 +38,8 @@ public:
|
||||
};
|
||||
/**
|
||||
* @ingroup ie_transformation_common_api
|
||||
* @brief Converts Bitwise operators to Logical for boolean datatype for plugins that don't support opset13 Bitwise
|
||||
* @brief Converts Bitwise operators to Logical for boolean datatype for plugins that don't support opset13 Bitwise and
|
||||
* to allow for constant folding for bool.
|
||||
*/
|
||||
class ConvertBitwiseToLogical : public ov::pass::GraphRewrite {
|
||||
public:
|
||||
|
||||
+2
-1
@@ -233,7 +233,8 @@ bool ov::pass::CommonOptimizations::run_on_model(const std::shared_ptr<ov::Model
|
||||
|
||||
// Temporary transformation to allow for PyTorch frontend to
|
||||
// partially support bitwise operators with boolean inputs for plugins
|
||||
// that didn't enabled BitwiseOps from opset13
|
||||
// that didn't enabled BitwiseOps from opset13 and to allow for constant
|
||||
// folding for bool inputs
|
||||
REGISTER_PASS(manager, ConvertBitwiseToLogical)
|
||||
|
||||
// StridesOptimization should be at the very end
|
||||
|
||||
Reference in new issue
Block a user