- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IsNotSupportedOp (0.31 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/simple_hardware.cc
#include "tensorflow/compiler/mlir/lite/utils/arithmetic_count_util.h" namespace mlir { namespace TFL { namespace tac { bool SimpleHardware::IsOpSupported(mlir::Operation* op) const { if (IsNotSupportedOp(op)) { return false; } const TargetHardware* cpu = GetTargetHardware("CPU"); return cpu->IsOpSupported(op); } double SimpleHardware::GetHardwareSwitchingCost(const TargetHardware* from,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 21 01:22:53 UTC 2021 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.h
mlir::RewritePatternSet GetTransformations( MLIRContext* context) const override; mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<ExampleHardware>(); } bool IsNotSupportedOp(mlir::Operation* op) const override { return false; } float AdvantageOverCPU() const override { return 5.0; } }; } // namespace tac } // namespace TFL } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 27 15:05:02 UTC 2022 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.h
mlir::RewritePatternSet GetTransformations( MLIRContext* context) const override; mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<NNAPIHardware>(); } bool IsNotSupportedOp(mlir::Operation* op) const override { return false; } float AdvantageOverCPU() const override { return 5.0; } }; } // namespace tac } // namespace TFL } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 27 15:05:02 UTC 2022 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/simple_hardware.h
class SimpleHardware : public TargetHardware { public: // This is essentially a denylist. // TODO(renjieliu): Consider whether we want an allowlist for custom op as // well. virtual bool IsNotSupportedOp(mlir::Operation* op) const = 0; // The larger the value is, the more preferrable over CPU. // If the value > 1, means the hardware has advantage over CPU. // If the value < 1, means CPU is more preferred.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 21 01:22:53 UTC 2021 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/README.md
return patterns; } mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<FooHardware>(); } // We can specify what ops are not supported here. bool IsNotSupportedOp(mlir::Operation* op) const override { return false; } // This is basically saying how fast are we comparing to CPU. // The larger the value the better. float AdvantageOverCPU() const override { return 5.0; } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 29 18:32:13 UTC 2022 - 11.6K bytes - Viewed (0)