Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for XLAShapeToTensorShape (0.21 sec)

  1. tensorflow/compiler/jit/xla_host_recv_device_context.cc

        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;
      }
    
      *cpu_tensor = Tensor(dtype, tensor_shape);
    
      status = stream_->Memcpy(cpu_tensor->data(), device_memory_base_,
    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

    absl::StatusOr<TensorShape> GetTensorShapeFromXlaArgument(
        const XlaArgument& arg) {
      if (absl::holds_alternative<xla::Shape>(arg.shape)) {
        TensorShape arg_shape;
        TF_RETURN_IF_ERROR(
            XLAShapeToTensorShape(std::get<xla::Shape>(arg.shape), &arg_shape));
        return arg_shape;
      } else {
        return std::get<TensorShape>(arg.shape);
      }
    }
    
    Status MaybeRewriteLayoutWithShardedShape(
    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/jit/xla_launch_util.cc

        for (int i = 0; i < ctx->num_outputs(); ++i) {
          const xla::Shape& subshape =
              xla::ShapeUtil::GetSubshape(output_device_shape, {i});
          TensorShape shape;
          TF_RETURN_IF_ERROR(XLAShapeToTensorShape(subshape, &shape));
          output_tensor_shapes.push_back(shape);
        }
      } else {
        for (int i = 0; i < ctx->num_outputs(); ++i) {
          output_tensor_shapes.push_back(compilation_result->outputs[i].shape);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

                              tensorflow::EncodePrimitiveTypeAsDataType(
                                  xla_literal->shape().element_type()));
          TF_RETURN_IF_ERROR(
              tensorflow::XLAShapeToTensorShape(xla_literal->shape(), &shape));
          tensorflow::Tensor tensor(data_type, shape);
          std::memcpy(static_cast<char*>(tensor.data()),
                      xla_literal->untyped_data(),
    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