- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 541 for scast (0.09 sec)
-
platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy
package org.gradle.internal import spock.lang.Specification import static Cast.cast class CastTest extends Specification { def "casting"() { given: def arg = "1" when: cast(Integer, arg) then: def e = thrown(ClassCastException) e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}" when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/tests/rewrite_quantized_io.mlir
// CHECK: %[[quant:.*]] = "tfr.cast"(%arg0) : (tensor<1x10xi8>) -> !tfr.tensor // CHECK: %[[scale_cast:.*]] = "tfr.cast"(%[[scale]]) // CHECK: %[[zp_cast:.*]] = "tfr.cast"(%[[zp]]) // CHECK: %[[requant:.*]] = tfr.call @tf__requantize(%[[quant]], %[[scale_cast]], %[[zp_cast]]) // CHECK: %[[result:.*]] = "tfr.cast"(%[[requant]]) // CHECK-NOT: quant.uniform
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/api/specs/Specs.java
public static <T> Spec<T> satisfyAll() { return Cast.uncheckedCast(SATISFIES_ALL); } public static final Spec<Object> SATISFIES_NONE = new Spec<Object>() { @Override public boolean isSatisfiedBy(Object element) { return false; } }; public static <T> Spec<T> satisfyNone() { return Cast.uncheckedCast(SATISFIES_NONE); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 10:00:26 UTC 2023 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tpu_host_computation_expansion.mlir
func.return } // CHECK-LABEL: func @cast_at_head_expanded func.func @cast_at_head_expanded(%arg0: tensor<?xi32>) { // CHECK: "tf_device.cluster" // CHECK-NEXT: "tf.Cast" // CHECK-SAME: _xla_outside_compilation = "" "tf_device.cluster"() ({ %1 = "tf.Cast"(%arg0) : (tensor<?xi32>) -> (tensor<?xi32>) "tf.B"(%1) {_xla_outside_compilation = "cluster1"} : (tensor<?xi32>) -> () "tf.C"() : () -> () tf_device.return
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 12:06:33 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
// Check if the same-scale requirement is met. auto dq_arg_type = preceding_sc_op.getArg().getType().cast<TensorType>(); auto qtype = dq_arg_type.getElementType().cast<QuantizedType>(); auto q_result_type = sc_op.getType().cast<TensorType>(); auto out_qtype = q_result_type.getElementType().cast<QuantizedType>(); if (qtype != out_qtype) { avg_pool_op.emitError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ConventionAwareHelper.java
MapProperty<Object, Object> asMapProperty = Cast.uncheckedNonnullCast(target); DefaultProvider<Map<Object, Object>> convention = new DefaultProvider<>(() -> Cast.uncheckedNonnullCast(mapping.getValue(_convention, _source))); asMapProperty.convention(convention); } else if (target instanceof HasMultipleValues) { HasMultipleValues<Object> asCollectionProperty = Cast.uncheckedNonnullCast(target);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:53:33 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.td
// Attribute Constraint that checks if the attribute value is zero. def ZeroIntAttr : AttrConstraint<CPred<"$_self.cast<::mlir::IntegerAttr>().getInt() == 0">>; // Checks if the value has rank at most 'n'. class HasRankAtLeast<int n> : Constraint< CPred<"$0.getType().cast<ShapedType>().hasRank() && " "$0.getType().cast<ShapedType>().getRank() >= " # n>>; // Checks value is not produced by a TFL_Quant or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/cast_bf16.mlir
// Ensure cast with bfloat16 roundtrip exactly func.func @main(tensor<4x5xbf16>) -> tensor<4x5xbf16> { ^bb0(%arg0: tensor<4x5xbf16>): // CHECK-LABEL: @main // CHECK: (tensor<4x5xbf16>) -> tensor<4x5xf32> // CHECK-NEXT: (tensor<4x5xf32>) -> tensor<4x5xbf16> %0 = "tfl.cast" (%arg0) : (tensor<4x5xbf16>) -> tensor<4x5xf32> loc("cast1") %1 = "tfl.cast" (%0) : (tensor<4x5xf32>) -> tensor<4x5xbf16> loc("cast2")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 18 21:28:19 UTC 2024 - 596 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc
%input_i32 = "tf.Cast"(%weight) : (tensor<1024x24x24x3xi8>) -> tensor<1024x24x24x3xi32> %output = "tf.Sub"(%input_i32, %zp) : (tensor<1024x24x24x3xi32>, tensor<i32>) -> tensor<1024x24x24x3xi32> %cast = "tf.Cast"(%output) : (tensor<1024x24x24x3xi32>) -> tensor<1024x24x24x3xf32> %mul = "tf.Mul"(%cast, %scale) : (tensor<1024x24x24x3xf32>, tensor<f32>) -> tensor<1024x24x24x3xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/fake_quant_e2e_xla.mlir
// CHECK: %[[quant:.*]] = "tf.Cast"(%[[round]]) : (tensor<1x3x4x3xf32>) -> tensor<1x3x4x3xi8> // CHECK: %[[pad:.*]] = "tf.PadV2"(%[[quant]] // CHECK: %[[xlaconv:.*]] = "tf.XlaConvV2"(%[[pad]] // CHECK: %[[sub:.*]] = "tf.Sub"(%[[xlaconv]] // CHECK: %[[cast:.*]] = "tf.Cast"(%[[sub]]) <{Truncate = false}> : (tensor<1x3x2x2xi32>) -> tensor<1x3x2x2xf32> // CHECK: %[[dequant1:.*]] = "tf.Mul"(%[[cast]] // CHECK: %[[relu:.*]] = "tf.Relu"(%[[dequant1]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 7.2K bytes - Viewed (0)