Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 831 for attr_ (0.04 sec)

  1. tensorflow/compiler/mlir/tfr/utils/utils.cc

          new llvm::StringSet<>({"asymmetric_quantize_inputs"});
      return *ops;
    }
    
    void CollectAllowedAttrs(CallOp src, NamedAttrList* attrs) {
      for (auto& attr : src->getAttrs()) {
        if (GetAllowedAttributes().contains(attr.getName().strref())) {
          attrs->append(attr);
        }
      }
    }
    
    // Adds `attrs` to all the operations between `begin` and `end` in the same
    // block. Does not include `end`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      for (auto attr : kQuantizationAxisAttrs) {
        if (defining_op->hasAttr(attr)) {
          return defining_op->getAttr(attr);
        }
      }
      // Not found.
      return rewriter.getI64IntegerAttr(-1);
    }
    
    LogicalResult CheckIfAttrIs8Bit(const std::string& attr, Operation* op,
                                    bool& is_8_bit) {
      Type element_type;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. src/log/slog/record.go

    		}
    	}
    	ne := countEmptyGroups(attrs[i:])
    	r.back = slices.Grow(r.back, len(attrs[i:])-ne)
    	for _, a := range attrs[i:] {
    		if !a.Value.isEmptyGroup() {
    			r.back = append(r.back, a)
    		}
    	}
    }
    
    // Add converts the args to Attrs as described in [Logger.Log],
    // then appends the Attrs to the [Record]'s list of Attrs.
    // It omits empty groups.
    func (r *Record) Add(args ...any) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

          // will not use this representation.
          mlir::NamedAttrList attrs;
          for (const auto& func_attr : value.func().attr()) {
            TF_ASSIGN_OR_RETURN(auto attr,
                                ConvertAttributeValue(func_attr.second, builder));
            attrs.push_back(builder->getNamedAttr(func_attr.first, attr));
          }
          auto func_attrs = builder->getDictionaryAttr(attrs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/python/mlir_wrapper/attrs.cc

    A. Unique TensorFlower <******@****.***> 1607095399 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 04 15:29:40 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/AbstractModuleDependencySpec.groovy

        }
    
        void "can set attributes"() {
            def attr1 = Attribute.of("attr1", String)
            def attr2 = Attribute.of("attr2", Integer)
    
            when:
            dependency.attributes {
                it.attribute(attr1, 'foo')
                it.attribute(attr2, 123)
            }
    
            then:
            dependency.attributes.keySet() == [attr1, attr2] as Set
            dependency.attributes.getAttribute(attr1) == 'foo'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:36:23 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/log/slog/record_test.go

    }
    
    func newRecordWithAttrs(as []Attr) Record {
    	r := NewRecord(time.Now(), LevelInfo, "", 0)
    	r.AddAttrs(as...)
    	return r
    }
    
    func attrsSlice(r Record) []Attr {
    	s := make([]Attr, 0, r.NumAttrs())
    	r.Attrs(func(a Attr) bool { s = append(s, a); return true })
    	return s
    }
    
    func attrsEqual(as1, as2 []Attr) bool {
    	return slices.EqualFunc(as1, as2, Attr.Equal)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 15:10:55 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	// Add on extra attributes if provided.
    	if attrs != nil {
    		// Make bold if specified.
    		if attrs.Bold {
    			attr += ` style="bold,filled"`
    		}
    
    		// Add peripheries if specified.
    		if attrs.Peripheries != 0 {
    			attr += fmt.Sprintf(` peripheries=%d`, attrs.Peripheries)
    		}
    
    		// Add URL if specified. target="_blank" forces the link to open in a new tab.
    		if attrs.URL != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      // we cannot rely on node name; use an attribute instead.
      host_compute_builder.Attr(kXlaOriginalOutsideCompilationNodeName,
                                host_compute_builder.node_name());
    
      // Copy all attributes.
      for (const auto& attr : call_node->attrs()) {
        host_compute_builder.Attr(attr.first, attr.second);
      }
    
      // Populate tpu_core assignment.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    }
    
    LogicalResult ConvertNgrams(func::FuncOp func, llvm::StringRef api,
                                FuncAttr attr) {
      func.eraseBody();
      func.addEntryBlock();
      func->setAttr(kTFImplements, attr);
      OpBuilder builder(func.getBody());
      std::string custom_option_buffer;
      if (failed(CreateNgramsCustomOption(func, attr.getAttrs(),
                                          custom_option_buffer))) {
        return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top