Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TpuPaddedShapeFn (0.1 sec)

  1. tensorflow/compiler/jit/xla_tpu_device.cc

        return status.status();
      }
      return tpu_shape.AsCpp<xla::Shape>();
    }
    
    // Given a tensor, returns the shape of its representation on device,
    // fully padded. Contents of `shape` are undefined on error.
    Status TpuPaddedShapeFn(const Tensor& tensor, xla::Shape* shape) {
      const tensorflow::XlaTensor* xla_tensor =
          tensorflow::XlaTensor::FromTensor(&tensor);
      if (xla_tensor == nullptr) {
        return errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top