Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for padded_shape_fn (0.25 sec)

  1. tensorflow/compiler/jit/xla_device.h

        std::vector<XlaShapeLayoutHelpers::ShapeDeterminationFns>
            shape_determination_fns;
    
        // If padded_shape_fn is empty, a default implementation that returns
        // the logical on-device shape without padding is used.
        PaddedShapeFn padded_shape_fn;
    
        // Set of devices to use. This controls which of the devices on the given
        // platform will have resources allocated. For GPUs this will be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_device.cc

            shape_determination_fns,
        PaddedShapeFn padded_shape_fn, bool use_multiple_streams)
        : device_ordinal_(device_ordinal),
          device_type_(device_type),
          platform_(platform),
          shape_determination_fns_(std::move(shape_determination_fns)),
          padded_shape_fn_(std::move(padded_shape_fn)),
          use_multiple_streams_(use_multiple_streams) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_tpu_device.cc

        XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns{
            UseNoPreferenceLayoutFn(), &TpuShapeRepresentation};
        options.shape_determination_fns = {shape_determination_fns};
        options.padded_shape_fn = &TpuPaddedShapeFn;
        auto device = std::make_unique<XlaDevice>(session_options, options);
    
        // The AcceleratorDeviceInfo actually provides information not only for GPU
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

          auto padded_shape_i = padded_shape[1 + i];
          auto block_shape_ints_i = block_shape_ints[i];
    
          // Compute the outer_shape constant values to infer the reshape.
          if (padded_shape_i == -1 || block_shape_ints_i == -1) {
            outer_shape_ints.push_back(-1);
          } else {
            outer_shape_ints.push_back(padded_shape_i / block_shape_ints_i);
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top