Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for ModuleOp (0.11 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/lite/transforms/passes.h

    // pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateTrimFunctionsPass();
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTrimFunctionsPass(
        const std::vector<std::string>& trim_funcs_allowlist);
    
    // Creates an instance of the TensorFlow Lite dialect PrepareCompositeFunctions
    // pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePrepareCompositeFunctionsPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    std::unique_ptr<OperationPass<ModuleOp>> CreateQuantizeWeightsPass(
        const tensorflow::quantization::QuantizationOptions& quant_options);
    
    // Propagate quantized type through allowed ops.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePropagateQuantizeTypePass();
    
    // Create a pass that inserts dump tensor to quantizable layer's output.
    std::unique_ptr<OperationPass<ModuleOp>> CreateAddDumpTensorOpPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td

      }];
    }
    
    def RestoreFunctionNamePass : Pass<"stablehlo-restore-function-name", "ModuleOp"> {
      let summary = "Restores function name from XlaCallModule op.";
    }
    
    def QuantizeCompositeFunctionsPass : Pass<"stablehlo-quantize-composite-functions", "ModuleOp"> {
      let summary = "Quantize composite functions with QDQ input / outputs.";
      let options = [
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

          return %0 : tensor<1x3xf32>
        }
      }
    )mlir";
    
    TEST_F(IsOpQuantizableStableHloTest, ConstantOpQuantizable) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleConstantAdd);
      ASSERT_TRUE(module_op);
    
      auto test_func = module_op->lookupSymbol<func::FuncOp>("constant_add");
      ASSERT_THAT(test_func, NotNull());
    
      auto constant_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

    namespace tensorflow {
    namespace {
    
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GetMlirModuleFromString(
        llvm::StringRef string, mlir::MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
      auto status =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top