- Sort Score
- Result 10 results
- Languages All
Results 61 - 68 of 68 for DenseIntElementsAttr (0.27 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
DenseFPElementsAttr::get(scale_type, {static_cast<float>(qtype.getScale())})); zero_point = rewriter.create<TF::ConstOp>( loc, zero_point_type, DenseIntElementsAttr::get(zero_point_type, {static_cast<int32_t>(qtype.getZeroPoint())})); return success(scale && zero_point); } LogicalResult CreateUniformQuantizedPerAxisTypeParams(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
return transpose_op.emitOpError( "perm tensor elements size is not equal to input tensor rank"); } } // Get permutation axes of the TransposeOp DenseIntElementsAttr perm; if (!matchPattern(transpose_op.getPerm(), m_Constant(&perm))) { return failure(); } SmallVector<int64_t, 4> axes; for (const auto& axis_int : perm.getValues<APInt>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
mlir::TensorType ty = mlir::RankedTensorType::get(vals.size(), builder.getIntegerType(64)); TensorProto tensor; TF_RETURN_IF_ERROR(ConvertToTensorProto( mlir::DenseIntElementsAttr::get(ty, vals), &tensor)); *list->add_tensor() = tensor; } else { return errors::Unimplemented("Unhandled attribute!"); } } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
namespace tensorflow { namespace tf2xla { namespace internal { namespace { using llvm::ArrayRef; using llvm::SmallVector; using mlir::Block; using mlir::BlockArgument; using mlir::DenseIntElementsAttr; using mlir::IRMapping; using mlir::Location; using mlir::LogicalResult; using mlir::ModuleOp; using mlir::OpBuilder; using mlir::Operation; using mlir::OperationPass; using mlir::OpOperand;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
OpBuilder* builder) { auto type = mlir::RankedTensorType::get(value.size(), builder->getIntegerType(32)); auto dense_values = mlir::DenseIntElementsAttr::get(type, value); return builder->create<TF::ConstOp>(loc, dense_values); } TF::ConstOp CreateScalarConstantOp(int value, Location loc, OpBuilder* builder) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc
}); } else if (isa<stablehlo::ConvertOp>(filter_op) && isa<stablehlo::ConstantOp>( filter_op->getOperand(0).getDefiningOp())) { filter_i8_value_attr = mlir::cast<DenseIntElementsAttr>( cast<stablehlo::ConstantOp>(filter_op->getOperand(0).getDefiningOp()) .getValue()); } // Create Uniform Quantized constant for the filter. auto subtract_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
builder)); } if (op_name == "tfl.reshape") { // Flattens reshape ops when more than one dimension shape operand is given. mlir::DenseIntElementsAttr shape_attr; if (matchPattern(op_state.operands[1], m_Constant(&shape_attr))) { auto shape_ty = op_state.operands[1].getType().dyn_cast<RankedTensorType>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
llvm::make_early_inc_range(block->getOps<TF::VarIsInitializedOp>())) { builder.setInsertionPoint(op); if (!const_true) const_true = builder.create<TF::ConstOp>( op.getLoc(), DenseIntElementsAttr::get( RankedTensorType::get(/*shape=*/{}, builder.getI1Type()), true)); op.getIsInitialized().replaceAllUsesWith(const_true); op.erase(); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0)