- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for graph_op (0.29 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
func.setType(ftype); // Rewrite GraphOp to have same number of results as the // function. OpBuilder builder(graph_op); auto new_graph_op = builder.create<GraphOp>(graph_op.getLoc(), new_result_types); new_graph_op.getRegion().takeBody(graph_op.getRegion()); graph_op->replaceAllUsesWith( new_graph_op->getResults().drop_back(num_resources)); graph_op.erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
} // Appends `value` to the arguments of the `FetchOp` of `graph_op`. void AppendValueToFetch(GraphOp graph_op, Value value) { FetchOp old_main_fetch = graph_op.GetFetch(); auto fetches = llvm::to_vector(old_main_fetch.getFetches()); fetches.emplace_back(value); auto builder = OpBuilder::atBlockTerminator(&graph_op.GetBody()); builder.create<FetchOp>(old_main_fetch.getLoc(), std::move(fetches));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
// * Its GraphOp should only have control outputs. // * "tf_saved_model.initializer_type" attribute must exist. LogicalResult ValidateInitFunc(func::FuncOp init_func_op) { GraphOp graph_op = GetGraphOpFromFuncOp(init_func_op); if (!graph_op) return success(); // Consider empty FuncOp valid. FetchOp fetch_op = graph_op.GetFetch(); for (const Value fetch : fetch_op.getFetches()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
} Exporter exporter(&configs, graph.get(), tf_dialect, &symbol_table); auto graph_op = llvm::cast<mlir::tf_executor::GraphOp>(block.front()); // Set input and output names and increment the use counter for them to help // generate unique names. if (!output_names.empty()) { const int num_data_results = graph_op.getNumResults(); const int64_t output_names_size = output_names.size();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
} Exporter exporter(&configs, graph.get(), tf_dialect, &symbol_table); auto graph_op = llvm::cast<mlir::tf_executor::GraphOp>(block.front()); // Set input and output names and increment the use counter for them to help // generate unique names. if (!output_names.empty()) { const int num_data_results = graph_op.getNumResults(); const int64_t output_names_size = output_names.size();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
builder_.setInsertionPointToEnd(&graph_op.getBody().front()); builder_.create<mlir::tf_executor::FetchOp>(graph_op.getLoc(), inst_to_return); builder_.setInsertionPointToEnd(bb); builder_.create<mlir::func::ReturnOp>(mlir::UnknownLoc::get(context_), graph_op.getResults()); func.setAllArgAttrs(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
} return changed; } bool ShapeInference::InferShapeForNonTFDialectOperation(Operation* op) { if (auto graph_op = dyn_cast<tf_executor::GraphOp>(op)) { return ForceTypeForPassThroughOperands(graph_op.GetFetch(), graph_op.GetFetch().getFetches(), op->getResults()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
return success(); } }; // This pattern matches GraphOps with only one island, pulls out all inner ops // of the island to the block containing the GraphOp, and then removes the // GraphOp. struct HoistInnerOpsSingleIslandGraph : public OpRewritePattern<GraphOp> { using OpRewritePattern<GraphOp>::OpRewritePattern; LogicalResult matchAndRewrite(GraphOp op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
func.setAllResultAttrs(res_attrs); rewriter.setInsertionPointToStart(func.addEntryBlock()); // In TFE, the function body is inlined in a GraphOp. Create a GraphOp // instance and move the regions from GraphFuncOp to GraphOp. auto executor_graph = rewriter.create<tf_executor::GraphOp>( loc, func.getFunctionType().getResults()); // Replace the uses of block arguments with function arguments. Note that we
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
MergedIsland* GetOperandCandidateToMergeWith(GraphOp graph, MergedIsland& merged_island); // Attempt to find an island group that consumes a result, either control or // data, from one of the islands in the given `merged_island`. If no candidate // can be found, returns nullptr. MergedIsland* GetResultCandidateToMergeWith(GraphOp graph,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0)