- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ConvertToMlirTensorType (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_type_test.cc
shape.add_dim()->set_size(dim); } mlir::MLIRContext context; mlir::Builder b(&context); auto status_or = ConvertToMlirTensorType(shape, dtype, &b); std::string buf; llvm::raw_string_ostream os(buf); status_or.value().print(os); return os.str(); } TEST(MlirConvertType, ConvertToMlirTensorType) { // Simple case of static shapes. EXPECT_EQ("tensor<4x8x16xi32>",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type.h
llvm::SmallVectorImpl<int64_t>* shape); // Given a tensor shape and dtype, get the corresponding MLIR tensor type. absl::StatusOr<mlir::Type> ConvertToMlirTensorType( const TensorShapeProto& shape, DataType dtype, mlir::Builder* builder); } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc
} shape->push_back(d.size() == kTFDynamicSize ? ShapedType::kDynamic : d.size()); } return absl::OkStatus(); } absl::StatusOr<mlir::Type> ConvertToMlirTensorType( const TensorShapeProto& shape, DataType dtype, mlir::Builder* builder) { mlir::Type element_type; TF_RETURN_IF_ERROR(ConvertDataType(dtype, *builder, &element_type)); if (shape.unknown_rank()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
if (output_shapes && !output_shapes->list().shape().empty()) { const auto& output_shape = output_shapes->list().shape(idx); const auto& element_type = element_types->list().type(idx); return ConvertToMlirTensorType(output_shape, element_type, &builder); } } auto type_from_array_attr = [&node, &idx, &builder]( absl::string_view output_shape_attr,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0)