- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 73 for graph_op (0.22 sec)
-
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/tests/split_into_island_per_op.mlir
// All tests also test for idempotence. // Test that functions must have a single graph op in their body, otherwise, the // pass will signal failure. // expected-error@+1 {{expected function to contain only a graph_op}} func.func @multiple_func_body_ops() { tf_executor.graph { tf_executor.island { "tf.NoOp"() : () -> () tf_executor.yield } tf_executor.fetch } tf_executor.graph {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 20.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/jit/encapsulate_subgraphs_pass.cc
return results_.at(OutputTensor(edge->src(), edge->src_output())); } Node* Encapsulator::Subgraph::MakeNodeImage(const Graph* graph_in, Node* node) { if (!graph_) { graph_.reset(new Graph(graph_in->op_registry())); graph_->set_versions(graph_in->versions()); } // TODO(b/116981129): Enhance how the device for the encapsulated subgraph is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 51K 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/jit/encapsulate_subgraphs_pass.h
// dependency is lost. Status EncapsulateSubgraphsInFunctions( string group_attribute, const Graph& graph_in, const RewriteSubgraphFn& rewrite_subgraph_fn, bool reuse_existing_functions, std::unique_ptr<Graph>* graph_out, FunctionLibraryDefinition* library); // The attribute that marks function calls produced by the encapsulate
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 12 03:59:36 UTC 2022 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
void runOnOperation() override; private: bool ShouldPreserveOp(Operation* op); bool ShouldPreserveIsland(IslandOp island); void PruneGraph(GraphOp graph); llvm::SmallDenseSet<mlir::StringAttr, 4> ops_to_preserve_ids_; }; // Checks if a tf_executor.Graph can be pruned. // For TensorFlow V1.0 compatibility: when importing a graph without providing
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K 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/update_control_dependencies.cc
num_control_inputs_removed += island.getControlInputs().size(); island.getControlInputsMutable().clear(); } else if (auto fetch = dyn_cast<FetchOp>(op)) { GraphOp graph = fetch->getParentOfType<GraphOp>(); int num_control_fetches = fetch.getNumOperands() - graph.getNumResults(); if (num_control_fetches > 0) { fetch.getFetchesMutable().erase(graph.getNumResults(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 07:53:51 UTC 2024 - 8.4K bytes - Viewed (0)