- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 42 for parseFrame (0.25 sec)
-
internal/event/name_test.go
{"s3:LifecycleDelMarkerExpiration:Delete", ILMDelMarkerExpirationDelete, false}, {"", blankName, true}, } for i, testCase := range testCases { name, err := ParseName(testCase.s) expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
const std::string attrKey = "T"; for (const Node* node : graph.nodes()) { if (node->type_string() == nodeType) { auto device_name = node->assigned_device_name(); DeviceNameUtils::ParsedName device; if (DeviceNameUtils::ParseFullName(device_name, &device) && device.has_job && device.job == jobType) { for (const auto& attr : node->attrs()) { auto attr_key = attr.first;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K bytes - Viewed (0) -
cmd/listen-notification-handlers.go
} pattern := event.NewPattern(prefix, suffix) var eventNames []event.Name var mask pubsub.Mask for _, s := range values[peerRESTListenEvents] { eventName, err := event.ParseName(s) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } mask.MergeMaskable(eventName) eventNames = append(eventNames, eventName) } if bucketName != "" {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
constexpr char kTPUReplicatedHost[] = "TPU_REPLICATED_HOST"; constexpr char kBadIntArrayElementMsg[] = "bad '{0}' attribute at index {1}, not an int"; using ParsedDevice = DeviceNameUtils::ParsedName; using ParsedDevices = llvm::ArrayRef<DeviceNameUtils::ParsedName>; namespace { // Find matching devices in `devices` based on pattern `spec`. llvm::SmallVector<ParsedDevice, 8> FindMatchingDevices( ParsedDevices devices, const ParsedDevice& spec) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
} result.emplace(std::move(per_device_outputs)); return result; } std::vector<std::string> ParallelDevice::SummarizeDeviceNames() const { std::vector<DeviceNameUtils::ParsedName> parsed_components( underlying_devices_.size()); for (int component_index = 0; component_index < underlying_devices_.size(); ++component_index) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 07:47:20 UTC 2024 - 25.4K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
} if err := w.WriteEvent(ev); err != nil { t.Fatalf("failed to write out test %s: %v", testPath, err) } } // Parse the test trace. parsed, err := parseTrace(&trace, int64(trace.Len())) if err != nil { t.Fatalf("failed to parse trace: %v", err) } return parsed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
} else { device = alias.getDefiningOp()->getAttrOfType<StringAttr>(kDeviceAttr); } if (!device) return false; tensorflow::DeviceNameUtils::ParsedName parsed_device; if (!tensorflow::DeviceNameUtils::ParseFullName(device.getValue().str(), &parsed_device)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
// replica_device_ids: 3 // replica_device_ids: 7 // } // } absl::StatusOr<TPUDeviceAssignment> GetTPUCompilationAndExecutionDevices( llvm::ArrayRef<DeviceNameUtils::ParsedName> devices, int num_replicas, int num_cores_per_replica, llvm::StringRef topology_attr, llvm::ArrayRef<int64_t> device_assignment_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
DLDevice GetDlContext(TFE_TensorHandle* h, TF_Status* status) { DLDevice ctx; const char* device_name = tensorflow::unwrap(h)->BackingDeviceName(&status->status); DeviceNameUtils::ParsedName parsed_name; tensorflow::DeviceNameUtils::ParseFullName(device_name, &parsed_name); std::string device_type = parsed_name.type; int device_id = 0; if (parsed_name.has_id) { device_id = parsed_name.id;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 12.8K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc
string name; // Only consider nodes being compiled. if (!TryGetNodeAttr(n->attrs(), kXlaClusterIdAttr, &name)) continue; // Early return for any node with a device that is not a CPU or GPU. DeviceNameUtils::ParsedName parsed; if (DeviceNameUtils::ParseFullName(n->requested_device(), &parsed)) { if (parsed.type != DEVICE_CPU && parsed.type != DEVICE_GPU) { return false; } } } return true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 15.1K bytes - Viewed (0)