Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for getElementDtype (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

          shape[0] = ShapedType::kDynamic;
          auto extensions =
              mhlo::TypeExtensionsAttr::get(func->getContext(), bounds);
          auto resultType =
              RankedTensorType::get(shape, inputType.getElementType(), extensions);
          arg.setType(resultType);
        }
        llvm::SmallVector<Type, 8> arg_types;
        for (auto arg : func.getArguments()) arg_types.push_back(arg.getType());
        func.setType(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

    }
    
    absl::StatusOr<std::pair<tensorflow::DataType, tensorflow::PartialTensorShape>>
    ProcessTensorSpec(mlir::TensorType type) {
      tensorflow::DataType dtype;
      TF_RETURN_IF_ERROR(
          ConvertScalarTypeToDataType(type.getElementType(), &dtype));
    
      if (!type.hasRank())
        return std::make_pair(dtype, tensorflow::PartialTensorShape());
    
      auto shape = type.getShape();
      llvm::SmallVector<int64_t, 4> dims;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/serialization/ClasspathInferer.java

                        Type type = Type.getObjectType(classDescriptor);
                        while (type.getSort() == Type.ARRAY) {
                            type = type.getElementType();
                        }
                        if (type.getSort() != Type.OBJECT) {
                            // A primitive type
                            continue;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

            auto new_user_op_type = CloneTypeWithNewElementType(
                original_result_type,
                mlir::cast<ShapedType>(op_before_dequantize.getType())
                    .getElementType());
            createNewDequantizeOp(rewriter, op, user_op, user_idx,
                                  new_user_op_type);
          } else {
            createNewDequantizeOp(rewriter, op, user_op, user_idx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc

      EXPECT_TRUE(isa<quantfork::DequantizeCastOp>(filter_dcast_op));
      EXPECT_TRUE(isa<UniformQuantizedPerAxisType>(
          mlir::cast<TensorType>(filter_qcast_op->getResult(0).getType())
              .getElementType()));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

      return false;
    }
    
    bool IsQuantizedTensorType(Type type) {
      if (!mlir::isa<TensorType>(type)) {
        return false;
      }
      Type element_type = mlir::cast<TensorType>(type).getElementType();
      return mlir::isa<QuantizedType>(element_type);
    }
    
    bool IsOpFullyQuantized(Operation* op) {
      return llvm::all_of(op->getOperandTypes(), IsQuantizedTensorType) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelTypeInitializationException.java

                    CollectionSchema<?, ?> schema = (CollectionSchema) schemaStore.getSchema(propertyType);
                    s.append(String.format("A managed collection can not contain '%s's%n", schema.getElementType()));
                    appendManagedCollections(s, 1, constructibleTypes);
                } else if (isScalarCollection(propertyType, propertyContext.isDeclaredAsHavingUnmanagedType())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

          const TensorType type, const ArrayRef<int64_t> permutation) const {
        const SmallVector<int64_t> after_shape =
            Permute<int64_t>(type.getShape(), permutation);
        return type.cloneWith(after_shape, type.getElementType());
      }
    };
    
    }  // namespace
    
    void NchwConvolutionToNhwcPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/StructNodeInitializer.java

                        CollectionSchema<P, ?> propertyCollectionsSchema = (CollectionSchema<P, ?>) propertySchema;
                        ModelType<?> elementType = propertyCollectionsSchema.getElementType();
                        nodeInitializerRegistry.ensureHasInitializer(forProperty(elementType, property, bindings.getPublicSchema().getType()));
                    }
                    if (property.isDeclaredAsHavingUnmanagedType()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

        // TODO(hinsu): Handle constants that are not scalar booleans.
        auto cond_type = mlir::dyn_cast<RankedTensorType>(cond.getType());
        if (!cond_type || !cond_type.getShape().equals({}) ||
            !cond_type.getElementType().isInteger(/*width=*/1))
          return failure();
    
        // Identify the branch to inline.
        bool cond_value = (*cond.value_begin<APInt>()).getSExtValue();
        func::FuncOp func = cond_value ? then_func : else_func;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top