- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getArgOperands (0.42 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.td
// Combines the two variadic arguments ($in_tensors and $captured_tensors). def GetBatchFunctionOpArgOperands: NativeCodeCall<"cast<TF::BatchFunctionOp>($0[0].getDefiningOp()).getArgOperands()">; // Replaces `TF_BatchFunctionOp` into `TF_PartitionedCallOp` that calls the // same $f. This may be required, for example, when inlining is desired,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 18:58:35 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
if (auto func = dyn_cast<func::FuncOp>(call.resolveCallable())) { PropagatePotentiallyWrittenUpFromCallee(func.getRegion(), call.getArgOperands()); } return; } if (auto if_op = dyn_cast<TF::IfOp>(op)) { for (auto callee : {if_op.then_function(), if_op.else_function()}) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
op.getOperation()->getOperand(to)); } BitVector operands_to_erase(op->getNumOperands()); int args_start = op->getNumOperands() ? op.getArgOperands().getBase()->getOperandNumber() : 0; operands_to_erase |= args_to_erase.lookup(func); operands_to_erase <<= args_start; op->eraseOperands(operands_to_erase);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
if (!callee_info) break; std::optional<int> passthrough_arg = callee_info.value()->GetArg(res_index); if (!passthrough_arg) break; value = call.getArgOperands()[passthrough_arg.value()]; } else if (isa<tf_device::LaunchOp, tf_device::ClusterOp>(op)) { value = op->getRegion(0).front().getTerminator()->getOperand(res_index); } else { break; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
Region& first_region = *first->getParentRegion(); Region& second_region = *second->getParentRegion(); for (auto it : llvm::zip(first.getArgOperands(), second.getArgOperands())) { // Get the defining Op, skipping over casts. auto get_defining_op = [](Value value) { while (auto cast_op = llvm::dyn_cast_or_null<CastOp>(value.getDefiningOp())) {
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/tensorflow/transforms/resource_device_inference.cc
} LLVM_DEBUG(llvm::dbgs() << "Visiting call to function @" << func.getName() << "\n"); if (failed(propagate_operands_to_callee_arguments( call, call.getArgOperands(), {func}, func_res))) return WalkResult::interrupt(); } return WalkResult::advance(); }); if (walk_res.wasInterrupted()) return signalPassFailure(); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 03:47:00 UTC 2023 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.td
let results = (outs Variadic<TFR_allowedResultType>:$outs); let extraClassDeclaration = [{ // Get the argument operands to the called function. operand_range getArgOperands() { return getArgs(); } MutableOperandRange getArgOperandsMutable() { return getArgsMutable(); } // Return the callee of this operation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 10:54:29 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td
); let results = (outs Variadic<AnyType>:$results ); let extraClassDeclaration = [{ // Gets the argument operands to the called function. operand_range getArgOperands() { return getArgs(); } MutableOperandRange getArgOperandsMutable() { return getArgsMutable(); } // returns the function that this operation will launch. func::FuncOp getFuncOp() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 23:53:20 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
); let results = (outs Variadic<TF_Tensor>:$output ); let extraClassDeclaration = [{ // Gets the argument operands to the called function. operand_range getArgOperands() { return getArgs(); } MutableOperandRange getArgOperandsMutable() { return getArgsMutable(); } // Returns the callee of this operation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
auto callee = dyn_cast<func::FuncOp>(call.resolveCallable()); for (const auto& entry : AccessedGradients({callee}, module)) for (const string& source : entry.getSecond()) insert(call.getArgOperands()[entry.getFirst()], source, func_block); } }); } return result; } // Contains cached information for decomposed callee functions for (stateful) // partitioned call ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0)