- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for attr_value (0.16 sec)
-
tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc
string AttrView::DefaultValue() const { const AttrValue &attr_value = attr_.default_value(); switch (attr_value.value_case()) { case AttrValue::VALUE_NOT_SET: return ""; case AttrValue::kType: return DataType_Name(attr_value.type()); case AttrValue::kS: return "\"" + attr_value.s() + "\""; case AttrValue::kI: return std::to_string(attr_value.i()); case AttrValue::kF:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/cc/framework/cc_op_gen_util.h
} return ret; } string PrintTensor(const TensorProto& tensor_proto); string PrintTensorProto(const TensorProto& proto); string PrintAttrValue(StringPiece, const AttrValue& attr_value); bool IsEmptyList(const AttrValue::ListValue& list); string ToCamelCase(StringPiece str); string SeparateNamespaces(StringPiece str); // Returns a <string, bool> pair. The string is the C++ type name to be used for
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 00:57:05 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_attr.h
absl::StatusOr<mlir::Attribute> ConvertNonFuncAttributeValue( const AttrValue& value, mlir::Builder* builder); // Converts all kinds of AttrValue proto into an MLIR attribute. absl::StatusOr<mlir::Attribute> ConvertAttributeValue(const AttrValue& value, mlir::Builder* builder); } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/model/attr_spec.h
const string& base_type() const { return base_type_; } const AttrValue& default_value() const { return default_value_; } const bool is_list() const { return is_list_; } private: explicit AttrSpec(const OpDef::AttrDef& attr_def); string name_; string description_; string full_type_; string base_type_; AttrValue default_value_; bool is_list_; }; } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 15 18:23:40 UTC 2021 - 1.9K bytes - Viewed (0) -
tensorflow/c/eager/tfe_op_attrs_internal.h
typedef struct TFE_Op TFE_Op; namespace tensorflow { DEFINE_CONVERSION_FUNCTIONS(tensorflow::AbstractOpAttrs, TFE_OpAttrs); // Set an AttrValue on the op. Doesn't handle the list types. void SetOpAttrValueScalar(TFE_Context* ctx, TFE_Op* op, const tensorflow::AttrValue& default_value, const char* attr_name, TF_Status* status); } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 10 05:41:19 UTC 2021 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h
(*op)->setAttr("data_format", StringAttr::get(context, target_data_format)); for (auto pair : shuffle_attrs) { StringRef attr_name = pair.first; ArrayAttr attr_value = pair.second; (*op)->setAttr(attr_name, ShuffleArrayAttr(attr_value, reverse_permutation)); } auto fold = cast<FoldOperandsTransposeInterface>(op->getOperation()); for (unsigned idx : fold.GetLayoutDependentResults()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0) -
tensorflow/c/c_test_util.h
bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def); bool GetAttrValue(TF_Operation* oper, const char* attr_name, tensorflow::AttrValue* attr_value, TF_Status* s); // Returns a sorted vector of std::pair<function_name, gradient_func> from // graph_def.library().gradient() std::vector<std::pair<string, string>> GetGradDefs(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
} } return true; } bool HasSymbolRefAttr(Operation* op) { for (const auto& attr : op->getAttrs()) { Attribute attr_value = attr.getValue(); if (mlir::isa<SymbolRefAttr>(attr_value)) { return true; } else if (auto array_attr = mlir::dyn_cast<ArrayAttr>(attr_value)) { if (!array_attr.empty() && mlir::isa<SymbolRefAttr>(*array_attr.begin())) { return true; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.h
#include "llvm/ADT/StringRef.h" #include "mlir/IR/Operation.h" // from @llvm-project #include "tensorflow/compiler/mlir/tensorflow/utils/export_utils.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/op_def_builder.h" #include "tensorflow/core/platform/status.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 2.4K bytes - Viewed (0)