- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for DEVICE_TPU (0.49 sec)
-
tensorflow/compiler/jit/xla_platform_info_test.cc
DeviceType device_cpu = DeviceType(DEVICE_CPU); EXPECT_EQ(GetPersistentCacheDirectory(device_cpu), "/tmp/xla_cache"); DeviceType device_tpu = DeviceType(DEVICE_TPU); EXPECT_TRUE(GetPersistentCacheDirectory(device_tpu).empty()); } TEST_F(XlaPlatformInfoTest, GetPersistentCacheDirectoryNoDeviceTypes) { tensorflow::GetMarkForCompilationPassFlags()
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_platform_info.cc
TF_ASSIGN_OR_RETURN(*pjrt_client, GetOrCreatePjRtClient(device_type)); return absl::OkStatus(); } // TFRT-TPU is used if device_type is `DEVICE_TPU` and platform_info does not // have `xla_device_metadata`. if (device_type == DEVICE_TPU) { *compilation_device_type = DeviceType(DEVICE_TPU_XLA_JIT); TF_ASSIGN_OR_RETURN(*pjrt_client, GetOrCreatePjRtClient(device_type)); return absl::OkStatus();
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_compile_util_test.cc
EXPECT_FALSE(UsePjRtForSingleDeviceCompilation(DeviceType(DEVICE_CPU))); } TEST(XlaCompileUtilTest, PjRtDeviceCompilerResourceName) { EXPECT_EQ(GetPjRtDeviceCompilerResourceName(DeviceType(DEVICE_TPU)), "pjrt_device_compiler_TPU"); EXPECT_EQ(GetPjRtDeviceCompilerResourceName(DeviceType(DEVICE_TPU_NODE)), "pjrt_device_compiler_TPU");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 21:48:05 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/compiler/jit/get_compiler_ir.cc
compiler_arg_source)); XlaPlatformInfo platform_info = XlaPlatformInfoFromDevice(dev); auto compilation_device_type = platform_info.device_type(); if (platform_info.device_type() != DEVICE_TPU) { TF_ASSIGN_OR_RETURN(compilation_device_type, GetCompilationDeviceType(platform_info.device_type())); } XlaDeviceCompiler* xla_device_compiler;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 19K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_util.cc
// for CPU/GPU. This is to make sure the DeviceCompiler's lifecycle is // maintained appropriately. ResourceMgr* rm = nullptr; if (device_type == DEVICE_TPU) { rm = tfrt_global::GetTFGlobalResourceMgr(); } else { rm = ctx.resource_manager(); } if (!rm) { return absl::InternalError("No resource manager found."); } return rm; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc
std::vector<xla::XlaOp> returns(1); return BuildHloFromGraph(graph, builder, mlir_context, xla_params, returns, use_output_shapes, /*args=*/{}, /*control_rets=*/{}, DEVICE_TPU, FunctionLibraryDefinition(OpRegistry::Global()), /*debug_info=*/{}, /*custom_legalization_passes=*/{}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 19:54:38 UTC 2024 - 9.7K bytes - Viewed (0)