- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 142 for GetOperands (0.32 sec)
-
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
TF::TensorListSetItemOp op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const { Location loc = op.getLoc(); Value input = adaptor.getOperands()[0]; Value index = adaptor.getOperands()[1]; Value item = adaptor.getOperands()[2]; IntegerType shape_dtype = rewriter.getIntegerType(32); auto item_rank = rewriter.create<TF::RankOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
llvm::SmallSetVector<Value, 4> new_launch_op_results; new_launch_op_results.insert( old_launch_op->GetBody().getTerminator()->getOperands().begin(), old_launch_op->GetBody().getTerminator()->getOperands().end()); for (Value operand : tpu_copy_with_dynamic_shape_op->getOperands()) { if (GetOpOfValue(operand)->getParentRegion() == tpu_copy_with_dynamic_shape_op->getParentRegion()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
Operation* terminator = cluster.GetBody().getTerminator(); llvm::SmallSetVector<Value, 4> cluster_results_set; cluster_results_set.insert(terminator->getOperands().begin(), terminator->getOperands().end()); auto cluster_ops = llvm::reverse(cluster.GetBody().without_terminator()); for (Operation& cluster_op : cluster_ops) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
llvm::enumerate(cluster_func_op.getOperands())) { auto device_launch_op = llvm::dyn_cast<tf_device::LaunchOp>( GetOpOfValue(cluster_func_operand.value())); if (!device_launch_op) continue; for (auto result : llvm::zip( device_launch_op.getResults(), device_launch_op.GetBody().getTerminator()->getOperands())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
return CreateListReserveOptions(context, tflite_type); } return {}; } bool HasVariantInputOrOutput(Operation* op) { const bool has_variant_input = llvm::any_of(op->getOperands(), [](Value val) { return val.getType().cast<TensorType>().getElementType().isa<VariantType>(); }); const bool has_variant_output = llvm::any_of(op->getResultTypes(), [](Type t) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
} } if (!newType) { return failure(); } rewriter.replaceOpWithNewOp<UnrealizedConversionCastOp>(op, newType, op->getOperands()); return success(); } }; class HandleCall : public OpInterfaceRewritePattern<CallOpInterface> { // Optional-agnostic pattern that propagates types across the program.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc
type.cast<TensorType>().getElementType().isa<TF::ResourceType>()); } SmallVector<Value> GetAccessedResources(Operation& op) { SmallVector<Value, 4> accessed_resources; for (auto operand : op.getOperands()) { if (!IsResourceType(operand.getType())) continue; accessed_resources.push_back(operand); } return std::move(accessed_resources); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc
neighbors.push_back(arg.getArgNumber()); continue; } if (!node.getDefiningOp()) continue; for (Value operand : node.getDefiningOp()->getOperands()) { if (visited.contains(operand)) continue; queue.push_back(operand); visited.insert(operand); } } } void FindConsumedOp(Operation *start_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr); bool should_fold = llvm::all_of( op.getOperands(), [&op_device, &should_fold_op_func](const Value &arg) { return should_fold_op_func(arg, op_device); }); if (should_fold) { op.replaceAllUsesWith(op.getOperands()); op.erase(); } return WalkResult::advance(); }); } } // namespace
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/tensorflow/utils/shape_inference_utils.cc
assert(op->getName().getDialectNamespace() == TensorFlowDialect::getDialectNamespace()); return tfg::InferReturnTypeComponentsForTFOp( location, op, op->getOperands(), graph_version, operand_as_constant_fn, op_result_as_shape_fn, result_element_type_fn, tensorflow::GetAttrValuesFromOperation, inferred_return_shapes); } } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Dec 22 13:13:44 UTC 2022 - 1.7K bytes - Viewed (0)