- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 67 for call_op (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
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/lite/flatbuffer_export.cc
auto get_call_index = [&](mlir::Block& b) -> std::optional<int> { if (b.getOperations().size() != 2) return std::nullopt; if (auto call_op = dyn_cast<mlir::func::CallOp>(b.front())) return subgraph_index_map_.at(call_op.getCallee().str()); return std::nullopt; }; auto body_subgraph_index = get_call_index(op.getBody().front());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
bool IsQintToIntCast(Operation *op) { auto cast_op = llvm::dyn_cast<TF::CastOp>(op); return cast_op && IsIllegalType(cast_op.getX().getType()) && ToLegalType(cast_op.getX().getType()) == cast_op.getY().getType(); } bool IsIntToQintCast(Operation *op) { auto cast_op = llvm::dyn_cast<TF::CastOp>(op); return cast_op && IsIllegalType(cast_op.getY().getType()) && ToLegalType(cast_op.getY().getType()) == cast_op.getX().getType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
if_op.erase(); return success(); } LogicalResult ConvertCaseOp(CaseOp case_op) { OpBuilder builder(case_op); auto case_region = builder.create<TF::CaseRegionOp>( case_op.getLoc(), case_op.getResultTypes(), case_op.getBranchIndex(), case_op.getIsStateless(), case_op.getBranches().size()); CopyDeviceAndUnderscoredAttributes(case_op, case_region);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
constexpr float kRequantCost = 2.0; // TODO(renjieliu): Ideally this should consider different kinds of SOCs as // well. // Get total bytes transferred. int64_t GetTransferredTensorBytes(func::CallOp from_graph, func::CallOp to_graph) { int64_t total_size_transferred = 0; for (auto input : to_graph.getOperands()) { Operation* input_op = input.getDefiningOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
auto inputs = func_ty.getInputs(); block->addArguments(inputs, SmallVector<Location>(inputs.size(), loc)); mlir::func::CallOp call_op = rewriter.create<mlir::func::CallOp>( loc, func, func_ty.getResults(), block->getArguments()); rewriter.create<mhlo::ReturnOp>(loc, call_op.getResults()); } //===----------------------------------------------------------------------===// // Op converters.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
// only executes ops with no side effects. mutable llvm::SmallDenseMap<Operation*, bool> is_pure_function_; }; bool OpSideEffectCollector::IsCallToPureFunction(Operation* callOp) const { auto call = llvm::dyn_cast<CallOpInterface>(callOp); if (!call) return false; // not a call func::FuncOp func_op = dyn_cast<func::FuncOp>(call.resolveCallable( &symbol_table_collection_)); return IsPureFunction(func_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
auto uses = func.getSymbolUses(module); if (!uses) continue; for (auto& use : *uses) { // Only `mlir::func::CallOp` is supported as this requires knowing how // to rewrite arguments and results to a function. if (!isa<mlir::func::CallOp>(use.getUser())) continue; auto caller_parent_func = use.getUser()->getParentOfType<func::FuncOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/coro.go
// license that can be found in the LICENSE file. //go:build goexperiment.rangefunc && !windows package main /* #include <stdint.h> // for uintptr_t void go_callback_coro(uintptr_t handle); static void call_go(uintptr_t handle) { go_callback_coro(handle); } */ import "C" import ( "fmt" "iter" "runtime/cgo" ) func init() { register("CoroCgoIterCallback", func() { println("expect: OK")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.h
// within its purview are mutating in nature. void PropagatePotentiallyWrittenWithinUnhandledOp(Operation* op); // Given a Region associated with the callee and operands from the // corresponding callOp, propagate the potentially written decision to the // callOp's operands, if the corresponding region's arguments are potentially // written resources. void PropagatePotentiallyWrittenUpFromCallee(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 3K bytes - Viewed (0)