Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for strref (0.4 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

            mlir::cast<NameLoc>(locations.front()).getName().strref();
        StringRef op_type =
            op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1);
        new_unit.set_op_type(op_type.str());
    
        if (isa<NameLoc>(locations.back())) {
          StringRef name_loc_id =
              mlir::cast<NameLoc>(locations.back()).getName().strref();
          set_node_and_func_name(new_unit, name_loc_id);
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

      auto callsite_loc = llvm::dyn_cast<CallSiteLoc>(attr);
    
      if (!mlir::isa<NameLoc>(callsite_loc.getCaller())) return false;
      StringRef caller_name =
          mlir::cast<NameLoc>(callsite_loc.getCaller()).getName().strref();
      return caller_name.starts_with(kQuantizationUnitPrefix) &&
             caller_name.ends_with(kQuantizationUnitSuffix);
    }
    
    std::optional<QuantizationUnitLoc::QuantizationUnit>
    FindQuantizationUnitFromLoc(Location loc) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/location_utils.cc

        if (!locations.empty()) {
          // Skip locations for propagating op_type metadata.
          if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) {
            if (name_loc.getName().strref().ends_with(":")) {
              if (locations.size() == 2)
                return locations[1];
              else if (locations.size() > 2)
                return mlir::FusedLoc::get(
                    fused_loc.getContext(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

        return attr.getName().strref().front() == '_';
      });
    }
    
    // Copies outside compilation attribute from `from` to `to`.
    inline void CopyXlaOutsideCompilationAttributes(Operation *from,
                                                    Operation *to) {
      CopyAttributes(from, to, [](const NamedAttribute &attr) {
        return attr.getName().strref() == kXlaOutsideCompilationAttr;
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/metrics/types_util.cc

              size_t num_locs = locations.size();
              // Skip the first location if it stores information for propagating
              // op_type metadata.
              if (num_locs > 0) {
                if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) {
                  if (name_loc.getName().strref().ends_with(":")) {
                    if (num_locs == 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

      auto entry_function_attr =
          func_op->getAttrOfType<DictionaryAttr>("tf.entry_function");
    
      SmallVector<StringRef> inputs;
      mlir::dyn_cast_or_null<StringAttr>(entry_function_attr.get("inputs"))
          .strref()
          .split(inputs, /*Separator=*/",");
    
      return inputs;
    }
    
    void ConvertMainArgAttrs(func::FuncOp main_func_op, const int arg_idx,
                             const StringRef index_path) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

        if (!DeviceNameUtils::ParseFullName(name.str(), &device))
          return op->emitOpError(
              llvm::formatv("bad '{0}' attribute, '{1}', not a valid device",
                            kDevicesAttr, name.strref()));
    
        if (auto gpu_metadata = mlir::dyn_cast<mlir::TF::GpuDeviceMetadata>(attr)) {
          devices->AddGpuDevice(device, gpu_metadata);
        } else {
          devices->AddDevice(device);
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("store1", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr1", "v", "zero1"),
    			Valu("store2", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr2", "v", "store1"),
    			Valu("store3", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr1", "v", "store2"),
    			Valu("store4", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr3", "v", "store3"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("store3")))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/ResolutionResultsStoreFactoryTest.groovy

            def store2 = stores1.nextBinaryStore() // rolled
            def store3 = f.createStoreSet().nextBinaryStore()
    
            then:
            store.file != store2.file //rolled
            [store.file, store2.file, store3.file].each { it.exists() }
    
            when:
            new CompositeStoppable().add(store, store2, store3)
    
            then:
            [store.file, store2.file, store3.file].each { !it.exists() }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. pilot/pkg/config/aggregate/config_test.go

    func TestAggregateStoreWrite(t *testing.T) {
    	g := NewWithT(t)
    
    	store1 := memory.Make(collection.SchemasFor(collections.HTTPRoute))
    	store2 := memory.Make(collection.SchemasFor(collections.HTTPRoute))
    
    	stores := []model.ConfigStore{store1, store2}
    
    	store, err := makeStore(stores, store1)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	if _, err := store.Create(config.Config{
    		Meta: config.Meta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top