Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for IsExported (0.23 sec)

  1. src/cmd/compile/internal/types2/typestring.go

    	defer delete(w.seen, typ)
    
    	switch t := typ.(type) {
    	case nil:
    		w.error("nil")
    
    	case *Basic:
    		// exported basic types go into package unsafe
    		// (currently this is just unsafe.Pointer)
    		if isExported(t.name) {
    			if obj, _ := Unsafe.scope.Lookup(t.name).(*TypeName); obj != nil {
    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

      }
    
      StringRef getDescription() const override {
        return "Inserts the main function to the module.";
      }
    
      void runOnOperation() override;
    };
    
    // Checks if a FuncOp is exported.
    bool IsExported(func::FuncOp op) {
      auto exported_names =
          op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr);
      return exported_names && !exported_names.empty();
    }
    
    // Check if a function is an entry function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/ModuleLibrary.java

        }
    
        @Override
        public void setScope(String scope) {
            this.scope = scope;
        }
    
        /**
         * Whether the library is exported to dependent modules.
         */
        public boolean isExported() {
            return exported;
        }
    
        public void setExported(boolean exported) {
            this.exported = exported;
        }
    
        @Override
        public void addToNode(Node parentNode) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

            /*visibility=*/globalBuilder.getStringAttr("private"));
        variableOp.setPrivate();
      }
    
      SymbolTable syms(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        if (!tf_saved_model::IsExported(func)) {
          continue;
        }
        bool success = true;
        func.walk([&](mlir::TF::ReadVariableOp op) {
          auto sym = lookupGlobalTensor(func, op.getResource(), syms, opToName);
          success &= !!sym;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. src/go/types/typestring.go

    	defer delete(w.seen, typ)
    
    	switch t := typ.(type) {
    	case nil:
    		w.error("nil")
    
    	case *Basic:
    		// exported basic types go into package unsafe
    		// (currently this is just unsafe.Pointer)
    		if isExported(t.name) {
    			if obj, _ := Unsafe.scope.Lookup(t.name).(*TypeName); obj != nil {
    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/reflect/type.go

    	PkgPath string
    
    	Type  Type  // method type
    	Func  Value // func with receiver as first argument
    	Index int   // index for Type.Method
    }
    
    // IsExported reports whether the method is exported.
    func (m Method) IsExported() bool {
    	return m.PkgPath == ""
    }
    
    // String returns the name of k.
    func (k Kind) String() string {
    	if uint(k) < uint(len(kindNames)) {
    		return kindNames[uint(k)]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  7. src/encoding/gob/type.go

    		}
    		return st, nil
    
    	default:
    		return nil, errors.New("gob NewTypeObject can't handle type: " + rt.String())
    	}
    }
    
    // isExported reports whether this is an exported - upper case - name.
    func isExported(name string) bool {
    	rune, _ := utf8.DecodeRuneInString(name)
    	return unicode.IsUpper(rune)
    }
    
    // isSent reports whether this struct field is to be transmitted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/gcimporter_test.go

    			imported := importPkg(t, "./testdata/"+pkgName, tmpdir)
    			checked := checkFile(t, filename, src)
    
    			seen := make(map[string]bool)
    			for _, name := range imported.Scope().Names() {
    				if !token.IsExported(name) {
    					continue // ignore synthetic names like .inittask and .dict.*
    				}
    				seen[name] = true
    
    				importedObj := imported.Scope().Lookup(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. schema/schema.go

    		// Wait for the initialization of other goroutines to complete
    		<-s.initialized
    		return s, s.err
    	}
    
    	for i := 0; i < modelType.NumField(); i++ {
    		if fieldStruct := modelType.Field(i); ast.IsExported(fieldStruct.Name) {
    			if field := schema.ParseField(fieldStruct); field.EmbeddedSchema != nil {
    				schema.Fields = append(schema.Fields, field.EmbeddedSchema.Fields...)
    			} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/deadcode.go

    		// as new types (with new methods) may have been discovered
    		// in the last pass.
    		rem := d.markableMethods[:0]
    		for _, m := range d.markableMethods {
    			if (d.reflectSeen && (m.isExported() || d.dynlink)) || d.ifaceMethod[m.m] || d.genericIfaceMethod[m.m.name] {
    				d.markMethod(m)
    			} else {
    				rem = append(rem, m)
    			}
    		}
    		d.markableMethods = rem
    
    		if d.wq.empty() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top