- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 62 for IntegerType (0.25 sec)
-
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
auto result_element_type = getType().cast<ShapedType>().getElementType().dyn_cast<IntegerType>(); auto operand_element_type = getInput() .getType() .cast<ShapedType>() .getElementType() .dyn_cast<IntegerType>(); // Returns nullptr if either result/operand element type is not integer.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
MLIRContext *ctx = input_type.getContext(); if (input_type.isBF16() || input_type.isF16()) return FloatType::getF32(ctx); if (input_type.isSignlessInteger(8) || input_type.isSignlessInteger(16)) return IntegerType::get(ctx, 32); return input_type; } // Returns axis in HLO format from TF elements attr with exactly one element or // is an IntegerAttr, containing axis in the TensorFlow format. TensorFlow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
.cast<QuantizedType>() .getStorageType() .cast<IntegerType>(); if (!IsSupportedByTfliteQuantizeOrDequantizeOps(output_storage_type)) { LLVM_DEBUG(llvm::dbgs() << "Failed to match storage type of output quantized type.\n"); return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
if (!splat) return false; Type element_ty = splat.getType().getElementType(); if (mlir::isa<FloatType>(element_ty)) return splat.getSplatValue<llvm::APFloat>().isZero(); if (mlir::isa<IntegerType>(element_ty)) return splat.getSplatValue<llvm::APInt>().getSExtValue() == 0; return false; }; for (const auto& it : llvm::enumerate(operands)) { if (IsKnownZero(it.value())) continue;
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/lite/ir/tfl_ops.td
TFL_I32OrI64Tensor:$output ); let hasOptions = 1; DerivedTFLiteTypeAttr output_type = DerivedTFLiteTypeAttr<[{ return getResult().getType().cast<TensorType>().getElementType(). cast<IntegerType>().getWidth() > 32 ? tflite::TensorType_INT64 : tflite::TensorType_INT32; }], [{ TypeAttr::get(getResult().getType().cast<TensorType>().getElementType()) }]>; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
auto elem_type = shaped_type.getElementType(); if (auto float_type = elem_type.dyn_cast<mlir::FloatType>()) { TF_ASSIGN_OR_RETURN(value, tfl::ConvertFloatBuffer(shaped_type, buffer)); } else if (elem_type.isa<mlir::IntegerType>()) { TF_ASSIGN_OR_RETURN(value, tfl::ConvertIntBuffer(shaped_type, buffer)); } else if (elem_type.isa<mlir::TF::StringType>()) { tensorflow::TensorProto repr =
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/ir/tf_ops_n_z.cc
dimensions.reserve(rank); for (int i = 0; i < rank; ++i) dimensions.push_back(APInt(out_width, shape[i])); auto result_type = tensorflow::GetTypeFromTFTensorShape( {rank}, IntegerType::get(input_ty.getContext(), out_width)); return DenseElementsAttr::get(result_type, dimensions); } OpFoldResult ShapeOp::fold(FoldAdaptor) { int width =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
cmd/erasure-server-pool.go
// simply a read on JSON from MinIO and write it back as "parquet". // // import org.apache.spark.sql.SparkSession // import org.apache.spark.sql.types.{IntegerType, StringType, StructField, StructType} // object SparkJSONRead { // def main(args: Array[String]): Unit = { // val spark:SparkSession = SparkSession.builder() // .appName("SparkByExample")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 82.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
auto element_type = mlir::cast<ShapedType>(value.getType()).getElementType(); if (mlir::isa<FloatType>(element_type)) { return FloatValueEquals(value, raw_value); } else if (mlir::isa<IntegerType>(element_type)) { auto int_attr = mlir::dyn_cast_or_null<DenseIntElementsAttr>(value); if (!int_attr) return false; if (int_attr.isSplat()) { return int_attr.getSplatValue<APInt>() == raw_value;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
doc/go_spec.html
func Sizeof(variable ArbitraryType) uintptr type IntegerType int // shorthand for an integer type; it is not a real type func Add(ptr Pointer, len IntegerType) Pointer func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType func SliceData(slice []ArbitraryType) *ArbitraryType func String(ptr *byte, len IntegerType) string func StringData(str string) *byte </pre> <!--
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0)