- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 39 for TensorFlowDialect (0.28 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets_test.cc
registry.insert<arith::ArithDialect>(); registry.insert<func::FuncDialect>(); registry.insert<tensor::TensorDialect>(); registry.insert<shape::ShapeDialect>(); registry.insert<TF::TensorFlowDialect>(); registry.insert<chlo::ChloDialect>(); return registry; } class XlaLegalizeTargetsTest : public testing::Test { public: XlaLegalizeTargetsTest() : context_(GetDefaultDialectRegistry()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op_test.cc
TEST(TfQuantOpTest, applyUniformQuantization) { MLIRContext context; OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context))); OpBuilder builder(&module->getBodyRegion()); context.loadDialect<TF::TensorFlowDialect, quant::QuantizationDialect, func::FuncDialect>(); EmptyPatternRewriter pattern_rewriter(builder); Value value = CreateConstValue<float>(builder, module->getLoc(), {1024, 2},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/test_base.h
: ctx_(stablehlo::CreateMlirContextForQuantization()), builder_(ctx_.get()) { ctx_->loadDialect< arith::ArithDialect, mlir::stablehlo::StablehloDialect, func::FuncDialect, TF::TensorFlowDialect, TFL::TensorFlowLiteDialect, tf_saved_model::TensorFlowSavedModelDialect, tf_executor::TensorFlowExecutorDialect, quant::QuantizationDialect, quantfork::QuantizationForkDialect>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc
} llvm::StringRef getDescription() const final { return "Suitable transformation for gpu only."; } void getDependentDialects(DialectRegistry& registry) const override { registry.insert<TF::TensorFlowDialect>(); } void runOnOperation() override; }; void DeviceTransformGPUPass::runOnOperation() { auto func = getOperation(); auto* ctx = &getContext();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 18:43:51 UTC 2022 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tools/stablehlo_quant_opt.cc
// Register StableHLO Quantizer pass pipelines. mlir::quant::stablehlo::RegisterPassPipelines(); mlir::DialectRegistry registry; registry.insert<mlir::scf::SCFDialect, mlir::TF::TensorFlowDialect, mlir::tf_saved_model::TensorFlowSavedModelDialect, mlir::func::FuncDialect, mlir::shape::ShapeDialect, mlir::arith::ArithDialect, mlir::tf_type::TFTypeDialect,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 07:37:34 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc
// This is a brief description of the pass. return "Convert tf.CustomAggregator op to quant.Stats"; } void getDependentDialects(DialectRegistry ®istry) const override { registry.insert<TF::TensorFlowDialect>(); registry.insert<quant::QuantizationDialect>(); registry.insert<quantfork::QuantizationForkDialect>(); } void runOnOperation() override; }; class ConvertCustomAggregationOpToQuantStats
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size_test.cc
namespace mlir { namespace quant { namespace { using ::testing::Eq; class GetSizeInBytesTest : public ::testing::Test { protected: GetSizeInBytesTest() : ctx_() { ctx_.loadDialect<TF::TensorFlowDialect>(); } MLIRContext ctx_; }; TF::ConstOp ParseConstOp(const absl::string_view const_op_str, Block& block, MLIRContext& ctx) { const LogicalResult parse_result =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 14 04:37:13 UTC 2022 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
LogicalResult status = EvaluateOperation(inst, inputs, constants); results.assign(constants.begin(), constants.end()); return status; } static bool init_hooks = ([] () { TensorFlowDialect::RegisterConstantFoldHook(ConstantFoldFallbackHook); }(), true); } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
using ::testing::IsNull; using ::testing::NotNull; using ::testing::SizeIs; class ConvertAssetArgsTest : public ::testing::Test { protected: ConvertAssetArgsTest() { ctx_.loadDialect<func::FuncDialect, TF::TensorFlowDialect, tf_saved_model::TensorFlowSavedModelDialect>(); } // Parses `module_op_str` to create a `ModuleOp`. Checks whether the created // module op is valid.
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/stablehlo/transforms/passes.td
"mlir::TFL::TFLDialect", ]; } def LegalizeHloToTfPass : Pass<"tf-legalize-hlo", "ModuleOp"> { let summary = "Legalize from MHLO to the TF dialect"; let dependentDialects = ["TF::TensorFlowDialect"]; let constructor = "mlir::odml::CreateLegalizeHloToTfPass()"; } def LegalizeHloToTfLitePass : Pass<"tfl-legalize-hlo", "mlir::ModuleOp"> { let summary = "Legalize from MHLO to the TFLite dialect";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 5.6K bytes - Viewed (0)