Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NNAPIHardware (0.22 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.cc

    constexpr float kNNAPICopyUnitCost = 0.2;
    
    // Default values.
    constexpr float kNNAPIDefaultFixedValuedCost = 10000.0;
    
    constexpr char NNAPIHardware::kId[];  // Define kId.
    
    mlir::RewritePatternSet NNAPIHardware::GetTransformations(
        MLIRContext* context) const {
      mlir::RewritePatternSet patterns(context);
    
      patterns.add<SquaredDifference, LowerPackIntoConcatReshape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    class NNAPIHardware : public SimpleHardware {
     public:
      static constexpr char kId[] = "NNAPI";
    
      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; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_nnapi.cc

        registry.insert<TF::TensorFlowDialect>();
      }
      void runOnOperation() override;
    };
    
    void DeviceTransformNNAPIPass::runOnOperation() {
      auto func = getOperation();
      auto* ctx = &getContext();
      NNAPIHardware nnapi_hardware;
      RewritePatternSet patterns = nnapi_hardware.GetTransformations(ctx);
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top