Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for typefix (0.23 sec)

  1. src/cmd/fix/cftype.go

    // This fix finds nils initializing these types and replaces the nils with 0s.
    func cftypefix(f *ast.File) bool {
    	return typefix(f, func(s string) bool {
    		return strings.HasPrefix(s, "C.") && strings.HasSuffix(s, "Ref") && s != "C.CFAllocatorRef"
    	})
    }
    
    // typefix replaces nil with 0 for all nils whose type, when passed to badType, returns true.
    func typefix(f *ast.File, badType func(string) bool) bool {
    	if !imports(f, "C") {
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/fix/egltype.go

    //
    //	type EGLDisplay unsafe.Pointer
    //
    // New state:
    //
    //	type EGLDisplay uintptr
    //
    // This fix finds nils initializing these types and replaces the nils with 0s.
    func eglfixDisp(f *ast.File) bool {
    	return typefix(f, func(s string) bool {
    		return s == "C.EGLDisplay"
    	})
    }
    
    var eglFixConfig = fix{
    	name:     "eglconf",
    	date:     "2020-05-30",
    	f:        eglfixConfig,
    	desc:     `Fixes initializers of EGLConfig`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/fix/jnitype.go

    //
    // New state:
    //
    //	type jobject uintptr
    //
    // and similar for subtypes of jobject.
    // This fix finds nils initializing these types and replaces the nils with 0s.
    func jnifix(f *ast.File) bool {
    	return typefix(f, func(s string) bool {
    		switch s {
    		case "C.jobject":
    			return true
    		case "C.jclass":
    			return true
    		case "C.jthrowable":
    			return true
    		case "C.jstring":
    			return true
    		case "C.jarray":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

          TypeID::get<TF::CosOp>(),
          TypeID::get<TF::TanOp>(),
          TypeID::get<TF::DiagPartOp>(),
          TypeID::get<TF::EinsumOp>(),
          TypeID::get<TF::ExpOp>(),
          TypeID::get<TF::Expm1Op>(),
          TypeID::get<TF::FakeQuantWithMinMaxArgsOp>(),
          TypeID::get<TF::FloorOp>(),
          TypeID::get<TF::IFFTOp>(),
          TypeID::get<TF::ImagOp>(),
          TypeID::get<TF::IsFiniteOp>(),
          TypeID::get<TF::IsInfOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc

      std::string description;
      mlir::TypeID type_id;
      std::unique_ptr<TargetHardware> target_hardware;
      std::function<std::unique_ptr<TargetHardware>()> target_hardware_factory;
    };
    
    struct RegisteredTargetHardwareOps {
      explicit RegisteredTargetHardwareOps(mlir::TypeID hardware_type)
          : hardware_typeid(hardware_type) {}
      // Key is the Operation TypeID
      llvm::DenseMap<mlir::TypeID, std::unique_ptr<TargetHardwareOperation>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 21:39:59 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. src/encoding/gob/type.go

    var (
    	gobEncoderInterfaceType        = reflect.TypeFor[GobEncoder]()
    	gobDecoderInterfaceType        = reflect.TypeFor[GobDecoder]()
    	binaryMarshalerInterfaceType   = reflect.TypeFor[encoding.BinaryMarshaler]()
    	binaryUnmarshalerInterfaceType = reflect.TypeFor[encoding.BinaryUnmarshaler]()
    	textMarshalerInterfaceType     = reflect.TypeFor[encoding.TextMarshaler]()
    	textUnmarshalerInterfaceType   = reflect.TypeFor[encoding.TextUnmarshaler]()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.h

        // TODO(b/177376459): remove this.
        internal::RegisterTargetHardwareOp(mlir::TypeID::get<Hardware>(),
                                           mlir::TypeID::get<Op>(),
                                           target_hardware_op_factory);
        internal::RegisterTargetHardwareOpFactory(mlir::TypeID::get<Hardware>(),
                                                  mlir::TypeID::get<Op>(),
                                                  target_hardware_op_factory);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 21:39:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. src/encoding/gob/type_test.go

    	newtyp := getTypeUnlocked("int", reflect.TypeFor[int]())
    	if newtyp != tInt.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("uint", reflect.TypeFor[uint]())
    	if newtyp != tUint.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("string", reflect.TypeFor[string]())
    	if newtyp != tString.gobType() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h

    bool IsDynamicPadderOp(const TypeID& type_id);
    
    // Returns True if this op has a Tf2XLA fallback. Currently, this is not the
    // inverse of the !IsOpLegalizedWithMlir, but it should be.
    bool HasTf2XlaFallback(const TypeID& type_id);
    
    // Whether this type is allowed to have a TF2XLA fallback.
    bool IsOpAllowedTf2xlaFallback(const TypeID& type_id);
    
    // Whether this type is Preferred to use a TF2XLA fallback kernel when using
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 20:53:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

            TypeID type_id = effect.getResource()->getResourceID();
            ResourceId resource_id = GetOpResourceId(type_id, instance_str.value());
            side_effects.SetResourceId(resource_id);
            UpdateSideEffectsByResourceId(side_effects,
                                          side_effects_by_resource_id);
            if (ResourceEffects::IsOnlySelfDependent(type_id)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top