Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 122 for attr_ (0.15 sec)

  1. src/os/exec_posix.go

    )
    
    func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
    	// If there is no SysProcAttr (ie. no Chroot or changed
    	// UID/GID), double-check existence of the directory we want
    	// to chdir into. We can make the error clearer this way.
    	if attr != nil && attr.Sys == nil && attr.Dir != "" {
    		if _, err := Stat(attr.Dir); err != nil {
    			pe := err.(*PathError)
    			pe.Op = "chdir"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      bool IsValueInitValue(const DenseElementsAttr& attr) const override {
        auto element_type = attr.getType().getElementType();
        if (attr.getNumElements() != 1 || !element_type.isIntOrFloat())
          return false;
        if (mlir::isa<FloatType>(element_type)) {
          auto value = *attr.value_begin<APFloat>();
          return value.isNegative() && value.isInfinity();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/validators.cc

    // and writes X, Y as 32-bit integer attribute to `x`, `y`.
    bool TFIntListIs1XY1(Operation *op, StringRef name, IntegerAttr *x,
                         IntegerAttr *y) {
      auto attr = op->getAttrOfType<ArrayAttr>(name);
      if (!attr) return false;
    
      auto elements = attr.getValue();
      if (elements.size() != 4 ||
          std::any_of(elements.begin(), elements.end(),
                      [](Attribute e) { return !mlir::isa<IntegerAttr>(e); }))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

      }
    }
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    // `inner_size` allows to shuffle array attributes created from rank 2 tensors
    // on outer dimension only.
    ArrayAttr ShuffleArrayAttr(ArrayAttr attr, ArrayRef<int64_t> permutation,
                               int inner_size) {
      if (attr.empty()) return attr;
    
      assert(attr.size() % inner_size == 0);
      assert(attr.size() / inner_size == permutation.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/XmlNodeStaxBuilder.java

                        if (attributesSize > 0 || namespacesSize > 0) {
                            attrs = new HashMap<>();
                            for (int i = 0; i < namespacesSize; i++) {
                                String nsPrefix = parser.getNamespacePrefix(i);
                                String nsUri = parser.getNamespaceURI(i);
                                attrs.put(nsPrefix != null && !nsPrefix.isEmpty() ? "xmlns:" + nsPrefix : "xmlns", nsUri);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

          }
        }
      }
      return success();
    }
    
    void ModifyIONodesPass::runOnOperation() {
      auto func = getOperation();
      auto attrs = func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function");
    
      // Handle the entry functions only.
      if (func.getName() != "main" && (!attrs || attrs.empty())) {
        return;
      }
    
      OpBuilder builder(func);
      FunctionType func_type = func.getFunctionType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/syscall/exec_unix.go

    }
    
    var zeroProcAttr ProcAttr
    var zeroSysProcAttr SysProcAttr
    
    func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
    	var p [2]int
    	var n int
    	var err1 Errno
    	var wstatus WaitStatus
    
    	if attr == nil {
    		attr = &zeroProcAttr
    	}
    	sys := attr.Sys
    	if sys == nil {
    		sys = &zeroSysProcAttr
    	}
    
    	// Convert args to C form.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/cgo-callback.go

    void go_callback2();
    
    static void *thr(void *arg) {
        go_callback();
        return 0;
    }
    
    static void foo() {
        pthread_t th;
        pthread_attr_t attr;
        pthread_attr_init(&attr);
        pthread_attr_setstacksize(&attr, 256 << 10);
        pthread_create(&th, &attr, thr, 0);
        pthread_join(th, 0);
    }
    
    static void bar() {
        go_callback2();
    }
    */
    import "C"
    
    import (
    	"log"
    	"os"
    	"runtime"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

        Attribute real_value) {
      if (auto attr = dyn_cast<DenseFPElementsAttr>(real_value)) {
        return convert(attr);
      }
      return nullptr;
    }
    
    DenseElementsAttr UniformQuantizedPerAxisValueConverter::convert(
        DenseFPElementsAttr attr) {
      // Creates the converter for each chunk. Normally the size of the
      // quantization dim is 3, so we can cache all the converters.
      ShapedType type = attr.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    						// t must be an empty interface. So it can also be an Attr.
    						// We don't know enough to make an assumption.
    						pos = unknown
    						continue
    					} else if attrType != nil && types.AssignableTo(attrType, t) {
    						// Assume it is an Attr.
    						pos = key
    						continue
    					}
    					// Can't be either a string or Attr. Definitely an error.
    					fallthrough
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top