- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,597 for Auto (0.05 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
// resolved LogicalResult PrecheckForXlaConvV2Op(XlaConvV2Op op) { auto input_tensor = op.getLhs(); auto kernel_tensor = op.getRhs(); auto window_strides = op.getWindowStrides(); auto padding = op.getPadding(); auto lhs_dilation = op.getLhsDilation(); auto rhs_dilation = op.getRhsDilation(); auto feature_group_count = op.getFeatureGroupCount(); int64_t batch_group_count = op.getBatchGroupCount();
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/lite/sparsity/sparsify_model_test.cc
auto output_fbm = tflite::FlatBufferModel::BuildFromBuffer( reinterpret_cast<const char*>(output_builder.GetCurrentBufferPointer()), output_builder.GetSize()); tflite::ModelT output_model; output_fbm->GetModel()->UnPackTo(&output_model); // Extract output metadata std::map<std::string, std::string> output_metadata; for (const auto& metadata : output_model.metadata) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:16:40 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
auto type = mlir::cast<ShapedType>(getResult().getType()); auto etype = type.getElementType(); // We can not fold if the result is not static. if (!type.hasStaticShape()) return {}; if (auto float_type = mlir::dyn_cast<FloatType>(etype)) { auto out_type = tensorflow::GetTypeFromTFTensorShape(out_shape, float_type); return DenseElementsAttr::get(out_type,
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/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
Operation* GetOpOfValue(Value value) { if (auto block_arg = mlir::dyn_cast<BlockArgument>(value)) return block_arg.getOwner()->getParentOp(); return value.getDefiningOp(); } // Check if the TPUCopyWithDynamicShapeOp is valid. // 1. The op should be wrapped inside a launch op. // 2. The wrapped launch op should be placed on CPU. LogicalResult CheckOpIsValid(Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
for (int non_bias : non_biases) { Operation *non_bias_define = op->getOperand(non_bias).getDefiningOp(); if (auto dequant = llvm::dyn_cast<TFL::DequantizeOp>(non_bias_define)) { auto non_bias_type = mlir::cast<TensorType>(dequant.getInput().getType()); auto non_bias_ele_type = mlir::cast<quant::QuantizedType>(non_bias_type.getElementType()); non_bias_types.push_back(non_bias_ele_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
AttrValueMap* values) { AttrValue value; auto& type_list = *value.mutable_list(); for (auto type : types) { DataType dtype; TF_RETURN_IF_ERROR(ConvertScalarTypeToDataType(type, &dtype)); type_list.add_type(dtype); } auto result = values->insert({string(name), value}); assert(result.second && "cannot have multiple attributes with the same name");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc
while (!worklist.empty()) { auto func_op = worklist.pop_back_val(); auto& func_res = per_function_results.find(func_op)->getSecond(); // In-function propagation. if (failed(ComputeResourceDevicesInComputation(func_op, &func_res))) return signalPassFailure(); // Propagation to callees. auto walk_res = func_op.walk([&](Operation* op) { if (auto while_op = dyn_cast<WhileOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 03:47:00 UTC 2023 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc
PatternRewriter& rewriter) const override { if (call_op.getNumResults() != 1) return failure(); auto users = call_op->getUsers(); for (auto user : users) { if (!llvm::isa<mlir::stablehlo::UniformDequantizeOp>(user)) { return failure(); } } auto func_name = call_op.getCallee(); if (!func_name.starts_with("quantized_")) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc
ASSERT_TRUE(module_op); auto test_func = module_op->lookupSymbol<func::FuncOp>("same_scale_after_composite"); ASSERT_THAT(test_func, NotNull()); auto quantize_op = FindOperationOfType<quantfork::QuantizeCastOp>(test_func); EXPECT_FALSE(IsOpQuantizableStableHlo(quantize_op)); auto dequantize_op = FindOperationOfType<quantfork::DequantizeCastOp>(test_func);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
shape[0] = ShapedType::kDynamic; auto extensions = mhlo::TypeExtensionsAttr::get(func->getContext(), bounds); auto resultType = RankedTensorType::get(shape, inputType.getElementType(), extensions); arg.setType(resultType); } llvm::SmallVector<Type, 8> arg_types; for (auto arg : func.getArguments()) arg_types.push_back(arg.getType()); func.setType(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0)