- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for keyvalues (0.25 sec)
-
tensorflow/compiler/mlir/lite/transforms/optimize.cc
*axis.getValues<int>().begin() || *axis.getValues<int>().begin() == -1) { return true; } if (mlir::cast<ShapedType>(sq_op.getType()).getRank() != axis.getNumElements()) { return false; } auto shape = mlir::cast<ShapedType>(sq_op.getType()); SmallVector<int, 4> elems{axis.getValues<int>().begin(),
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/legalize_hlo.cc
return rewriter.notifyMatchFailure( conv_op, "resize op requires [2] dilations and [2,2] padding"); auto lhs_dilation_values = lhs_dilation.getValues<int64_t>(); auto window_strides_values = window_strides.getValues<int64_t>(); auto padding_values = padding.getValues<int64_t>(); // Cast the dimension sizes to int. auto lhs_type = mlir::cast<ShapedType>(conv_op.getLhs().getType());
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/ir/tf_ops_n_z.cc
if (elem_type.isSignlessInteger() || elem_type.isUnsignedInteger()) { auto start_attr = start_tensor.getValues<IntegerAttr>()[0]; auto limit_attr = limit_tensor.getValues<IntegerAttr>()[0]; auto delta_attr = delta_tensor.getValues<IntegerAttr>()[0]; int num_elements; if (elem_type.isUnsignedInteger()) { uint64_t start = start_attr.getUInt();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
if (!matchPattern(op.getS0(), m_Constant(&s0))) return false; if (!matchPattern(op.getS1(), m_Constant(&s1))) return false; for (auto s : s0.getValues<APInt>()) s0_shape.push_back(s.getSExtValue()); for (auto s : s1.getValues<APInt>()) s1_shape.push_back(s.getSExtValue()); return true; } // Calculates r0 & r1 output based on inputs and calculated broadcasted 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) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
// Get iterators to the tensors. const auto input_values_it = input_tensor.getValues<float>().begin(); const auto weights_values_ptr = weights_tensor.getValues<float>().begin(); auto weights_row_it = weights_values_ptr; // The 'else' case could be nullptr, but the types don't match. auto bias_values_it = has_bias ? bias_tensor.getValues<float>().begin() : input_values_it;
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/tensorflow/transforms/shape_inference.cc
window_dimensions.getValues<IntegerAttr>()[i].getInt()); } for (auto i = 0; i < window_strides.size(); ++i) { window_strides_vec.push_back( window_strides.getValues<IntegerAttr>()[i].getInt()); } for (auto i = 0; i < base_dilations.size(); ++i) { base_dilations_vec.push_back( base_dilations.getValues<IntegerAttr>()[i].getInt()); }
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/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
bool is_per_channel) { const auto filter_values = filter_constant_op.getValue() .cast<DenseIntElementsAttr>() .getValues<int8_t>(); ArrayRef<int64_t> filter_shape = filter_constant_op.getType().cast<TensorType>().getShape(); // Reverse the shapes. This makes sense, assuming that the filter tensor has a
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
pkg/config/validation/validation.go
} else { if len(condition.GetValues()) == 0 && len(condition.GetNotValues()) == 0 { errs = appendErrors(errs, fmt.Errorf("at least one of `values` or `notValues` must be set for key %s", key)) } else { if err := security.ValidateAttribute(key, condition.GetValues()); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
tflite::TensorType tflite_element_type = GetTFLiteType(type.getElementType()).value(); if (tflite_element_type == tflite::TensorType_INT4) { std::vector<uint8_t> data; for (mlir::APInt v : attr.getValues<mlir::APInt>()) { data.emplace_back(static_cast<uint8_t>(*(v.getRawData()))); } auto packed_buffer = tflite::PackInt4ValuesDensely(data); if (use_buffer_offset_) { buffer_data_map_[index] =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)