Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 435 for ModuleOp (0.15 sec)

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

    // their region based counterparts.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTFFunctionalControlFlowToRegions();
    std::unique_ptr<OperationPass<ModuleOp>> CreateTFFunctionalControlFlowToRegions(
        bool allow_passthrough_args);
    
    // Transforms region bases control flow operations in the TensorFlow dialect to
    // their functional counterparts.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTFRegionControlFlowToFunctional();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h

    // Test pass for analyzing side-effect analysis result.
    std::unique_ptr<OperationPass<ModuleOp>> CreateTestSideEffectAnalysisPass();
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTestResourceAliasAnalysisPass();
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateInitTextFileToImportTestPass();
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateInitTextFileToImportSavedModelTestPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_passes.h

    std::unique_ptr<OperationPass<ModuleOp>> CreateOptimizeGlobalTensorsPass();
    
    // Creates a pass that freezes tf_saved_model.global_tensor ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeGlobalTensorsPass(
        bool allow_mutable_tensors = false);
    
    // Creates a pass that freezes tf_saved_model.asset ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeAssetsPass(
        std::string saved_model_dir = "");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 09 19:11:34 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

          return %0 : tensor<1x3xf32>
        }
      }
    )mlir";
    
    TEST_F(AttrsAndConstraintsTest, HasStaticShapeSucceedsWithStaticShapes) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleStatic);
      ASSERT_TRUE(module_op);
    
      func::FuncOp main_fn = FindMainFuncOp(*module_op);
      ASSERT_THAT(main_fn, NotNull());
    
      Value dot_general_result =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/passes.h

    // types are set to "NOT_CARE" for better clustering.
    std::unique_ptr<OperationPass<ModuleOp>> CreateRaiseTargetSubgraphsPass(
        bool skip_raise_cpu_ops = false, bool ignore_inference_type = false);
    
    // Create an instance of the AlternativeSubgraphPass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateAlternativeSubgraphPass(
        llvm::ArrayRef<std::string> device_specs);
    
    // Create an instance of ComputeCostPass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
    
      AddDevicesToOp(*module_ref, /*device_set=*/nullptr);
      EXPECT_EQ((*module_ref)->getAttr("tf.devices"), nullptr);
    }
    
    TEST(DeviceUtilTest, GetDevicesFromOpNoDevicesAttribute) {
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

    absl::StatusOr<ExportedModel> ExportDebuggingModel(
        mlir::ModuleOp module_op, mlir::MLIRContext *context,
        const QuantizationOptions &quantization_options,
        const absl::flat_hash_map<std::string, std::string> &function_aliases) {
      // Clone ModuleOp and function aliases so changes in this pipeline won't
      // be reflected in the original values.
      mlir::OwningOpRef<mlir::ModuleOp> cloned_module_ref(module_op.clone());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

                         tf_saved_model::TensorFlowSavedModelDialect>();
      }
    
      // Parses `module_op_str` to create a `ModuleOp`. Checks whether the created
      // module op is valid.
      OwningOpRef<ModuleOp> ParseModuleOpString(
          const absl::string_view module_op_str) {
        auto module_op_ref = parseSourceString<ModuleOp>(module_op_str, &ctx_);
        EXPECT_TRUE(module_op_ref);
        return module_op_ref;
      }
    
      mlir::MLIRContext ctx_{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    void MoveFunctions(SymbolTableCollection &symbol_tables, ModuleOp from,
                       ModuleOp to) {
      SymbolTable &to_symbol_table = symbol_tables.getSymbolTable(to);
      for (auto func : llvm::make_early_inc_range(from.getOps<func::FuncOp>())) {
        func->remove();
        func.setPrivate();
        to_symbol_table.insert(func);
      }
    }
    
    void CopyStablehloModuleAttrs(ModuleOp stablehlo_module, XlaCallModuleOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util_test.cc

      func.return %arg0 : tensor<i32>
    }
    )mlir";
      mlir::MLIRContext context;
      context.loadDialect<mlir::func::FuncDialect, mlir::TF::TensorFlowDialect>();
      mlir::OwningOpRef<mlir::ModuleOp> module =
          mlir::parseSourceString<mlir::ModuleOp>(code, &context);
      ASSERT_TRUE(module);
      auto entry_funcs = GetEntryFunctions(*module);
      EXPECT_EQ(entry_funcs.size(), 2);
      EXPECT_EQ(entry_funcs[0].getSymName(), "entry_func_1");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top