- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GetDenseAttrFromTensorProtoAttr (0.47 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.h
#include "mlir/IR/Types.h" // from @llvm-project #include "mlir/Support/LogicalResult.h" // from @llvm-project namespace mlir::quant::tensorflow { // GetDenseAttrFromTensorProtoAttr returns DenseElementsAttr from tensor proto. FailureOr<mlir::DenseElementsAttr> GetDenseAttrFromTensorProtoAttr( llvm::StringRef mangled_tensor_proto, TensorType result_tensor_type); // Check if a type is TF qint type. bool IsTFQintType(Type type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc
IntegerType::get(context.get(), 8), FloatType::getF32(context.get()), 3.0, 2, -128, 127)); auto dense_attr = GetDenseAttrFromTensorProtoAttr(GetQint8Tensor(), result_tensor_type); ASSERT_TRUE(succeeded(dense_attr)); EXPECT_THAT(dense_attr->getValues<int8_t>(), testing::SizeIs(4)); EXPECT_EQ(dense_attr->getValues<int8_t>()[0], 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils.cc
IntegerType::SignednessSemantics::Unsigned); }) .Default([&type](Type) { return type; }); } FailureOr<mlir::DenseElementsAttr> GetDenseAttrFromTensorProtoAttr( const llvm::StringRef mangled_tensor_proto, TensorType tensor_type) { ::tensorflow::TensorProto tensor_proto; absl::Status status = ::tensorflow::mangling_util::DemangleTensor(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" #include "tensorflow/core/lib/monitoring/counter.h" namespace mlir::quant::stablehlo { namespace { using quant::tensorflow::GetDenseAttrFromTensorProtoAttr; using quant::tensorflow::GetIntTypeFromTFQint; using quant::tensorflow::IsTFQintType; using quant::tensorflow::IsTFUniformQuantizedOp; #define GEN_PASS_DEF_CONVERTTFQUANTTYPES
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
#include "tensorflow/core/util/quantization/uniform_quant_ops_params.h" namespace mlir::quant::stablehlo { namespace { using quant::tensorflow::GetDenseAttrFromTensorProtoAttr; using quant::tensorflow::GetIntTypeFromTFQint; using quant::tensorflow::IsTFQintType; #define GEN_PASS_DEF_CONVERTTFQUANTOPSTOMHLO
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0)