Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for type_attr (0.26 sec)

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

    	}
    
    	var source *obj.Addr
    	if p.From.Name == obj.NAME_EXTERN || p.From.Name == obj.NAME_STATIC {
    		if p.From.Type == obj.TYPE_ADDR {
    			if p.As == ADWORD {
    				// ADWORD $sym doesn't need TOC anchor
    				return
    			}
    			if p.As != AMOVD {
    				c.ctxt.Diag("do not know how to handle TYPE_ADDR in %v", p)
    				return
    			}
    			if p.To.Type != obj.TYPE_REG {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          // Here TArgs types do not include types of the first two parameters,
          // i.e. the convolution input and the filter. TArgs are parameters for
          // the extras like the bias etc.
          auto attr = TypeAttr::get(getElementTypeOrSelf(contraction.getType()));
          SmallVector<Attribute, 4> targs_values(operands.size() - 2, attr);
    
          ArrayAttr targs_attr = ArrayAttr::get(context, targs_values);
          attrs.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

            auto min_max = GetMinMaxValuesForArgument(func_name, i);
            // The input min/max or mean/std are not specified, then skip.
            if (!min_max.first.has_value() || !min_max.second.has_value()) return;
    
            TypeAttr params = quant::GetQuantizedTypeAttr(
                builder, input_type, builder.getF64FloatAttr(min_max.first.value()),
                builder.getF64FloatAttr(min_max.second.value()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ppc64/ssa.go

    			if v.AuxInt != 0 || v.Args[0].Reg() != v.Reg() {
    				p := s.Prog(ppc64.AMOVD)
    				p.From.Type = obj.TYPE_ADDR
    				p.From.Reg = v.Args[0].Reg()
    				p.From.Offset = v.AuxInt
    				p.To.Type = obj.TYPE_REG
    				p.To.Reg = v.Reg()
    			}
    
    		case *obj.LSym, ir.Node:
    			p := s.Prog(ppc64.AMOVD)
    			p.From.Type = obj.TYPE_ADDR
    			p.From.Reg = v.Args[0].Reg()
    			p.To.Type = obj.TYPE_REG
    			p.To.Reg = v.Reg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      // Reshape for dynamic shaped operands. The result shape is
      // [lhs_batch_dimensions, lhs_out_dimensions, rhs_out_dimensions].
      BoolAttr true_attr = rewriter.getBoolAttr(true);
      auto lhs_shape = rewriter.create<TF::ShapeOp>(loc, lhs, true_attr);
      auto rhs_shape = rewriter.create<TF::ShapeOp>(loc, rhs, true_attr);
      llvm::SmallVector<int64_t, 4> lhs_batch_and_out =
          Concat<int64_t>(lhs_dot_dimensions_info.batch_dimensions().AxesArray(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

            auto min_max = GetMinMaxValuesForArgument(func_name, i);
            // The input min/max or mean/std are not specified, then skip.
            if (!min_max.first.has_value() || !min_max.second.has_value()) return;
    
            TypeAttr params = quant::GetQuantizedTypeAttr(
                builder, input_type, builder.getF64FloatAttr(min_max.first.value()),
                builder.getF64FloatAttr(min_max.second.value()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

                res_types, res_attrs)))
          return failure();
    
        // Update the function type which has excluded the control args.
        func->setAttr("function_type", TypeAttr::get(rewriter.getFunctionType(
                                           arg_types, res_types)));
    
        // Update arg/result attributes.
        func.setAllArgAttrs(arg_attrs);
        func.setAllResultAttrs(res_attrs);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      if (node.IsArg()) {
        if (dtype == DT_RESOURCE) {
          const AttrValue* dtype_attr = node.attrs().Find("_handle_dtypes");
          const AttrValue* shape_attr = node.attrs().Find("_handle_shapes");
          if (dtype_attr && shape_attr) {
            if (dtype_attr->list().type().empty()) {
              return errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      for (auto& it : hoister.GetResources()) {
        BlockArgument arg = mlir::dyn_cast<BlockArgument>(it.first);
        assert(arg && "Expect resources for FuncOp to be its arguments");
        auto type_iter = resource_data_types.find(arg.getArgNumber());
        if (type_iter == resource_data_types.end()) {
          // Skip lifting the resource if it's not present in the data type map.
          // This indicates that the resource is not to be lifted because it is used
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    	}
    	name := symbolName(&nameAddr)
    
    	// Operand 1 is an immediate constant or address.
    	valueAddr := p.address(operands[1])
    	switch valueAddr.Type {
    	case obj.TYPE_CONST, obj.TYPE_FCONST, obj.TYPE_SCONST, obj.TYPE_ADDR:
    		// OK
    	default:
    		p.errorf("DATA value must be an immediate constant or address")
    		return
    	}
    
    	// The addresses must not overlap. Easiest test: require monotonicity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top