- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getOperandTypes (0.23 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
LogicalResult IfRegionOp::verifyRegions() { IfRegionOp op = *this; TypeRange then_types = op.getThenBranch().front().getTerminator()->getOperandTypes(); TypeRange else_types = op.getElseBranch().front().getTerminator()->getOperandTypes(); TypeRangeWithDesc results{op.getResultTypes(), "result"}; TypeRangeWithDesc then_results{then_types, "then result"};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
TypeRange body_result, bool shape_invariant) { const TypeRangeWithDesc input_type = {op->getOperandTypes(), "input"}; const TypeRangeWithDesc result_type = {op->getResultTypes(), "result"}; constexpr int kNumRegionTypeLists = 3; const std::array<TypeRangeWithDesc, kNumRegionTypeLists> region_types = {{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
const int kLargeElementsAttr = 16; std::string op_str; llvm::raw_string_ostream os(op_str); inst->getName().print(os); os << "("; if (!inst->getOperandTypes().empty()) { bool first = true; for (Type operand_type : inst->getOperandTypes()) { os << (!first ? ", " : ""); first = false; os << operand_type; } } os << ") -> ("; if (!inst->getResultTypes().empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
// If not all the operand and result types are the same, just use the // generic assembly form to avoid omitting information in printing. auto resultType = op->getResult(0).getType(); if (llvm::any_of(op->getOperandTypes(), [&](Type type) { return type != resultType; })) { p.printGenericOp(op, /*printOpName=*/false); return; } p << ' '; p.printOperands(op->getOperands());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
element_type = shaped_type.getElementType(); } return element_type.isBF16() || element_type.isF32(); }; for (Type t : binary_op->getOperandTypes()) { if (!is_fusable_type(t)) { return false; } } return true; } }; using ScalarizeSplatConstantForSub =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
// Refine graph's type given more precise fetch. auto fetch = graph.GetFetch(); bool all_equal = true; for (auto it : llvm::zip_first(graph.getResults(), fetch.getOperandTypes())) { auto rt = std::get<1>(it); if (rt == std::get<0>(it).getType()) continue; std::get<0>(it).setType(rt); all_equal = false; } if (!all_equal) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
// HLO WhileOp should have two regions: cond and body. if (while_op->getNumRegions() != 2) return failure(); // This rule doesn't support mhlo::WhileOp with tuple inputs. for (auto type : while_op->getOperandTypes()) { if (mlir::isa<TupleType>(type)) return failure(); } // Creates a TF::WhileRegionOp to replace the mhlo::WhileOp. HLO WhileOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)