- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 142 for GetOperands (0.19 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
// while creating the ops so make sure there aren't any type changes between // the original op operands and the operands during the conversion. for (auto&& [old_val, new_val] : llvm::zip(op->getOperands(), operands)) { if (old_val.getType() != new_val.getType()) return failure(); } auto abstractOp = op->getRegisteredInfo(); if (!abstractOp) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc
for (auto *op : custom_ops) { builder.setInsertionPoint(op); Location loc = op->getLoc(); auto custom_op = builder.create<CustomTfOp>(loc, op->getResultTypes(), op->getOperands()); Region region; Block *new_block = new Block; region.push_back(new_block); builder.setInsertionPointToEnd(®ion.front()); Operation *inner_op = builder.clone(*op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc
// and mark the module as not valid for TFLite legalization. // Note: this might disable native variables in more than needed cases. // TODO(b/189370197): Enhance variable analysis. for (auto operand : op->getOperands()) { if (mlir::isa<TF::ResourceType>( getElementTypeOrSelf(operand.getType()))) { legalize_to_tfl = false; return WalkResult::interrupt(); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc
Operation* op = while_op.getOperation(); // Create new TFL While op that will be used to replace TF While op. auto new_op = OpBuilder(op).create<TFL::WhileOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), while_op.getIsStateless()); Location loc = while_op->getLoc(); CreateRegionWithCall(while_op.cond_function(), new_op.getCond(), loc); CreateRegionWithCall(while_op.body_function(), new_op.getBody(), loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc
llvm::SetVector<Operation*>* unprocessed_subgraphs) { Subgraph& current_subgraph = subgraphs_.find(current_graph_call)->second; std::vector<Subgraph*> input_subgraphs; for (auto input : current_graph_call.getOperands()) { func::CallOp input_call = GetProducerCallOpOrNull(input); // If the input subgraph is not processed yet, we just go ahead and process // that one first. if (input_call == nullptr) continue;
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/tensorflow/transforms/tpu_host_computation_expansion.cc
if (IsTrivialUnaryOperation(&cluster_op) || HasOutsideCompilationAttribute(&cluster_op)) { auto walk_result = cluster_op.walk([&](Operation* op) { for (Value operand : op->getOperands()) { Operation* operand_op = GetOpOfValue(operand); if (head_outside_compiled_ops.count(operand_op)) continue; if (operand_op->getParentRegion() == cluster_region)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc
LogicalResult match(Operation* op) const override { if (isa<TF::CastOp, TF::ConstOp>(op) || op->getName().hasTrait<OpTrait::ZeroOperands>()) { return failure(); } for (Value input : op->getOperands()) { if (getElementTypeOrSelf(input).isBF16()) { return success(); } } for (Value value : op->getResults()) { if (getElementTypeOrSelf(value).isBF16()) { return success();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc
// results. void RemoveIdentityFromRegion(Region& region) { region.walk([](Operation* op) { if (isa<TF::IdentityOp, TF::IdentityNOp>(op)) { op->replaceAllUsesWith(op->getOperands()); op->erase(); } }); } void TPUIdentityPruning::runOnOperation() { SmallVector<tf_device::ClusterOp, 4> clusters; getOperation().walk(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
// inputs. SmallVector<Value, 4> inputs; inputs.reserve(op_with_region->getNumOperands()); for (Value operand : op_with_region->getOperands()) { const Type operand_type = operand.getType(); if (mlir::isa<NoneType>(operand_type)) { inputs.push_back(operand); continue; } const Type element_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0)