- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for getUnknownLoc (0.18 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc
builder_.create<mlir::stablehlo::ConstantOp>( builder_.getUnknownLoc(), builder_.getI32IntegerAttr(0)); 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));
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/lite/debug/debug_test.cc
context_.loadAllAvailableDialects(); mlir::OpBuilder builder(&context_); module_ = builder.create<mlir::ModuleOp>(builder.getUnknownLoc()); builder.setInsertionPointToStart(module_->getBody()); auto func = builder.create<mlir::func::FuncOp>( // builder.getUnknownLoc(), "main", builder.getFunctionType({}, {})); func->setAttr("tfl.func", builder.getUnitAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 11:15:16 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
builder.getUnknownLoc(), storage_type_width, effective_mins[0], effective_maxs[0], narrow_range, converter.expressed_type, is_signed); if (legacy_float_scale) { quantized_element_type = DownCastScale(quantized_element_type, effective_mins[0], effective_maxs[0], builder.getUnknownLoc()); } } else if (min.size() == max.size()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h
return UniformQuantizedType::getChecked( Sign, storage_type, result_type.getElementType(), scale, ZeroPoint, StorageTypeMin, StorageTypeMax, builder.getUnknownLoc()); } }; }; // This class provides the API for ops that has input as bias. This is used // as a trait like this: // // class Conv2DOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc
mlir::PassManager pm = {&ctx}; pm.addPass(CreateParentPass()); EnableIrPrinting(pm, "dump"); mlir::OpBuilder builder(&ctx); auto module_op = builder.create<mlir::ModuleOp>(builder.getUnknownLoc()); // Destroy by calling destroy() to avoid memory leak since it is allocated // with malloc(). const absl::Cleanup module_op_cleanup = [module_op] { module_op->destroy(); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:17:14 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
RankedTensorType type = RankedTensorType::get( {}, TF::StringType::get(builder.getContext())); auto const_op = builder.create<TF::ConstOp>( builder.getUnknownLoc(), DenseStringElementsAttr::get(type, {filename})); it = const_ops.insert({asset.getSymName(), const_op}).first; } argument.replaceAllUsesWith(it->second.getOutput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
builder.getFunctionType(input_types, return_types); std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_); func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(), function_name, function_type); new_func.setVisibility(func::FuncOp::Visibility::Private); new_func.addEntryBlock();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
builder->getNamedAttr(key, conv_dimension_numbers_attr); attrs.push_back(named_attr); } break; } default: { emitWarning(builder->getUnknownLoc(), "seralization not supported for : ") << key; break; } } } return attrs; } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc
rewriter.setInsertionPointToStart(&new_func.getBody().front()); auto one_val = DenseElementsAttr::get(type, kOne); auto one_cst = rewriter.create<stablehlo::ConstantOp>(rewriter.getUnknownLoc(), one_val); auto half_val = DenseElementsAttr::get(type, kHalf); auto half_cst = rewriter.create<stablehlo::ConstantOp>(one_cst.getLoc(), half_val);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
} quant::QuantParams DefaultQuantParamsPass::GetDefaultQuantParams( Builder builder) { if (!default_quant_params_) { default_quant_params_ = quantfork::fakeQuantAttrsToType( builder.getUnknownLoc(), /*numBits=*/8, default_min_, default_max_, /*narrowRange=*/false, builder.getF32Type(), is_signed_); } return default_quant_params_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0)