Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SetDevice (0.14 sec)

  1. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        auto device =
            DeviceFactory::NewDevice(device_type.type_string(), SessionOptions(),
                                     "/job:localhost/replica:0/task:0");
        device_ = device.get();
        SetDevice(device_type, std::move(device));
    
        XlaShapeLayoutHelpers::ShapeDeterminationFns shape_fns{
            UseNoPreferenceLayoutFn(), IdentityShapeRepresentationFn()};
        device_context_ = core::RefCountPtr<DeviceContext>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util_test.cc

        auto device =
            DeviceFactory::NewDevice(device_type.type_string(), SessionOptions(),
                                     "/job:localhost/replica:0/task:0");
        device_ = device.get();
        SetDevice(device_type, std::move(device));
    
        // Create PjRtClient for XLA_CPU.
        TF_CHECK_OK(SetPjRtClientInTFGlobalResourceManager(
            device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_platform_info_test.cc

    };
    
    #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
    TEST_F(XlaPlatformInfoTest, BuildXlaDeviceCompilerXlaDeviceMetadata) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
    
      Device* device = device_setup_.GetDevice(DEVICE_XLA_GPU);
      const XlaDevice::Metadata* metadata = nullptr;
      TF_CHECK_OK(XlaDevice::GetMetadataFromDevice(device, &metadata));
      XlaPlatformInfo platform_info = XlaPlatformInfoFromDevice(device);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

      }
    
      DeviceSetup device_setup_;
    };
    
    TEST_F(XlaCompilerOptionsTest, PjRtOptionsXlaDevice) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
      Device* device = device_setup_.GetDevice(DEVICE_XLA_GPU);
      DeviceType compilation_device_type = DeviceType(DEVICE_GPU_XLA_JIT);
    
      se::Platform::Id platform_id = nullptr;
      auto xla_device_metadata = CreateXlaDeviceMetadata(compilation_device_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        rewriter.replaceOp(op_to_replace, ValueRange({fused_op}));
        return success();
      }
    };
    
    const char kDeviceAttr[] = "device";
    const char kDeviceGpu[] = "GPU";
    
    std::optional<std::string> GetDevice(mlir::Operation *op) {
      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

          execute_launch.getLoc(), llvm::ArrayRef<Type>{}, reformat_operands);
      WrapOpInLaunch(&builder, execute_launch.getLoc(), reformat_op,
                     execute_launch.getDevice());
    
      // Build the replicated unformat op after the loop. First prepare building the
      // replicate op.
      llvm::SmallVector<std::pair<ValueRange, Type>, 8> unformat_replicate_operands;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

                                entry.value().get(), &builder);
    
        auto device_list = mlir::cast<ArrayAttr>(
            replicate.getDevices().value().get(execute_launch.getDevice()));
        copy_with_layout->setAttr(kDeviceAttr,
                                  device_list.getValue()[entry.index()]);
    
        entry.value().set(copy_with_layout);
      }
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

        // Map aliased devices to explicit devices based on replica.
        if (auto launch = dyn_cast<tf_device::LaunchOp>(op))
          if (auto device_by_replica = devices.value().get(launch.getDevice()))
            launch->setAttr(
                kDeviceAttr,
                device_by_replica.cast<ArrayAttr>()[replica_id].cast<StringAttr>());
    
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top