- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for element_types (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
auto* output_shapes = node.attrs().Find("output_shapes"); auto* element_types = node.attrs().Find("T"); if (output_shapes && !output_shapes->list().shape().empty()) { const auto& output_shape = output_shapes->list().shape(idx); const auto& element_type = element_types->list().type(idx); return ConvertToMlirTensorType(output_shape, element_type, &builder); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
} // Return true when the given element_type is I32. bool IsI32Type(Type element_type) { return element_type.isInteger(32) && !element_type.isUnsignedInteger(); } // Return true when the given element_type is UI32. bool IsUI32Type(Type element_type) { return element_type.isInteger(32) && element_type.isUnsignedInteger(); } // Return true when the given element_type is I64. bool IsI64Type(Type element_type) {
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/lite/stablehlo/transforms/legalize_hlo.cc
Type element_type = type.getElementType(); Attribute start, limit, delta; if (mlir::isa<FloatType>(element_type)) { start = rewriter.getFloatAttr(element_type, 0.0); limit = rewriter.getFloatAttr(element_type, type.getShape()[dimension]); delta = rewriter.getFloatAttr(element_type, 1.0); } else if (mlir::isa<IntegerType>(element_type)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
&element_type)) { DCOMMENT("InferShapeForListInitOps " << op << " could not infer"); return false; } DCOMMENT("InferShapeForListInitOps " << *op << " could be inferred " << element_type); if (!element_type || !element_type.hasStaticShape()) return false; auto variant_type = VariantType::get(element_type, op->getContext());
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/flatbuffer_export.cc
for (const auto& operand : op->getOperands()) { auto elementType = getElementTypeOrSelf(operand.getType()); if (mlir::isa<mlir::TF::ResourceType>(elementType)) { return true; } } for (const auto& result : op->getResults()) { auto elementType = getElementTypeOrSelf(result.getType()); if (mlir::isa<mlir::TF::ResourceType>(elementType)) { return true; } } return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
return false; } // We can only fuse F32/BF16. auto is_fusable_type = [](Type t) { Type element_type = t; if (auto shaped_type = mlir::dyn_cast<ShapedType>(t)) { element_type = shaped_type.getElementType(); } return element_type.isBF16() || element_type.isF32(); }; for (Type t : binary_op->getOperandTypes()) { if (!is_fusable_type(t)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
bool is_depthwise) const { auto tensor_type = filter_type.cast<TensorType>(); auto element_type = tensor_type.getElementType(); RankedTensorType new_filter_result_type; if (element_type.isa<UniformQuantizedPerAxisType>()) { auto per_axis_type = element_type.cast<UniformQuantizedPerAxisType>(); int64_t kernel_output_feature_dim =
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_n_z.cc
} diag << variadic_idx_str << " for unranked operand" << variadic_idx_str; } Type element_type = result_ranked_type.getElementType(); if (!element_type.isSignlessInteger(32) && !element_type.isSignlessInteger(64)) return op->emitOpError("requires int32 or int64 return type for result") << variadic_idx_str; return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java
case 1: // GENERATE factory.newInstance(this, propertyName, propType, elementType) Type elementType = getType(rawTypeParam(property, 0)); _LDC(propType); _LDC(elementType); _INVOKEVIRTUAL(MANAGED_OBJECT_FACTORY_TYPE, "newInstance", RETURN_OBJECT_FROM_MODEL_OBJECT_STRING_CLASS_CLASS);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:40:00 UTC 2024 - 100.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
Type input_type) { Type element_type = mlir::cast<mlir::TensorType>(input_type).getElementType(); RankedTensorType type = tensorflow::GetTypeFromTFTensorShape( {static_cast<int64_t>(shape.size())}, element_type); // Input could only be i32 or i64. For i32, downcast to int32_t array. if (element_type.isInteger(32)) { SmallVector<int32_t, 4> i32_shape;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0)