Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 101 for type_attr (0.16 sec)

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

        builder.create<tf_saved_model::GlobalTensorOp>(
            NameLoc::get(builder.getStringAttr(name.str())),
            builder.getStringAttr(name), tensor_attr,
            TypeAttr::get(tensor_attr.getType()), builder.getUnitAttr());
      }
    
      return success();
    }
    
    }  // namespace
    
    LogicalResult LiftVariables(ModuleOp module, Session* session) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_ops.td

        sense of `tf.TensorShape` compatibility. And the element types must match.
      }];
    
      let arguments = (ins
        StrAttr:$sym_name,
        OptionalAttr<ElementsAttr>:$value,
        TypeAttr:$type,
        UnitAttr:$is_mutable
      );
    
      let hasVerifier = 1;
    }
    
    def TfSavedModel_SessionInitializerOp: TfSavedModel_Op<"session_initializer"> {
      let summary = "Initializes TensorFlow session state.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/s390x/objz.go

    	// symbol in the Go sense, and p.Sym.Local is true for a few
    	// internally defined symbols.
    	// Rewrites must not clobber flags and therefore cannot use the
    	// ADD instruction.
    	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 or REGTMP2; MOVD $<off>(Rx or REGTMP2), Rx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/utils.h

          values.begin(), values.end(),
          [](const APInt& element_value) { return element_value.isNegative(); });
    }
    
    // Utility function to get the offset between two dense attribute values.
    inline TypedAttr GetOffSet(Attribute begin, Attribute end) {
      auto begin_values = begin.cast<DenseElementsAttr>().getValues<int32_t>();
      auto end_values = end.cast<DenseElementsAttr>().getValues<int32_t>();
    
      SmallVector<int32_t> offsets;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        return f.isExactlyValue(value);
      });
    }
    
    // Returns true if `value` is compile-time constant and its splat value equals
    // to `raw_value`.
    template <typename T>
    bool IsConstantValueOf(mlir::TypedAttr value, T raw_value) {
      auto element_type = mlir::cast<ShapedType>(value.getType()).getElementType();
    
      if (mlir::isa<FloatType>(element_type)) {
        return FloatValueEquals(value, raw_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (1)
  6. src/cmd/internal/obj/wasm/wasmobj.go

    			p = appendp(p, AI32Sub)
    			p = appendp(p, ASet, regAddr(REG_SP))
    
    			// write return address to Go stack
    			p = appendp(p, AGet, regAddr(REG_SP))
    			p = appendp(p, AI64Const, obj.Addr{
    				Type:   obj.TYPE_ADDR,
    				Name:   obj.NAME_EXTERN,
    				Sym:    s,           // PC_F
    				Offset: pcAfterCall, // PC_B
    			})
    			p = appendp(p, AI64Store, constAddr(0))
    
    			// low-level WebAssembly call to function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

              "mlir::OperandElementTypeIterator(values.end())};",
      [{
        ArrayAttr::get($_ctxt,
        [&]() {
          llvm::SmallVector<Attribute, 4> ret;
          for (auto t : $_self)
            ret.push_back(TypeAttr::get(t));
          return ret;
        }())
      }]
    >;
    
    // A derived attribute that returns the shapes of the tensors in the actual
    // value pack that corresponds to the `idx`-th ODS-declared variadic operand.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/x86/obj6.go

    		// $LEA sym, Rx becomes $MOV $sym, Rx which will be rewritten below
    		p.As = mov
    		p.From.Type = obj.TYPE_ADDR
    	}
    	if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
    		// $MOV $sym, Rx becomes $MOV sym@GOT, Rx
    		// $MOV $sym+<off>, Rx becomes $MOV sym@GOT, Rx; $LEA <off>(Rx), Rx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:36:45 UTC 2023
    - 40.9K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/wasm/ssa.go

    		p.From = obj.Addr{
    			Type:   obj.TYPE_ADDR,
    			Name:   obj.NAME_PARAM,
    			Reg:    wasm.REG_SP,
    			Offset: 0,
    		}
    
    	case ssa.OpWasmLoweredAddr:
    		if v.Aux == nil { // address of off(SP), no symbol
    			getValue64(s, v.Args[0])
    			i64Const(s, v.AuxInt)
    			s.Prog(wasm.AI64Add)
    			break
    		}
    		p := s.Prog(wasm.AGet)
    		p.From.Type = obj.TYPE_ADDR
    		switch v.Aux.(type) {
    		case *obj.LSym:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
Back to top