- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 80 for created (0.27 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc
builder.setInsertionPoint(op); for (auto& op_operand : op->getOpOperands()) { if (IsLargeFloatType(op_operand.get().getType())) { op_operand.set(builder.create<TF::CastOp>( op->getLoc(), ToBfloat16Type(op_operand.get().getType()), op_operand.get())); } } builder.setInsertionPointAfter(op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc
auto* ctx = func.getContext(); patterns.add<PushDownDequantize>(ctx); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace // Creates an instance of the TensorFlow Lite optimize op order pass. std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizeOpOrderPass() { return std::make_unique<OptimizeOpOrderPass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc
common_error_message_.clear(); error_collector_->Clear(); } void ErrorCollectorInstrumentation::runAfterPassFailed(Pass *pass, Operation *module) { // Create a new error if no errors collected yet. if (error_collector_->CollectedErrors().empty() && !common_error_message_.empty()) { error_collector_->ReportError(NewConverterErrorData(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 01:48:36 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
patterns->add<odml::ConvertCustomCallOp>(context); populateWithGenerated(*patterns); patterns->add<ConvertReduceOpToTFLiteArgmin, ConvertReduceOpToTFLiteArgmax>( context); } // Creates an instance of the pass. std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHloToTfLitePass() { return std::make_unique<LegalizeHloToTfLitePass>(); } // Registers the pass implementation
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/legalize_stablehlo_composite_to_tfl_custom.cc
builder.setInsertionPoint(composite); if (IsKVCacheCompositeOp(composite)) { return builder.create<TFL::CustomOp>( composite->getLoc(), composite->getResultTypes(), composite->getOperands().slice(2, 3), composite.getName(), CustomOption(&builder, custom_option_buffer)); } return builder.create<TFL::CustomOp>( composite->getLoc(), composite->getResultTypes(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc
namespace mlir { namespace odml { LogicalResult ConvertCustomCallOp::matchAndRewrite( mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor, ConversionPatternRewriter& rewriter) const { auto tfl_custom = rewriter.create<TFL::CustomOp>( mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(), mhlo_custom_call.getInputs()); tfl_custom.setCustomCodeAttr( rewriter.getStringAttr(mhlo_custom_call.getCallTargetName()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc
} } // Replace the arg with a tf.Const op in the function body. builder.setInsertionPointToStart(&func.getBody().front()); auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(), *global_tensor.getValue()); args_to_erase.set(val.getArgNumber()); for (auto read_op : read_variable_ops_to_erase) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc
const llvm::SmallVector<int64_t>& expected_packed_shape, const llvm::SmallVector<int8_t>& expected_packed_values) { MLIRContext context; OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context))); OpBuilder builder(&module->getBodyRegion()); context.loadDialect<TF::TensorFlowDialect>(); Value value = CreateConstValue<int8_t>(builder, module->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/common/controller.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 09:51:28 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
StringAttr callee_sym = cluster_func_op.getFuncAttr().getAttr(); MoveResourceArgsToEnd(symtab.lookup<func::FuncOp>(callee_sym)); } builder.setInsertionPoint(cluster_func_op); auto xla_launch_op = builder.create<TF::XlaLaunchOp>( cluster_func_op.getLoc(), cluster_func_op.getResultTypes(), /*constants=*/ValueRange({}), ValueRange(non_resource_args), ValueRange(resource_args), cluster_func_op.getFuncAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0)