Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for parseFrame (0.22 sec)

  1. src/runtime/traceback_test.go

    		case strings.HasPrefix(line, "created by "):
    			funcName := line[len("created by "):]
    			cur.createdBy = parseFrame(funcName, "")
    		case strings.HasSuffix(line, ")"):
    			line = line[:len(line)-1] // Trim trailing ")"
    			funcName, args, found := strings.Cut(line, "(")
    			if !found {
    				fatal("missing (")
    			}
    			frame := parseFrame(funcName, args)
    			cur.frames = append(cur.frames, frame)
    		case elidedRe.MatchString(line):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h

    class RuntimeDevices {
      using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
      using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
     public:
      // Adds a device with and empty metadata. Device can be of any type.
      void AddDevice(const ParsedName& device);
    
      // Adds a GPU device with GPU specific metadata.
      void AddGpuDevice(const ParsedName& device,
                        const GpuDeviceMetadata& metadata);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_device_helper.cc

    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
    using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
    bool IsGpuDevice(const DeviceNameUtils::ParsedName &device) {
      return device.type == ::tensorflow::DEVICE_GPU;
    }
    
    }  // namespace
    
    // Returns true if at least one GPU device is available at runtime.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 21 08:41:18 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_structs.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h"
    
    #include <optional>
    
    namespace mlir {
    namespace TF {
    
    void RuntimeDevices::AddDevice(const ParsedName& device) {
      device_names_.push_back(device);
    }
    
    void RuntimeDevices::AddGpuDevice(const ParsedName& device,
                                      const GpuDeviceMetadata& metadata) {
      device_names_.push_back(device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_util.cc

      // TODO(sanjoy): Cache DeviceNameUtils::ParsedName inside device_info_cache.
      const auto is_multiple_devices =
          [&](const jit::DeviceId& d0, std::optional<jit::DeviceId>* d1) -> bool {
        const absl::string_view name0 = device_info_cache.GetNameFor(d0);
        const absl::string_view name1 = device_info_cache.GetNameFor(d1->value());
    
        DeviceNameUtils::ParsedName parsed0, parsed1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. internal/event/name.go

    	var s string
    	if err := json.Unmarshal(data, &s); err != nil {
    		return err
    	}
    
    	eventName, err := ParseName(s)
    	if err != nil {
    		return err
    	}
    
    	*name = eventName
    	return nil
    }
    
    // ParseName - parses string to Name.
    func ParseName(s string) (Name, error) {
    	switch s {
    	case "s3:BucketCreated:*":
    		return BucketCreated, nil
    	case "s3:BucketRemoved:*":
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. src/crypto/x509/verify.go

    // given name, of type nameType. The argument parsedName contains the parsed
    // form of name, suitable for passing to the match function. The total number
    // of comparisons is tracked in the given count and should not exceed the given
    // limit.
    func (c *Certificate) checkNameConstraints(count *int,
    	maxConstraintComparisons int,
    	nameType string,
    	name string,
    	parsedName any,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. src/text/template/parse/parse.go

    )
    
    // Copy returns a copy of the [Tree]. Any parsing state is discarded.
    func (t *Tree) Copy() *Tree {
    	if t == nil {
    		return nil
    	}
    	return &Tree{
    		Name:      t.Name,
    		ParseName: t.ParseName,
    		Root:      t.Root.CopyList(),
    		text:      t.text,
    	}
    }
    
    // Parse returns a map from template name to [Tree], created by parsing the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::ArrayAttr array_attr,
                                         mlir::TF::RuntimeDevices* devices) {
      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. src/cmd/trace/main.go

    	fi, err := tracef.Stat()
    	if err != nil {
    		logAndDie(fmt.Errorf("failed to stat trace file: %v", err))
    	}
    	traceSize := fi.Size()
    
    	// Handle requests for profiles.
    	if *pprofFlag != "" {
    		parsed, err := parseTrace(tracef, traceSize)
    		if err != nil {
    			logAndDie(err)
    		}
    		var f traceviewer.ProfileFunc
    		switch *pprofFlag {
    		case "net":
    			f = pprofByGoroutine(computePprofIO(), parsed)
    		case "sync":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top