Home
last modified time | relevance | path

Searched refs:defining_op (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dtest_infer_shaped_type_pass.cc34 auto defining_op = op->getOperand(0).getDefiningOp(); in matchAndRewrite() local
36 llvm::dyn_cast_or_null<InferShapedTypeOpInterface>(defining_op); in matchAndRewrite()
40 op->getContext(), op->getLoc(), defining_op->getOperands(), in matchAndRewrite()
41 defining_op->getAttrDictionary(), defining_op->getRegions(), in matchAndRewrite()
72 auto defining_op = llvm::dyn_cast_or_null<InferShapedTypeOpInterface>( in matchAndRewrite() local
74 if (!defining_op) return failure(); in matchAndRewrite()
76 if (failed(defining_op.reifyReturnTypeShapes(rewriter, return_shapes))) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcluster_formation.cc80 Operation* defining_op = operand.getDefiningOp(); in CanMergeIntoCluster() local
83 if (defining_op->getBlock() != c.ops.front()->getBlock()) return true; in CanMergeIntoCluster()
86 if (defining_op->isBeforeInBlock(c.ops.front())) return true; in CanMergeIntoCluster()
93 if (defining_op->isBeforeInBlock(c.ops.back()->getNextNode()) && in CanMergeIntoCluster()
94 GetDevice(defining_op) == c.device) in CanMergeIntoCluster()
Dcross_host_transfer.cc106 Operation *defining_op = arg.getDefiningOp(); in runOnFunction() local
108 defining_op->getAttrOfType<StringAttr>(kOpDeviceAttr)) { in runOnFunction()
Dtpu_extract_outside_compilation.cc205 if (auto* defining_op = v.getDefiningOp()) { in GetExternalOperands() local
206 if (!op->isAncestor(defining_op) && in GetExternalOperands()
207 tpu_cluster->isAncestor(defining_op) && in GetExternalOperands()
208 !HasOutsideCompilationAncestor(defining_op) && in GetExternalOperands()
209 !llvm::isa<TF::_XlaRecvAtHostV2Op>(defining_op)) { in GetExternalOperands()
Dexecutor_tpuv1_island_coarsening.cc89 Operation* defining_op = operand.getDefiningOp(); in SortTopologically() local
90 if (!defining_op) continue; in SortTopologically()
92 block->findAncestorOpInBlock(*defining_op); in SortTopologically()
Dcluster_tf_ops_pass.cc144 Operation *defining_op = value.getDefiningOp(); in GetFunctionMetadatas() local
145 std::string defining_op_host = GetHost(defining_op); in GetFunctionMetadatas()
149 defining_op->getAttrOfType<StringAttr>(kDeviceAttr)) { in GetFunctionMetadatas()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dbreakup-islands.cc195 auto defining_op = operand.getDefiningOp(); in FindSourcesAndSinksInIsland() local
196 if (!defining_op || defining_op->getParentOp() != island) continue; in FindSourcesAndSinksInIsland()
198 result.sinks.erase(defining_op); in FindSourcesAndSinksInIsland()
Dexport_graphdef.cc441 Operation* defining_op = in GetControlRetNodes() local
443 auto node_it = nodes_.find(defining_op); in GetControlRetNodes()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dconvert_tfl_uint8.cc265 auto defining_op = terminator->getOperand(i).getDefiningOp(); in convert_graph_uint8_tensor() local
268 if (!defining_op) continue; in convert_graph_uint8_tensor()
269 Value input_val = defining_op->getResult(0); in convert_graph_uint8_tensor()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_with_tf2xla.cc543 auto defining_op = operand.getDefiningOp(); in GetExprForOperand() local
544 if (defining_op && matchPattern(defining_op, m_Constant(&const_attr))) { in GetExprForOperand()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc817 absl::flat_hash_map<int32_t, const tflite::OperatorT*> defining_op; in PruneSubgraph() local
821 defining_op[output] = op.get(); in PruneSubgraph()
828 if (auto& op = defining_op[output]) { in PruneSubgraph()
846 if (auto& op = defining_op[input]) { in PruneSubgraph()