Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for r2devices (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        Builder* builder, OperationState* state, int n,
        std::optional<DictionaryAttr> devices,
        llvm::ArrayRef<std::pair<ValueRange, Type>> replicated_inputs,
        ValueRange packed_inputs, TypeRange replica_output_types) {
      DCHECK_GE(n, 2);
      state->addAttribute("n", builder->getI32IntegerAttr(n));
    
      if (devices.has_value()) state->addAttribute("devices", devices.value());
    
      Region* region = state->addRegion();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/claiminfo_test.go

    		expectedResult []kubecontainer.CDIDevice
    	}{
    		{
    			description: "empty CDI devices",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    					CDIDevices: map[string][]string{},
    				},
    			},
    		},
    		{
    			description: "nil CDI devices",
    			claimInfo:   &ClaimInfo{},
    		},
    		{
    			description: "valid CDI devices",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/manager.go

    				annotations = append(annotations, claimAnnotations...)
    
    				devices := claimInfo.cdiDevicesAsList()
    				klog.V(3).InfoS("Add CDI devices", "claim", *claimName, "CDI devices", devices)
    				cdiDevices = append(cdiDevices, devices...)
    
    				return nil
    			})
    			if err != nil {
    				return nil, fmt.Errorf("locked cache operation: %w", err)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

        int64_t device_id;
        if (!device_attr) {
          device_id = kAnyDevice;
        } else if (devices.find(device_attr) != devices.end()) {
          device_id = devices[device_attr];
        } else {
          device_id = 1 + devices.size();
          devices[device_attr] = device_id;
        }
    
        auto& alias_analysis = side_effect_analysis.GetAliasAnalysis();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

    LogicalResult GetTpuDeviceAssignment(
        ClusterOp cluster, ReplicateOp replicate, mlir::ModuleOp module,
        absl::StatusOr<TPUDeviceAssignment>& status_or_tpu_device_assignment) {
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices))) return failure();
    
      uint32_t num_replicas = replicate.getN();
    
      auto num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

    void LayoutAssignmentPass::runOnOperation() {
      func::FuncOp func = getOperation();
    
      // Get runtime devices information from the closest parent module.
      RuntimeDevices devices;
      if (failed(::tensorflow::GetDevicesFromOp(func->getParentOfType<ModuleOp>(),
                                                &devices)))
        return signalPassFailure();
    
      // If there is no runtime device information and data format is not explicitly
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

          location, concat_dim_type, concat_dimension_attr);
    
      // Correctly set output shapes of concat op output if output shape is
      // statically known. Since the shape of TPUExecute op must be the same
      // across logical devices, we refer to the shape of 0th logical device
      // computation output.
      mlir::Type output_type;
      auto input_type = mlir::cast<mlir::TensorType>(inputs[0].getType());
    
      if (input_type.hasRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

      llvm::SmallVector<Value, 4> inputs;
      // The result values of the function.
      llvm::SmallVector<Value, 4> results;
      // The devices of the input values. It should have the same size as inputs.
      llvm::SmallVector<std::string, 4> input_devices;
      // The devices of the result values. It should have the same size as results.
      llvm::SmallVector<std::string, 4> result_devices;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

                                    DenseIntElementsAttr replica_groups,
                                    Operation* op) {
      // Use special group_key 0 to represent "all available devices". This
      // shall resolve to a DeviceAssignment that includes all devices intended for
      // replica_groups.
      IntegerAttr group_size = builder.getI32IntegerAttr(replica_groups.size());
      IntegerAttr group_key = builder.getI32IntegerAttr(0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. pkg/volume/util/util_test.go

    		t.Run(test.name, func(t *testing.T) {
    			mounts, devices, contexts := GetPodVolumeNames(test.pod)
    			if !mounts.Equal(test.expectedMounts) {
    				t.Errorf("Expected mounts: %q, got %q", sets.List[string](mounts), sets.List[string](test.expectedMounts))
    			}
    			if !devices.Equal(test.expectedDevices) {
    				t.Errorf("Expected devices: %q, got %q", sets.List[string](devices), sets.List[string](test.expectedDevices))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top