Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 4,693 for Cast (0.04 sec)

  1. 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)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderTestUtil.java

            assert values.length > 0;
            return new TestProvider<>(Cast.uncheckedNonnullCast(values[0].getClass()), Arrays.asList(values), null);
        }
    
        public static <T> ProviderInternal<T> withChangingExecutionTimeValues(T... values) {
            assert values.length > 0;
            return new TestProviderWithChangingValue<>(Cast.uncheckedNonnullCast(values[0].getClass()), Arrays.asList(values), null);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 05:02:13 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/tests/convert_tpu_model_to_cpu.mlir

      %7 = "tf.Cast"(%6) {Truncate = false} : (tensor<1x3x2x2xbf16>) -> tensor<1x3x2x2xf32>
      func.return %7 : tensor<1x3x2x2xf32>
    }
    
    // CHECK: func @tpu_conv(%[[ARG0:.*]]: tensor<1x3x4x3xf32>)
    // CHECK-DAG: %[[cst:.*]] = "tf.Const"() <{value = dense_resource<__elided__> : tensor<2x3x3x2xbf16>}> {device = ""} : () -> tensor<2x3x3x2xbf16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/ManagedFactories.java

            @Override
            public <T> T fromState(Class<T> type, Object state) {
                if (!type.isAssignableFrom(PUBLIC_TYPE)) {
                    return null;
                }
                return type.cast(filePropertyFactory.newFileProperty().value(Cast.<Provider<RegularFile>>uncheckedNonnullCast(state)));
            }
    
            @Override
            public int getId() {
                return FACTORY_ID;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/OptionValueNotationParserFactory.java

                return Cast.uncheckedCast(new NoDescriptionValuesJustReturningParser());
            } else if (targetType.isAssignableFrom(JavaVersion.class)) {
                NotationConverter<CharSequence, JavaVersion> converter = new JavaVersionFromCharSequenceNotationConverter();
                return Cast.uncheckedCast(new NotationConverterToNotationParserAdapter<>(converter));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 15:43:28 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      transpose_op++;
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getOperand(0).getType())
                    .getDimSize(0),
                3);
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getOperand(0).getType())
                    .getDimSize(1),
                12);
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getResult(0).getType())
                    .getDimSize(0),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. 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)
Back to top