- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 83 for getDefiningOp (0.16 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc
}; // If the output is produced by a callop, will return the callop, otherwise, // will return nullptr. inline func::CallOp GetProducerCallOpOrNull(Value output) { Operation* output_op = output.getDefiningOp(); if (output_op != nullptr && llvm::isa<func::CallOp>(output_op)) { return llvm::cast<func::CallOp>(output_op); } return nullptr; } class PickSubgraphsPass
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h
} } // Adds the defining op of index-th operand of op to the work list. void AddOperandToList(Operation* op, const int index) { if (Operation* operand_op = op->getOperand(index).getDefiningOp(); operand_op != nullptr) { work_list_.push_back(operand_op); } } // Returns the quantization params for the bias input from the non-bias
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc
llvm::SmallVector<Operation*> GetPredecessors(Operation* op) { llvm::SmallVector<Operation*> predecessors; for (auto operand : op->getOperands()) { if (Operation* pred = operand.getDefiningOp()) { pred->walk([&](mlir::Operation* opinexecutor) { predecessors.push_back(opinexecutor); }); } } return predecessors; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 06:51:01 UTC 2024 - 21.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
host_op->walk([&](Operation* op) { // Add any operations that provide variant inputs to the cluster. for (auto value : op->getOperands()) { Operation* input_defining_op = value.getDefiningOp(); if (IsVariant(value) && input_defining_op && !HasOutsideCompiledAncestor(input_defining_op) && !input_defining_op->hasAttrOfType<StringAttr>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
// `tf.TPUPartitionedInputV2` op is input to the i-th logical device. if (auto partitioned_input = llvm::dyn_cast_or_null<mlir::TF::TPUPartitionedInputV2Op>( input_value.getDefiningOp())) { if (UnsupportedPartitionedShardingType(input_sharding_type)) return cluster_func->emitOpError() << "unsupported input sharding type "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:28:13 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// Returns a non-null value and can return `value` if backtracking is not // possible. Value BacktrackAnalysis::BacktrackValue(Value value) { while (Operation* op = value.getDefiningOp()) { int res_index = mlir::cast<OpResult>(value).getResultNumber(); if (auto graph = dyn_cast<tf_executor::GraphOp>(op)) { value = graph.GetFetch().getOperand(res_index);
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/translate/export_graphdef.cc
for (Value fetch_operand : fetch.getOperands()) { if (mlir::isa<mlir::tf_executor::ControlType>(fetch_operand.getType())) { Operation* defining_op = GetIslandInnerOpOrSelf(fetch_operand.getDefiningOp()); auto node_it = nodes_.find(defining_op); TF_RET_CHECK(node_it != nodes_.end()); control_ret_nodes->insert(node_it->second); } } return absl::OkStatus(); }
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
for (Value fetch_operand : fetch.getOperands()) { if (mlir::isa<mlir::tf_executor::ControlType>(fetch_operand.getType())) { Operation* defining_op = GetIslandInnerOpOrSelf(fetch_operand.getDefiningOp()); auto node_it = nodes_.find(defining_op); TF_RET_CHECK(node_it != nodes_.end()); control_ret_nodes->insert(node_it->second); } } return absl::OkStatus(); }
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/transforms/tensor_list_ops_decomposition.cc
// returns an error. LogicalResult GetConstShapeValue(Value shape_value, llvm::SmallVector<int64_t, 8>* shape) { auto shape_op = shape_value.getDefiningOp(); if (!shape_op) return failure(); auto shape_const_op = llvm::dyn_cast<TF::ConstOp>(shape_op); if (!shape_const_op) return failure(); for (const auto& v : shape_const_op.getValue().getValues<APInt>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0)