Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,148 for getDtype (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

      LogicalResult matchAndRewrite(TFL::GatherOp op,
                                    PatternRewriter &rewriter) const override {
        auto const_type = mlir::dyn_cast<ShapedType>(op.getOperand(0).getType());
        auto result_type = mlir::dyn_cast<ShapedType>(op.getResult().getType());
        if (!const_type || !const_type.getElementType().isSignlessInteger(4) ||
            !result_type || !result_type.getElementType().isSignlessInteger(8)) {
          return failure();
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

                      int32_t dim) {
      Type attribute_type = builder.getI64Type();
      return builder.create<TF::StridedSliceOp>(
          loc,
          RankedTensorType::get(
              {}, mlir::cast<ShapedType>(shape_value.getType()).getElementType()),
          /*input=*/shape_value,
          /*begin=*/Create1DConstValue<int32_t>(builder, loc, {dim}),
          /*end=*/Create1DConstValue<int32_t>(builder, loc, {dim + 1}),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

                    .addModifiers(Modifier.PUBLIC, Modifier.STATIC)
                    .addParameter(typeName(callable.getOwner().getType()), SELF_PARAMETER_NAME)
                    .addParameters(parameters)
                    .addCode(generateMethodBody(implementation, callable, implementationExtra))
                    .returns(typeName(callable.getReturnType().getType()))
                    .addAnnotations(getAnnotations(implementationExtra))
                    .build();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

          DenseIntElementsAttr::get(
              RankedTensorType::get(/*shape=*/{}, builder.getI1Type()), true));
    
      SmallVector<Value, 4> while_input_values;
      SmallVector<Type, 4> while_input_types;
      while_input_values.push_back(const_true.getResult());
      while_input_types.push_back(const_true.getResult().getType());
      for (int i = 1; i < reduce_dataset.getNumOperands(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    Value AccumulateBuffers(Value a, Value b, OpBuilder builder, Location loc) {
      if (getElementTypeOrSelf(a.getType()) == builder.getI1Type()) {
        return builder.create<TF::LogicalOrOp>(loc, ArrayRef<Type>{a.getType()},
                                               ArrayRef<Value>{a, b});
      }
      return builder.create<TF::AddV2Op>(loc, ArrayRef<Type>{a.getType()},
                                         ArrayRef<Value>{a, b});
    }
    
    namespace {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGenerator.java

        ) {
            if (owner.isInterceptSubtypes()) {
                code.beginControlFlow("if ($N.isInstanceOf(owner, $S))", METADATA_FIELD, owner.getType().getInternalName());
            } else {
                code.beginControlFlow("if (owner.equals($S))", owner.getType().getInternalName());
            }
            for (CallInterceptionRequest request : requestsForOwner) {
                CodeBlock.Builder nested = CodeBlock.builder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:50:01 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

        [{
      Type resultType;
      if (x.getType().isa<UnrankedTensorType>() ||
          y.getType().isa<UnrankedTensorType>()) {
        resultType = UnrankedTensorType::get($_builder.getI1Type());
      } else {
        SmallVector<int64_t, 4> resultShape;
        if (!OpTrait::util::getBroadcastedShape(
                x.getType().cast<ShapedType>().getShape(),
                y.getType().cast<ShapedType>().getShape(), resultShape)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionTypeProvider.kt

         * - `Unit` type for statements;
         */
        public fun KtExpression.getKaType(): KaType? =
            withValidityAssertion { analysisSession.expressionTypeProvider.getKtExpressionType(this) }
    
        public fun KtExpression.getKtType(): KaType? = getKaType()
    
        /**
         * Returns the return type of the given [KtDeclaration] as [KaType].
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top