Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ConvertTypeToTensorSpecProto (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

                ResultOf(IsSplat, IsFalse())));
    }
    
    TEST(ConvertTypeToTensorSpecProtoTest, UnrankedTensorType) {
      mlir::MLIRContext context;
      mlir::Builder b(&context);
    
      auto output_proto = ConvertTypeToTensorSpecProto(
          mlir::UnrankedTensorType::get(b.getF32Type()));
      TF_ASSERT_OK(output_proto.status());
      EXPECT_EQ(output_proto->dtype(), DT_FLOAT);
      EXPECT_TRUE(output_proto->shape().unknown_rank());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.h

    mlir::TF::ShapeAttr ConvertTypeToTensorShapeAttr(const mlir::Type& type);
    
    // Converts an MLIR shaped type to a Tensorflow tensor spec proto.
    absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto(
        const mlir::Type& type);
    
    // Converts a TensorFlow shape attribute to an MLIR shape attribute.
    absl::StatusOr<mlir::Attribute> ConvertTensorShapeProto(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

      // Empty TensorShape indicates a scalar.
      return mlir::TF::ShapeAttr::get(type.getContext(), ArrayRef<int64_t>());
    }
    
    absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto(
        const mlir::Type& type) {
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(type, &dtype));
      TensorSpecProto tensor_spec;
      tensor_spec.set_dtype(dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top