Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EncodePrimitiveTypeAsDataType (0.58 sec)

  1. tensorflow/compiler/jit/xla_host_recv_device_context.cc

    namespace tensorflow {
    
    void XlaHostRecvDeviceContext::CopyDeviceTensorToCPU(
        const Tensor* device_tensor, StringPiece tensor_name, Device* device,
        Tensor* cpu_tensor, StatusCallback done) {
      DataType dtype = EncodePrimitiveTypeAsDataType(shape_.element_type()).value();
      TensorShape tensor_shape;
      Status status = XLAShapeToTensorShape(shape_, &tensor_shape);
      if (!status.ok()) {
        done(status);
        return;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

              const xla::Shape& xla_shape) -> absl::StatusOr<xla::Shape> {
        TensorShape shape;
        TF_RETURN_IF_ERROR(XLAShapeToTensorShape(xla_shape, &shape));
        TF_ASSIGN_OR_RETURN(DataType dtype, EncodePrimitiveTypeAsDataType(
                                                xla_shape.element_type()));
        auto layout_preference = shape_determination_fns.layout_preference_fn(
            shape, dtype, std::nullopt);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          const xla::Literal* const xla_literal = arguments[i];
          tensorflow::TensorShape shape;
          TF_ASSIGN_OR_RETURN(auto data_type,
                              tensorflow::EncodePrimitiveTypeAsDataType(
                                  xla_literal->shape().element_type()));
          TF_RETURN_IF_ERROR(
              tensorflow::XLAShapeToTensorShape(xla_literal->shape(), &shape));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
Back to top