- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for attr_value (0.63 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc
case AttrValue::kI: return builder->getI64IntegerAttr(value.i()); case AttrValue::kS: return builder->getStringAttr(value.s()); case AttrValue::kF: return builder->getFloatAttr(builder->getF32Type(), value.f()); case AttrValue::kB: return builder->getBoolAttr(value.b()); case AttrValue::kType: { mlir::Type type; TF_RETURN_IF_ERROR(ConvertDataType(value.type(), *builder, &type));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/custom_aggregator_op.cc
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h" #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_requires.h" #include "tensorflow/core/framework/shape_inference.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.h
#include "mlir/IR/Location.h" // from @llvm-project #include "mlir/IR/Operation.h" // from @llvm-project #include "mlir/IR/Types.h" // from @llvm-project #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/function.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/lib/core/status.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
const void* proto, size_t proto_len, TF_Status* status) { tensorflow::AttrValue attr_value; if (!attr_value.ParseFromArray(proto, proto_len)) { status->status = tensorflow::errors::InvalidArgument("Unparseable AttrValue proto"); return; } if (op == nullptr) { status->status = tensorflow::errors::InvalidArgument(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/c/c_api.cc
tensorflow::AttrValue attr_value; if (!attr_value.ParseFromArray(proto, proto_len)) { status->status = InvalidArgument("Unparseable AttrValue proto"); return; } if (strcmp(attr_name, tensorflow::kColocationAttrName) == 0) { if (attr_value.value_case() != tensorflow::AttrValue::kList && attr_value.value_case() != tensorflow::AttrValue::VALUE_NOT_SET) { status->status =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_min_max.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/op_requires.h" #include "tensorflow/core/framework/tensor.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 01:31:23 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
EXPECT_EQ(0, TF_OperationNumControlOutputs(add)); ASSERT_TRUE(GetAttrValue(add, "T", &attr_value, s)) << TF_Message(s); EXPECT_EQ(attr_value.type(), tensorflow::DT_INT32); ASSERT_TRUE(GetAttrValue(add, "N", &attr_value, s)) << TF_Message(s); EXPECT_EQ(attr_value.i(), 2); // Placeholder oper now has a consumer. ASSERT_EQ(1, TF_OperationOutputNumConsumers(TF_Output{feed, 0}));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
using ::tsl::StatusOr; namespace { bool IsOutputShapesAttribute(const AttrValue& attr_value, llvm::StringRef attr_name) { return attr_name.compare(kOutputShapesAttrName) == 0 && attr_value.value_case() == AttrValue::kList; } bool IsResourceOutputShapesAttribute(const AttrValue& attr_value, llvm::StringRef attr_name) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
auto attr_name = signature.getArgAttrOfType<StringAttr>( operand.index(), kAttrArgumentNameAttr); auto attr_value = signature.getArgAttr(operand.index(), kAttrArgumentDefaultAttr); arg_attrs->push_back( rewriter.getNamedAttr(attr_name.getValue(), attr_value)); continue; } // The index is valid for the call_op. Value input = call_op.getOperand(operand.index());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/type_casters.h" // IWYU pragma: keep #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/protobuf/meta_graph.pb.h" namespace py = pybind11; namespace { using ::tensorflow::SignatureDef; using ::tensorflow::quantization::ExportedModel;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 09 06:33:29 UTC 2024 - 12K bytes - Viewed (0)