Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for type_attr (0.23 sec)

  1. src/cmd/internal/obj/ppc64/asm_test.go

    		{obj.Addr{Type: obj.TYPE_ADDR, Reg: REG_R0, Name: obj.NAME_NONE, Offset: 1}, C_SACON},
    		{obj.Addr{Type: obj.TYPE_ADDR, Reg: REG_R0, Name: obj.NAME_NONE, Offset: BIG}, C_LACON},
    		{obj.Addr{Type: obj.TYPE_ADDR, Reg: REG_R0, Name: obj.NAME_NONE, Offset: -BIG - 1}, C_LACON},
    		{obj.Addr{Type: obj.TYPE_ADDR, Reg: REG_R0, Name: obj.NAME_NONE, Offset: 1 << 32}, C_DACON},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 22:14:57 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

    // index.
    template <typename LstmOp>
    inline QuantizedType GetIntermediateElementType(LstmOp op, int tensor_index) {
      if (tensor_index < 0 || tensor_index > 4) return nullptr;
      TypeAttr attr = op->template getAttrOfType<TypeAttr>(
          intermediate_attributes[tensor_index]);
      if (!attr) {
        return nullptr;
      }
      return QuantizedType::getQuantizedElementType(attr.getValue());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        if (input_types.size() <= 1) return;
    
        Type target_input_type = mlir::cast<TypeAttr>(input_types[0]).getValue();
        auto result_type = UnrankedTensorType::get(target_input_type);
        for (auto i = 1; i < input_types.size(); ++i) {
          Type current_input_type = mlir::cast<TypeAttr>(input_types[i]).getValue();
          if (current_input_type != target_input_type) {
            input_values[i] =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

                           legacy_float_scale, use_fake_quant_num_bits);
      if (!final_type) return {};
      return TypeAttr::get(final_type);
    }
    
    TypeAttr CastQuantizedTypeAttrFromExpressedType(const Builder builder,
                                                    const TypeAttr source,
                                                    const Type target,
                                                    const int axis) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

      if (tensorflow::IsRefType(dtype)) dtype = tensorflow::RemoveRefType(dtype);
      value->set_type(dtype);
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::TypeAttr& type, bool remove_ref_type,
                            AttrValue* value) {
      return ConvertAttribute(type.getValue(), remove_ref_type, value);
    }
    
    Status ConvertAttribute(const mlir::UnitAttr& attr, AttrValue* value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

        EinsumDimensionNumbers& dnums, Location loc, PatternRewriter* rewriter) {
      BoolAttr true_attr = rewriter->getBoolAttr(true);
      // Build ShapeOp
      auto shape_lhs = rewriter->create<TF::ShapeOp>(loc, org_lhs, true_attr);
      auto shape_rhs = rewriter->create<TF::ShapeOp>(loc, org_rhs, true_attr);
    
      std::vector<int32_t> bl_index;  // Indexes of B0,...,Bn and L0,...,Ln
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

            output_shape,
            mlir::cast<quant::UniformQuantizedType>(output_type.getElementType())
                .getStorageType());
        rewriter.replaceOpWithNewOp<QConstOp>(
            op, TypeAttr::get(result_type),
            DenseIntElementsAttr::get(values_type, new_values));
        return success();
      }
    };
    
    // Fold constant quantized Reshape ops.
    struct FoldReshapeOp : public OpRewritePattern<ReshapeOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

    def TFR_allowedArgType : Type<Or<[
        TFR_AllTensorTypes.predicate,
        TFR_AllAttrTypes.predicate]>, "allowed tfr.call operand types">;
    
    def TFR_allowedConstValues : Attr<Or<[
        FlatSymbolRefAttr.predicate,
        TypeAttr.predicate,
        StrAttr.predicate,
        ArrayAttr.predicate]>, "allowed tfr.constant value"> {
      let storageType = "Attribute";
      let returnType = "Attribute";
      let convertFromStorage = "$_self";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // the casting, the quantization dimension of the result type needs to be set
    // this new `axis` value.
    TypeAttr CastQuantizedTypeAttrFromExpressedType(Builder builder,
                                                    TypeAttr source, Type target,
                                                    int axis);
    
    // Quantizes the elements in the attribute `real_value` by the quantization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm/obj5.go

    	// internally defined symbols.
    	if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
    		// MOVW $sym, Rx becomes MOVW sym@GOT, Rx
    		// MOVW $sym+<off>, Rx becomes MOVW sym@GOT, Rx; ADD <off>, Rx
    		if p.As != AMOVW {
    			c.ctxt.Diag("do not know how to handle TYPE_ADDR in %v with -dynlink", p)
    		}
    		if p.To.Type != obj.TYPE_REG {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 21.4K bytes
    - Viewed (0)
Back to top