Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for accepted_dialects (0.27 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/stablehlo_util.cc

      return std::find(accepted_dialects.begin(), accepted_dialects.end(),
                       dialect_name) != accepted_dialects.end();
    }
    
    bool IsAcceptedOp(llvm::StringRef dialect_name, llvm::StringRef op_name,
                      const std::vector<std::string>& accepted_dialects) {
      return IsAcceptedDialect(dialect_name, accepted_dialects);
    }
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PrintOpStatsPass)
    
      explicit PrintOpStatsPass(raw_ostream *os = &llvm::errs(),
                                std::vector<std::string> accepted_dialects = {})
          : accepted_dialects_(accepted_dialects), os_(os), total_ops_(0) {}
    
      // Prints the resultant operation statistics pos_t iterating over the module.
      void runOnOperation() override;
    
      // Prints summary of op stats.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/stablehlo_util.h

    std::vector<std::string> GetAcceptedStableHLODialects();
    
    std::vector<std::string> GetAcceptedTFLiteDialects();
    
    // Can we find the given `dialect_name` in the `accepted_dialects`?
    bool IsAcceptedDialect(llvm::StringRef dialect_name,
                           const std::vector<std::string> &accepted_dialects);
    
    // The consolidated logic to verify if each final op is acceptable or not.
    // Also see `PrintOpStatsPass` and `CheckAcceptedOpsPass`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.h

    // Creates a pass which prints out a detailed report of conversion stats with:
    // success or not, % of Ops non-converted, list of non-converted Ops, etc.
    std::unique_ptr<Pass> createPrintOpStatsPass(
        std::vector<std::string> accepted_dialects);
    
    }  // namespace odml
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/check_accepted_ops_pass.cc

          const std::vector<std::string> &optional_accepted_dialects)
          : accepted_dialects_(GetAcceptedStableHLODialects()),
            optional_accepted_dialects_(optional_accepted_dialects) {}
    
      // Check if TF dialect ops exist over the module.
      void runOnOperation() override;
    
     private:
      std::vector<std::string> accepted_dialects_;
      std::vector<std::string> optional_accepted_dialects_;
    };
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top