Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 445 for FuncOp (0.3 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/passes.h

    // Verifies that the TF/XLA ops have all been lowered to MHLO.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateVerifyTFXLALegalizationPass(
        bool legalize_chlo = true);
    
    // Transforms TFXLA Device specific ops into device independent ops.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateTFXLADeviceSpecificTransformsPass(
        std::optional<StringRef> tf2xla_fallback_device_type = std::nullopt);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc

        if (IsNonConstOp(op) && NotTFLQuantDequantizeOp(op) &&
            !IsTerminatorOp(op) &&
            !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op)) {
          SetTargetAnnotation(op, device_specs_flag_, &builder);
        }
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTargetAnnotationPass(
        llvm::ArrayRef<std::string> device_specs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

    // marked noinline should be specified by the `noinline-functions` option.
    class MarkFunctionsNoinlinePass
        : public PassWrapper<MarkFunctionsNoinlinePass,
                             OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MarkFunctionsNoinlinePass)
    
      explicit MarkFunctionsNoinlinePass()
          : MarkFunctionsNoinlinePass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

                                                     tensorflow::Session* session) {
      auto functions_range = module.getOps<func::FuncOp>();
      return mlir::failableParallelForEach(
          module.getContext(), functions_range.begin(), functions_range.end(),
          [&](func::FuncOp function) {
            return MarkInitializedVariablesInFunction(function, session);
          });
    }
    
    }  // namespace tf_saved_model
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

    absl::Status AddSessionInitializerAndInlineCheckpoint(
        ModuleOp module, absl::string_view checkpoint_path) {
      // The main function should be the only public function.
      func::FuncOp main_func = nullptr;
      for (auto func : module.getOps<func::FuncOp>()) {
        if (func.isPublic()) {
          if (main_func != nullptr) {
            return absl::InternalError("Only one public function is allowed.");
          }
          main_func = func;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def BatchMatMulToEinsumPass : Pass<"tf-batch-matmul-to-tf-einsum", "mlir::func::FuncOp"> {
      let summary = "Replace TF BatchMatMul op by TF Einsum op.";
      let constructor = "TF::CreateBatchMatMulToEinsumPass()";
    }
    
    def CanonicalizeCompileAndReplicateAttributesPass : Pass<"tf-canonicalize-compile-and-replicate-attributes", "mlir::func::FuncOp"> {
      let summary = "Canonicalize compilation and replication attributes.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      void TearDown() override {
        fused_lstm_func_.erase();
        fused_lstm_func_cifg_.erase();
        fused_ln_lstm_func_.erase();
        builder_.reset();
      }
    
      func::FuncOp fused_lstm_func_;
      func::FuncOp fused_lstm_func_cifg_;
      func::FuncOp fused_ln_lstm_func_;
      std::unique_ptr<mlir::MLIRContext> context_;
      std::unique_ptr<mlir::Builder> builder_;
    };
    
    TEST_F(LstmUtilsTest, ConvertLSTMCellSimple) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.h

    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    
    namespace tfrt {
    namespace fallback_async {
    
    bool IsArgConsumedByFallback(mlir::func::FuncOp func, int arg_index);
    
    void ForEachArgConsumedByFallback(
        mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action);
    
    void ForEachArgConsumedByFallback(
        mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        module->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
        return failure();
      }
    
      SmallVector<func::FuncOp, 2> session_init_funcs =
          tf_saved_model::GetInitializerFunctions(module);
      func::FuncOp session_init_func =
          session_init_funcs.empty() ? nullptr : session_init_funcs[0];
    
      TF::ResourceAnalyzer analyzer(module, /*skip_session_init=*/true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

          total_element_count += input_type.getNumElements();
        }
      }
      return total_element_count;
    }
    
    struct GetOpCostPass
        : mlir::PassWrapper<GetOpCostPass, OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GetOpCostPass)
    
      llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; }
      llvm::StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top