- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for IsStablehloOp (0.53 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc
EXPECT_TRUE(IsStablehloOp(*constant_op)); } TEST_F(StablehloTypeUtilsTest, IsStablehloOpFailsWithArithOp) { const OwningOpRef<mlir::arith::ConstantOp> constant_op = builder_.create<mlir::arith::ConstantOp>(builder_.getUnknownLoc(), builder_.getI32IntegerAttr(0)); EXPECT_FALSE(IsStablehloOp(*constant_op)); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 00:32:20 UTC 2024 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils.h
#include "stablehlo/dialect/StablehloOps.h" // from @stablehlo namespace mlir::quant::stablehlo { // Checks if an op is from StableHLO dialect. inline bool IsStablehloOp(Operation* op) { return op->getDialect()->getNamespace() == mlir::stablehlo::StablehloDialect::getDialectNamespace(); } } // namespace mlir::quant::stablehlo
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
if (current_depth > 5) { all_descendants.clear(); return false; } current_depth++; for (Operation* descendant : current_layer_descendants) { if (!IsStablehloOp(descendant) || !ops_to_add.contains(descendant)) { all_descendants.clear(); return false; } for (Operation* next_descendant : descendant->getUsers()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
} bool IsInStableHloOpRegion(Operation* op) { if (op == nullptr) return false; auto parent_op = op->getParentOp(); return parent_op != nullptr && stablehlo::IsStablehloOp(parent_op); } // Inserts the function to the symbol table of the module thread-safely. StringAttr InsertToSymbolTable(Operation& module, Operation& function, const StringRef func_name) {
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/lite/flatbuffer_operator.h
} // All encodings supported in StableHLO. return attr; } }; // Returns true if the op_code belongs to a stablehlo operation. bool IsStablehloOp(const tflite::OperatorCodeT &op_code); // Returns the MLIR op name for the flatbuffer operator corresponding to // `op_code`. std::string GetMlirOpNameFromOpCode(const ::tflite::OperatorCodeT &op_code);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
} const char* option_name = tflite::EnumNamePadding(padding); return builder.getStringAttr(option_name); } } // namespace bool mlir::IsStablehloOp(const tflite::OperatorCodeT& op_code) { llvm::StringRef op_name( tflite::EnumNameBuiltinOperator(tflite::GetBuiltinCode(&op_code))); return op_name.starts_with("STABLEHLO_"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0)