Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 306 for ModuleOp (0.17 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

              signature_def_map,
          std::vector<std::string> signature_keys);
    
      // Runs calibration on `module_op` and returns a calibrated ModuleOp with
      // calibrated statistics embedded.
      absl::StatusOr<ModuleOp> Run(
          ModuleOp module_op,
          const ::stablehlo::quantization::QuantizationConfig& config) override;
    
     private:
      // Exports `module_op` to SavedModel at `dst_saved_model_path`. This is used
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.h

    namespace mlir::quant::stablehlo {
    
    // Represents a pair of `mlir::ModuleOp` and `tensorflow::SavedModelBundle`. The
    // SavedModelBundle complements the imported ModuleOp by providing access to
    // `tensorflow::Session` which may be useful when reading values from resources
    // (e.g. `TF::VarHandleOp`s).
    using ImportedMlirModuleOp =
        std::pair<OwningOpRef<ModuleOp>,
                  std::unique_ptr<::tensorflow::SavedModelBundle>>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/import_model.h

    // tf_executor dialect.
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ConvertGraphdefToMlir(
        const GraphDef& graphdef, const GraphDebugInfo& debug_info,
        const GraphImportConfig& specs, mlir::MLIRContext* context);
    
    // Given a Graph, returns a MLIR module containing the graph, expressed with
    // tf_executor dialect.
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ConvertGraphToMlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top