- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 77 for getDefiningOp (0.22 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td
"$0.getDefiningOp())">; def : Pat<(MHLO_DotOp:$old_value StaticShapeTensorOf<[TF_ElementType]>:$lhs, StaticShapeTensorOf<[TF_ElementType]>:$rhs, $precision_config), (ConvertDotOp $old_value)>; def ConvertDotGeneralOp : NativeCodeCall<"ConvertDotGeneralOp($_builder, " "$0.getDefiningOp())">; def : Pat<(MHLO_DotGeneralOp:$old_value
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 03 08:58:22 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
// the `src_root` cluster. ValuesConstraintSet constraints = members[src_root].constraints; members[dst_root].constraints.Walk([&](Value v, ValueConstraint constraint) { Operation *op = v.getDefiningOp(); if (op && filter(op)) constraints.Insert(v, constraint); }); // Update `src_root` constraints only if we can propagate them. if (succeeded(PropagateValuesConstraints(worklist, filter, policies,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
continue; } // Add constant at start of region. auto const_builder = OpBuilder::atBlockBegin(®ion->front()); auto const_value = const_builder.clone(*extern_value.getDefiningOp()); replaceAllUsesInRegionWith(extern_value, const_value->getResult(0), *region); } } return llvm::to_vector<4>(extern_values); }
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/executor_island_coarsening.cc
for (Value input : island.getControlInputs()) { Operation* def = input.getDefiningOp(); DCHECK_EQ(def->getParentOp(), graph); try_update_current_candidate(def); } // Check island data operands. island.walk([&](Operation* op) { for (Value input : op->getOperands()) { Operation* def = input.getDefiningOp(); if (!def || def->getParentOp() != graph) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
all_stats_ops.pop_back(); if (Operation* def = stats_op.getArg().getDefiningOp()) { if (!IsSameScaleOp(def, op_quant_scale_spec_getter)) { continue; } for (Value input : def->getOperands()) { if (auto next_stats = dyn_cast_or_null<quantfork::StatisticsOp>( input.getDefiningOp())) { redundant_stats_ops.insert(next_stats);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc
xla::HloFunctionImporter::ImportInstructions( *hlo_module->entry_computation(), arguments, symbol_table, &builder)); mhlo::TupleOp root_tuple = mlir::dyn_cast_or_null<mhlo::TupleOp>(root_value.getDefiningOp()); if (!root_tuple) { return tsl::errors::InvalidArgument( "Imported XLA Root Value is not a tuple op"); } return root_tuple; } LogicalResult Tf2XlaRewriter::PrepareParams() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 18.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc
"Func must have ReturnOp as last op and must return 1 value"); } auto def_op = return_op.getOperand(0).getDefiningOp(); auto fold_results = ConstantFoldOpIfPossible(def_op); if (fold_results.size() != 1 || !llvm::isa<TF::ConstOp>(fold_results[0].getDefiningOp())) { return absl::InternalError("Failed to evaluate TF ops"); } // Convert output tensor back to xla::Literal.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 01:03:21 UTC 2024 - 35.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
std::stack<Operation*> op_stack; while (!value_queue.empty()) { Value current_value = value_queue.front(); value_queue.pop(); Operation* defining_node = current_value.getDefiningOp(); if (defining_node == nullptr) continue; op_stack.push(defining_node); for (Value arg : defining_node->getOperands()) { if (!argument_set.contains(arg.getImpl())) { value_queue.push(arg);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
llvm::SmallPtrSet<Operation*, 4>* skipped = nullptr) { while (auto result = mlir::dyn_cast<OpResult>(v)) { if (!(allow_other_use || v.hasOneUse())) break; auto op = result.getDefiningOp(); if (!llvm::isa<TF::IdentityOp, TF::IdentityNOp>(op)) { break; } v = op->getOperand(result.getResultNumber()); if (skipped) skipped->insert(op); } return v; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
// we set its value as a const tensor of specified size and value 0. EXPECT_TRUE( mlir::cast<ElementsAttr>(mlir::cast<mlir::arith::ConstantOp>( it->getOpOperand(15).get().getDefiningOp()) .getValue()) .getValues<FloatAttr>()[0] .getValue() .isExactlyValue(0.0f)); EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0)