- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for XlaDevice (0.22 sec)
-
tensorflow/compiler/jit/xla_device.cc
int XlaDevice::Metadata::device_ordinal() const { return device_ordinal_; } se::Platform* XlaDevice::Metadata::platform() const { return platform_; } xla::LocalClient* XlaDevice::Metadata::client() const { auto client = xla::ClientLibrary::GetOrCreateLocalClient(platform_); return client.value(); } const DeviceType& XlaDevice::Metadata::jit_device_type() const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 21:05:42 UTC 2024 - 24.3K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device.h
==============================================================================*/ // The XlaDevice executes a TensorFlow graph using the XLA linear algebra // runtime. // // Operators assigned to an XlaDevice are compiled into XLA computations. // Tensors on an XlaDevice are thin wrappers around XLA ScopedShapedBuffers. // // XlaDevice is instantiated separately for each XLA backend (e.g., CPU or GPU),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_platform_info_test.cc
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); TF_ASSERT_OK_AND_ASSIGN( DeviceType compilation_device_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Jan 14 15:17:12 UTC 2024 - 13.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_gpu_device.cc
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Registers the XLA_GPU device, which is an XlaDevice instantiation that runs // operators using XLA via the XLA "CUDA" or "ROCM" (GPU) backend. #include <array> #include <set> #include "absl/memory/memory.h" #include "absl/strings/numbers.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_cpu_device.cc
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Registers the XLA_CPU device, which is an XlaDevice instantiation that runs // operators using XLA via the XLA "Host" (CPU) backend. #include <array> #include "absl/memory/memory.h" #include "tensorflow/compiler/jit/defs.h" #include "tensorflow/compiler/jit/flags.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_platform_info.h
public: XlaPlatformInfo() : device_type_("") {} XlaPlatformInfo(XlaPlatformInfo&&) = default; explicit XlaPlatformInfo( const DeviceType device_type, se::Platform::Id platform_id, const XlaDevice::Metadata* xla_device_metadata, const PjRtBaseDevice::Metadata* pjrt_device_metadata, std::shared_ptr<se::DeviceMemoryAllocator> device_allocator) : device_type_(device_type), platform_id_(platform_id),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_platform_info.cc
->stream->parent() ->GetPlatform() ->id(); } else if (XlaDevice::GetMetadataFromDevice(device_base, &xla_device_metadata) .ok()) { // If we are on an XlaDevice, use the underlying XLA platform's allocator // directly. We could use the StreamExecutor's allocator which may
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 17:23:27 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compiler_options_util_test.cc
layout_preference_fn, shape_representation_fn}}; } std::unique_ptr<XlaDevice::Metadata> CreateXlaDeviceMetadata( DeviceType compilation_device_type) { return std::make_unique<XlaDevice::Metadata>( /*device_ordinal=*/0, /*platform=*/nullptr, compilation_device_type, GetShapeDeterminationFns(), XlaDevice::PaddedShapeFn(), /*use_multiple_streams=*/false); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 29 01:41:20 UTC 2023 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_base_device.h
#include "tensorflow/core/common_runtime/local_device.h" #include "tensorflow/core/framework/device_base.h" namespace tensorflow { // tensorflow::PjRtBaseDevice replaces the deprecated tensorflow::XlaDevice. // This accelerator agnostic device is mainly used to store metadata. class PjRtBaseDevice : public LocalDevice { public: // Stores metadata about the PjRtBaseDevice. class Metadata { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 12:19:41 UTC 2024 - 4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tensor.h
#include "tensorflow/core/framework/device_base.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/mutex.h" namespace tensorflow { // The implementation of a Tensor for an XlaDevice. All device tensors are // actually one of these. // // To distinguish between "normal" device tensors and XlaTensors, the raw // pointer data stored in the TensorBuffer is a tagged pointer. class XlaTensor { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 4.7K bytes - Viewed (0)