- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for IntegerType (0.43 sec)
-
src/cmd/compile/internal/types2/builtins.go
x.mode = value x.typ = &emptyInterface if check.recordTypes() { check.recordBuiltinType(call.Fun, makeSig(x.typ)) } case _Add: // unsafe.Add(ptr unsafe.Pointer, len IntegerType) unsafe.Pointer check.verifyVersionf(call.Fun, go1_17, "unsafe.Add") check.assignment(x, Typ[UnsafePointer], "argument to unsafe.Add") if x.mode == invalid { return } y := args[1]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
/// Performs the lowering to TFLite dialect. void runOnOperation() override; }; // Util that casts 'val' to Int32 by adding a cast Op. Value CreateCastToInt32(Value val, Location loc, PatternRewriter& rewriter) { IntegerType new_ele_type = rewriter.getIntegerType(32); if (auto shaped_type = mlir::dyn_cast<RankedTensorType>(val.getType())) { ShapedType new_type = RankedTensorType::get(shaped_type.getShape(), new_ele_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
mlir::cast<ComplexType>(elemType).getElementType().isF32()) return true; // QUINT8 and UI8 are allowed. if (mlir::isa<TF::Quint8Type>(elemType) || (elemType.isInteger(8) && mlir::cast<IntegerType>(elemType).isUnsigned())) return true; return false; } func::FuncOp CreateOutlineFunc(StringRef name, Region& region, bool passthru_extra_args, int num_loop_carried,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
return func.emitError() << "First input should be a string tensor"; } auto row_splits_type = GetInputType(func, 1); if (!row_splits_type || !mlir::isa<IntegerType>(row_splits_type.getElementType())) { return func.emitError() << "Second input should be an integer tensor"; } auto hash_seed = mlir::dyn_cast_or_null<ArrayAttr>(attr.getAttrs().get("hash_seed"));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
scales[i] = static_cast<float>(scales[i]); } } // Builds the result quantized type, which has signed 32 bits storage type. Builder builder(expressed_type.getContext()); const IntegerType storage_type = builder.getIntegerType(32); const int64_t storage_type_min = quant::QuantizedType::getDefaultMinimumForInteger(/*isSigned=*/true, 32); const int64_t storage_type_max =
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/tensorflow/transforms/tpu_space_to_depth_pass.cc
MLIRContext* context = conv2d.getContext(); SmallVector<int64_t, 4> values = {1, 1, 1, 1}; auto attrs = llvm::map_range(values, [context](int64_t v) -> Attribute { return IntegerAttr::get(IntegerType::get(context, 64), v); }); // TODO(b/157276506): change type of strides to DenseElementsAttr auto strides = ArrayAttr::get(context, llvm::to_vector<4>(attrs)); conv2d->setAttr("strides", strides); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
int64_t rank = r1.size(); values.reserve(rank); for (int i = 0; i < rank; ++i) values.push_back(APInt(bitwidth, r1[i])); auto result_type = tensorflow::GetTypeFromTFTensorShape( {rank}, IntegerType::get(builder.getContext(), bitwidth)); return builder.create<TF::ConstOp>( loc, DenseElementsAttr::get(result_type, values)); } Value GetIndicesForElement(Value index, Value buffer, OpBuilder builder,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
ArrayAttr targs_attr = ArrayAttr::get(context, targs_values); attrs.push_back( NamedAttribute(StringAttr::get(context, "TArgs"), targs_attr)); auto num_args_attr = IntegerAttr::get(IntegerType::get(context, 64), 1); attrs.push_back( NamedAttribute(StringAttr::get(context, "num_args"), num_args_attr)); // Fused conv operands are input, filter, args and host args. Here, bias
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
if (auto dq_op = dyn_cast_or_null<quantfork::DequantizeCastOp>( operand.getDefiningOp())) { inputs.push_back(dq_op.getOperand()); } else if (isa<IntegerType>(element_type)) { // If the operand is an integer tensor, then it doesn't require the // DequantizeOp in the pattern. inputs.push_back(operand); } else { return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
} int64_t value = attr.getInt(); if (value > std::numeric_limits<int>::max() || value < std::numeric_limits<int>::min()) { return failure(); } *attr_i32 = IntegerAttr::get( IntegerType::get(attr.getContext(), /*width=*/32), value); return success(); } TFL::ReshapeOp InsertReshapeOp(Location loc, Value input, Type element_type, llvm::ArrayRef<int64_t> new_shape_array,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0)