- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 295 for ModuleOp (0.44 sec)
-
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
return absl::OkStatus(); } // Converts arg_shapes to xla::Shape's and store into xla_input_shapes. Status GetXlaInputShapes( mlir::ModuleOp module, llvm::ArrayRef<TensorOrResourceShape> arg_shapes, bool use_tuple_args, const XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns, std::vector<xla::Shape>* xla_input_shapes) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/passes.h
// Legalizes TF/XLA communication ops (TF dialect) to HLO dialect communication // ops. std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFCommunicationPass(); // Legalizes TF/XLA collective ops (TF dialect) to HLO dialect collective // ops. std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFCollectivePass(); // Verifies that the TF/XLA ops have all been lowered to MHLO.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
} } return success(); } LogicalResult SessionInitializerOp::verify() { SessionInitializerOp session_initializer = *this; mlir::SymbolTable symbol_table( session_initializer->getParentOfType<ModuleOp>()); for (auto sym_ref : session_initializer.getInitializers()) { auto init_func_op = symbol_table.lookup<mlir::func::FuncOp>( mlir::cast<FlatSymbolRefAttr>(sym_ref).getValue()); if (!init_func_op)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h
mlir::ModuleOp module, const GraphExportConfig& configs); // Converts an MLIR module to TensorFlow graph and FunctionLibraryDefinition. // The "main" function of the module is stored in the graph and the rest of // functions are stored in the library. Control ret nodes are stored separately // in `control_ret_nodes`. Status ConvertMlirToGraph(mlir::ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc
#include "mlir/IR/OpDefinition.h" // from @llvm-project #include "mlir/Support/LLVM.h" // from @llvm-project #include "tensorflow/core/platform/errors.h" namespace tensorflow { void PopulateTfVersions(mlir::ModuleOp module, const VersionDef& versions) { mlir::Builder b(module.getContext()); auto producer = b.getNamedAttr("producer", b.getI32IntegerAttr(versions.producer())); auto min_consumer = b.getNamedAttr(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.h
static constexpr absl::string_view kName = "quant_ptq_weight_only"; explicit WeightOnlyPtqComponent(absl::Nonnull<MLIRContext*> ctx); absl::StatusOr<ModuleOp> Run( ModuleOp module_op, const ::stablehlo::quantization::QuantizationConfig& config) override; private: absl::Nonnull<MLIRContext*> ctx_; }; // Runs weight-only quantization on a SavedModel at
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 12:18:22 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/report.h
// quantization summary from a quantized `ModuleOp` and emit it in a human- and // machine-readable format. class QuantizationReport { public: QuantizationReport() = default; // Initializes `QuantizationReport` by collecting `QuantizationResults` from // `module_op`. explicit QuantizationReport(ModuleOp module_op); // Adds a `QuantizationResult` to the report.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 10:10:34 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc
func.return %0 : 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); EXPECT_TRUE(IsSupportedByReplicatedBridge(*module)); } TEST(HasTPUPartitionedCallOpInModule, HasTPUPartitionedCallModule) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 19:51:50 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.h" namespace stablehlo::quantization { void DisableDebugging(mlir::ModuleOp module_op) { module_op.walk( [](mlir::TF::DumpTensorOp dump_op) { dump_op.setEnabled(false); }); } void ChangeToQuantizedFilename(mlir::ModuleOp module_op) { module_op.walk([](mlir::TF::DumpTensorOp dump_op) { dump_op.setFileName("quantized_tensor_data.pb"); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 00:17:12 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc
/*RequiresNullTerminator=*/false); llvm::SourceMgr source_mgr; source_mgr.AddNewSourceBuffer(std::move(mem_buffer), llvm::SMLoc()); OwningOpRef<ModuleOp> module_ref = parseSourceFile<ModuleOp>(source_mgr, module.getContext()); // Inline and optimize loaded functions. MLIRContext* context = &getContext(); PassManager pm(context); pm.addPass(createInlinerPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 8.7K bytes - Viewed (0)