Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 96 for type_attr (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/asm/internal/asm/parse.go

    func (p *Parser) symbolReference(a *obj.Addr, name string, prefix rune) {
    	// Identifier is a name.
    	switch prefix {
    	case 0:
    		a.Type = obj.TYPE_MEM
    	case '$':
    		a.Type = obj.TYPE_ADDR
    	case '*':
    		a.Type = obj.TYPE_INDIR
    	}
    
    	// Parse optional <> (indicates a static symbol) or
    	// <ABIxxx> (selecting text symbol with specific ABI).
    	doIssueError := true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/internal/obj/arm64/obj7.go

    	// internally defined symbols.
    	if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
    		// MOVD $sym, Rx becomes MOVD sym@GOT, Rx
    		// MOVD $sym+<off>, Rx becomes MOVD sym@GOT, Rx; ADD <off>, Rx
    		if p.As != AMOVD {
    			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: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/internal/obj/x86/asm6.go

    			ctxt.Diag("offset too large in %s", p)
    		}
    	}
    	v := int32(a.Offset)
    	rel.Siz = 0
    
    	switch a.Type {
    	case obj.TYPE_ADDR:
    		if a.Name == obj.NAME_NONE {
    			ctxt.Diag("unexpected TYPE_ADDR with NAME_NONE")
    		}
    		if a.Index == REG_TLS {
    			ctxt.Diag("unexpected TYPE_ADDR with index==REG_TLS")
    		}
    		goto bad
    
    	case obj.TYPE_REG:
    		const regFirst = REG_AL
    		const regLast = REG_Z31
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        BoolAttr true_attr = rewriter.getBoolAttr(true);
        auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle,
                                                  /*use_32bit=*/true_attr);
        rewriter.replaceOpWithNewOp<TF::GatherOp>(
            op, op.getType(), shape, CreateI32SplatConst(loc, &rewriter, {}, 0),
            /*validate_indices=*/true_attr);
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top