- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PaddedShapeFn (0.14 sec)
-
tensorflow/compiler/jit/xla_device.h
// Given a tensor, sets `xla::Shape*` the shape of tensor's representation // on device, fully padded. On error, the contents of `xla::Shape*` // are undefined. typedef std::function<Status(const Tensor&, xla::Shape*)> PaddedShapeFn; // Wrapper class to store metadata about the XlaDevice, where it can be // retrieved e.g., when lazily creating the XlaCompilationCache device. class Metadata { public:
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_device.cc
#include "tensorflow/core/util/device_name_utils.h" #include "tensorflow/core/util/dump_graph.h" #include "tensorflow/core/util/stream_executor_util.h" namespace tensorflow { // Default PaddedShapeFn implementation that simply returns the unpadded // on-device shape. This is accurate for CPU and GPU devices that neither // transpose nor pad tensors. Status DefaultPaddedShapeFn(const Tensor& tensor, xla::Shape* shape) {
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_compiler_options_util_test.cc
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); } std::unique_ptr<PjRtBaseDevice::Metadata> CreatePjRtDeviceMetadata( DeviceType 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)