- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for shape_representation_fn (0.23 sec)
-
tensorflow/compiler/jit/xla_compiler_options_util_test.cc
std::move(compiler_client)); } std::vector<XlaShapeLayoutHelpers::ShapeDeterminationFns> GetShapeDeterminationFns() { XlaHelpers::ShapeRepresentationFn shape_representation_fn = [](const TensorShape&, DataType, bool, XlaLayoutPreference) { return xla::Shape(); }; XlaShapeLayoutHelpers::LayoutPreferenceFn layout_preference_fn =
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/xla_compiler_options_util.cc
<< (options.shape_determination_fns.layout_preference_fn != nullptr) << ",options.shape_determination_fns.shape_representation_fn?=" << (options.shape_determination_fns.shape_representation_fn != nullptr) << ",allow_cpu_custom_calls=" << options.allow_cpu_custom_calls << ",populate_resource_manager=" << options.populate_resource_manager
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
auto layout_preference = shape_determination_fns.layout_preference_fn( arg_shapes[i].shape, arg_dtype, std::nullopt); TF_ASSIGN_OR_RETURN(xla_shape, shape_determination_fns.shape_representation_fn( arg_shapes[i].shape, arg_dtype, /*use_fast_memory=*/false, layout_preference)); // Rewrite layout with sharding, if sharding is set.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_context.cc
device_tensor->shape(), device_tensor->dtype(), std::nullopt); Status status = [&]() -> Status { TF_ASSIGN_OR_RETURN(xla::Shape shape, shape_determination_fns_.shape_representation_fn( device_tensor->shape(), device_tensor->dtype(), /*fast_mem=*/false, layout_preference)); // The device tensor should always be fresh.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
shape_determination_fns.layout_preference_fn( cpu_tensor->shape(), cpu_tensor->dtype(), std::nullopt); TF_ASSIGN_OR_RETURN(xla::Shape shape, shape_determination_fns.shape_representation_fn( cpu_tensor->shape(), cpu_tensor->dtype(), /*fast_mem=*/false, layout_preference)); const xla::Layout* device_layout = &(shape.layout());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device.h
// from failures. Status EnsureDeviceContextOk() TF_LOCKS_EXCLUDED(mu_); // Two convenient methods to get the underlying device context. // Get the default device context, created by the first // shape_representation_fn. absl::StatusOr<DeviceContext*> GetDeviceContextDefault(); // Get the device context given the index. absl::StatusOr<DeviceContext*> GetDeviceContextWithIndex(int index);
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/mlir/tensorflow/utils/tf_xla_mlir_translate.cc
xla::XlaComputation* xla_computation = compilation_result->computation.get(); *xla_computation = xla::XlaComputation(hlo_proto.hlo_module()); XlaHelpers::ShapeRepresentationFn shape_representation_fn = IdentityShapeRepresentationFn(); XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns{ UseNoPreferenceLayoutFn(), IdentityShapeRepresentationFn()};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.8K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
shape_determination_fns.layout_preference_fn( input->shape(), input->dtype(), std::nullopt); TF_ASSIGN_OR_RETURN(xla::Shape shape, shape_determination_fns.shape_representation_fn( input->shape(), input->dtype(), /*use_fast_memory=*/false, layout_preference)); TF_RETURN_IF_ERROR(xla_output->AllocateShapedBuffer(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_cpu_device.cc
options.compilation_device_name = DEVICE_CPU_XLA_JIT; options.use_multiple_streams = false; XlaShapeLayoutHelpers::ShapeDeterminationFns shape_representation_fns{ UseNoPreferenceLayoutFn(), IdentityShapeRepresentationFn()}; options.shape_determination_fns = {shape_representation_fns}; auto device = std::make_unique<XlaDevice>(session_options, options); // Setting AcceleratorDeviceInfo because eager runtime relies on the device
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_gpu_device.cc
options.use_multiple_streams = true; options.allowed_devices = gpu_ids; XlaShapeLayoutHelpers::ShapeDeterminationFns shape_representation_fns{ UseNoPreferenceLayoutFn(), IdentityShapeRepresentationFn()}; options.shape_determination_fns = {shape_representation_fns}; auto device = std::make_unique<XlaDevice>(session_options, options); Status status = device->UseAcceleratorDeviceInfo();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 6.6K bytes - Viewed (0)