- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 61 for call_op (0.14 sec)
-
tensorflow/compiler/mlir/tfr/tests/ops.mlir
func.func private @tensor_invalid_1() -> !tfr.tensor<[N, T> // ----- // expected-error@+1 {{unbalanced}} func.func @tensor_invalid_2() -> !tfr.tensor<[N, T] // ----- // CHECK-LABEL: call_op func.func @call_op(%arg0: !tfr.tensor<T>, %arg1: !tfr.tensor_list<TL>, %arg2: i32) -> !tfr.tensor<K> { %0 = tfr.call @Foo(%arg0, %arg1, %arg2) : (!tfr.tensor<T>, !tfr.tensor_list<TL>, i32) -> !tfr.tensor<K> func.return %0 : !tfr.tensor<K>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 14 22:15:06 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc
// to set attributes specific to this pass. void AddAttrs(OpsAdded& ops_added, OpBuilder& builder, int func_count) { func::FuncOp& added_func_op = ops_added.func_op; func::CallOp& added_call_op = ops_added.call_op; StringAttr interface_name = builder.getStringAttr(absl::StrCat("func_", func_count)); added_func_op->setAttr(kInterfaceNameAttr, interface_name);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
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/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
bool IsQintToIntCast(Operation *op) { auto cast_op = llvm::dyn_cast<TF::CastOp>(op); return cast_op && IsIllegalType(cast_op.getX().getType()) && ToLegalType(cast_op.getX().getType()) == cast_op.getY().getType(); } bool IsIntToQintCast(Operation *op) { auto cast_op = llvm::dyn_cast<TF::CastOp>(op); return cast_op && IsIllegalType(cast_op.getY().getType()) && ToLegalType(cast_op.getY().getType()) == cast_op.getX().getType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
if_op.erase(); return success(); } LogicalResult ConvertCaseOp(CaseOp case_op) { OpBuilder builder(case_op); auto case_region = builder.create<TF::CaseRegionOp>( case_op.getLoc(), case_op.getResultTypes(), case_op.getBranchIndex(), case_op.getIsStateless(), case_op.getBranches().size()); CopyDeviceAndUnderscoredAttributes(case_op, case_region);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
// only executes ops with no side effects. mutable llvm::SmallDenseMap<Operation*, bool> is_pure_function_; }; bool OpSideEffectCollector::IsCallToPureFunction(Operation* callOp) const { auto call = llvm::dyn_cast<CallOpInterface>(callOp); if (!call) return false; // not a call func::FuncOp func_op = dyn_cast<func::FuncOp>(call.resolveCallable( &symbol_table_collection_)); return IsPureFunction(func_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
rewriter.replaceOpWithNewOp<TFR::ConstOp>(bl_op, array_attr); return success(); } }; quant::QuantizedType getQuantizedElementType(CastOp cast_op) { if (!cast_op || !cast_op.getInputElementType()) { return {}; } return cast_op.getInputElementType() .cast<TypeAttr>() .getValue() .dyn_cast<quant::QuantizedType>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
auto uses = func.getSymbolUses(module); if (!uses) continue; for (auto& use : *uses) { // Only `mlir::func::CallOp` is supported as this requires knowing how // to rewrite arguments and results to a function. if (!isa<mlir::func::CallOp>(use.getUser())) continue; auto caller_parent_func = use.getUser()->getParentOfType<func::FuncOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc
llvm::SmallSetVector<Operation*, 4> GetAllOpsFromIf(TF::IfRegionOp if_op) { llvm::SmallSetVector<Operation*, 4> all_ops; all_ops.insert(if_op); for (Operation& op : if_op.getThenBranch().front()) { all_ops.insert(&op); } for (Operation& op : if_op.getElseBranch().front()) { all_ops.insert(&op); } return all_ops; } // Returns whether it is safe to merge `second_if` IfRegion into `first_if`
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
} if_op.getResult(i).replaceAllUsesWith( if_op.getOperand(then_forward_input + 1)); } if_op.erase(); return success(); } template <typename CallOp> LogicalResult HandlePartitionedCallOp( CallOp call, func::FuncOp callee, ModuleOp module, llvm::SmallDenseMap<Value, TensorArrayStats>* stats, llvm::StringMap<PartitionedCallTensorArrayOpsInfo>*
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0)