Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for TensorFlowDialect (0.2 sec)

  1. tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc

                   << "': " << error.message() << "\n";
        return 1;
      }
    
      // Load the MLIR module.
      mlir::DialectRegistry registry;
      registry.insert<mlir::TF::TensorFlowDialect, mlir::TFL::TensorFlowLiteDialect,
                      mlir::arith::ArithDialect, mlir::func::FuncDialect>();
      mlir::MLIRContext context(registry);
    
      llvm::SourceMgr source_mgr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

      void SetUp() override {
        context_ = std::make_unique<mlir::MLIRContext>();
        context_->loadDialect<mlir::arith::ArithDialect, mlir::func::FuncDialect,
                              mlir::TF::TensorFlowDialect, TensorFlowLiteDialect>();
        builder_ = std::make_unique<mlir::Builder>(context_.get());
    
        fused_max_unpooling_func_ =
            createMaxUnpoolingFunc(builder_.get(), {2, 4, 4, 2}, {2, 2, 2, 2});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/canonicalize.cc

    void populateCanonicalizationPatterns(func::FuncOp func,
                                          RewritePatternSet &patterns) {
      MLIRContext *context = func.getContext();
      mlir::Dialect *tf = context->getLoadedDialect<mlir::TF::TensorFlowDialect>();
      // Load all official canonicalization patterns. Here we skip the
      // canonicalization of the ops in the tf dialect, because they couldn't
      // propagate the attributes correctly. These optimization will be played by
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

               "module for post-training dynamic range case";
      }
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect>();
      }
    
      void runOnOperation() override;
    
     private:
      Option<OpSet> target_opset_{
          *this, "target-opset", llvm::cl::init(OpSet::TF),
          llvm::cl::desc("Choose target opset."),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      if (auto cost_function =
              mlir::dyn_cast<tfrt::compiler::CostFunctionInterface>(op)) {
        cost_map_[op] = cost_function.cost();
        return;
      }
    
      if (!llvm::isa<mlir::TF::TensorFlowDialect>(op->getDialect())) {
        cost_map_[op] = max_arg_size_;
        return;
      }
    
      // Try to use its cost function if it is registered.
      const auto& registry = GetCostFunctionRegistry();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf.cc

      // Constant folding is essential for the bridge. Without this check, the
      // bridge may fail with an error that is difficult to understand and not
      // actionable.
      if (!mlir::TF::TensorFlowDialect::HasConstantFoldHook()) {
        return tensorflow::errors::Internal(
            "TensorFlow dialect missing constant fold hook in TFXLA bridge phase "
            "1; this could happen if the binary doesn't link the constant fold "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

        // This is a brief description of the pass.
        return "Insert quantized functions into the module";
      }
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect, func::FuncDialect>();
      }
    
     private:
      void runOnOperation() override;
    
      // Returns the function library for the given quantization method and opset
      // pair.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      registry.insert<mlir::arith::ArithDialect,
                      mlir::func::FuncDialect,
                      mlir::scf::SCFDialect,
                      mlir::shape::ShapeDialect,
                      mlir::TF::TensorFlowDialect,
                      mlir::tf_device::TensorFlowDeviceDialect,
                      mlir::tf_executor::TensorFlowExecutorDialect,
                      mlir::TFR::TFRDialect>();
      // clang-format on
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

        // remove this restriction altogether except for the terminators that
        // require function signature change and shouldn't be
        if (op->getName().getDialectNamespace() !=
            TF::TensorFlowDialect::getDialectNamespace())
          return failure();
    
        // Refining types may have implications to the attached regions or symbol
        // references so do not update such ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top