- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,239 for casts (0.06 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
// Casts the `target` type to a quantized type by using the quantization // parameters from the type in the `source` type attribute. // Examples: // f32 -> !quant.uniform<i8:f32, 1.0> // tensor<4xf32> -> tensor<4x!quant.uniform<i8:f32, 1.0>> // The result is wrapped by a type attribute. Returns nullptr if the cast // isn't valid. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* @since 7.0 (source-compatible since 2.0) */ // This the best we could do to get copyOfEnumSet to compile in the mainline. // The suppression also covers the cast to E[], discussed below. // In the backport, we don't have those cases and thus don't need this suppression. // We keep it to minimize diffs. @SuppressWarnings("unchecked") public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 08 03:01:02 UTC 2024 - 35.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
Comparator<? super E> comparator, Iterable<? extends E> elements) { if (elements instanceof ImmutableSortedMultiset) { @SuppressWarnings("unchecked") // immutable collections are always safe for covariant casts ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) elements; if (comparator.equals(multiset.comparator())) { if (multiset.isPartialView()) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 35.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
#include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/rendezvous.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/platform/casts.h" #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/platform.h" #include "tensorflow/core/platform/status.h" #include "tensorflow/core/profiler/lib/traceme.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
if (!mlir::cast<ShapedType>(lhs.getType()).hasStaticShape() || !mlir::cast<ShapedType>(rhs.getType()).hasStaticShape() || !mlir::cast<ShapedType>(cond.getType()).hasStaticShape()) { return rewriteOpWithDynamicInput(op, rewriter); } auto lhs_shape = mlir::cast<ShapedType>(lhs.getType()).getShape(); auto rhs_shape = mlir::cast<ShapedType>(rhs.getType()).getShape();
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/tensorflow/transforms/shape_inference.cc
auto input_args_have_static_shape = [&]() -> bool { return mlir::cast<TensorType>(input_tensor.getType()).hasStaticShape() && mlir::cast<TensorType>(kernel_tensor.getType()).hasStaticShape() && mlir::cast<TensorType>(window_strides.getType()).hasStaticShape() && mlir::cast<TensorType>(padding.getType()).hasStaticShape() && mlir::cast<TensorType>(lhs_dilation.getType()).hasStaticShape() &&
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/ir/tfl_ops.cc
} // Get the tensor types. const auto input_type = input_tensor.getType().cast<ShapedType>(); const auto weights_type = weights_tensor.getType().cast<ShapedType>(); const auto bias_type = has_bias ? bias_tensor.getType().cast<ShapedType>() : ShapedType{}; const auto output_type = getType(0).cast<ShapedType>(); // Folding only implemented for float tensors.
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/lower_tf.cc
auto op = cast<ResizeNearestNeighborOp>(src_op); auto loc = op.getLoc(); auto result_ty = mlir::cast<ShapedType>(op.getType()); auto input = op.getImages(); auto input_ty = mlir::cast<ShapedType>(input.getType()); auto input_element_ty = input_ty.getElementType(); auto out_size = op.getSize(); auto out_size_ty = mlir::cast<ShapedType>(out_size.getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
Operation* filter_op = filter_value.getDefiningOp(); auto filter_uniform_quantized_type = GetElementType(filter_value).cast<UniformQuantizedPerAxisType>(); auto filter_constant_value_attr = cast<DenseIntElementsAttr>( cast<stablehlo::ConstantOp>(filter_value.getDefiningOp()).getValue()); const DenseIntElementsAttr new_filter_value_attr =
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
} } LogicalResult SpaceToBatchNDOp::verify() { SpaceToBatchNDOp op = *this; const auto input_type = op.getInput().getType().cast<TensorType>(); const auto block_shape_type = op.getBlockShape().getType().cast<TensorType>(); const auto paddings_type = op.getPaddings().getType().cast<TensorType>(); // Check that block_shape has rank 1. if (!IsOfRankOrUnranked(op.getBlockShape(), 1)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)