- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for mutable_histo (0.21 sec)
-
tensorflow/c/kernels/histogram_summary_op.cc
const tensorflow::tstring& tag = *(static_cast<tensorflow::tstring*>(TF_TensorData(safe_tags_ptr.get()))); v->set_tag(tag.data(), tag.size()); histo.EncodeToProto(v->mutable_histo(), false /* Drop zero buckets */); Safe_TF_TensorPtr summary_tensor(TF_AllocateOutput( /*context=*/ctx, /*index=*/0, /*dtype=*/TF_ExpectedOutputDataType(ctx, 0), /*dims=*/nullptr, /*num_dims=*/0,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
Status SetTypeAttribute(absl::string_view name, ContainerT types, AttrValueMap* values) { AttrValue value; auto& type_list = *value.mutable_list(); for (auto type : types) { DataType dtype; TF_RETURN_IF_ERROR(ConvertScalarTypeToDataType(type, &dtype)); type_list.add_type(dtype); } auto result = values->insert({string(name), value});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/jit/node_matchers.cc
AttrValue::ListValue* list = attr_value.mutable_list(); for (int i : int_list_attr.second) { list->add_i(i); } return {int_list_attr.first, attr_value}; } std::pair<string, AttrValue> impl::AttrLiteralHelper( const std::pair<string, absl::Span<const string>>& string_list_attr) { AttrValue attr_value; AttrValue::ListValue* list = attr_value.mutable_list();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 03 16:15:20 UTC 2022 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc
.Attr("dtype", data_type) .Attr("value", tensor); // Create a bad output shape attr. AttrValue shape_attr; TensorShapeProto* shape_proto = shape_attr.mutable_list()->add_shape(); shape_proto->add_dim()->set_size(1); builder.Attr("_output_shapes", shape_attr); TF_RETURN_IF_ERROR(builder.Finalize(&node)); return CreateSingleOpGraph(node, {}, {DataType::DT_INT32});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 19:54:38 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
value->clear_value(); return absl::OkStatus(); } Status ConvertAttribute(const mlir::ArrayAttr& attr, bool remove_ref_type, AttrValue* value) { auto* list = value->mutable_list(); for (mlir::Attribute a : attr.getValue()) { if (auto attr = mlir::dyn_cast<mlir::BoolAttr>(a)) { list->add_b(attr.getValue()); } else if (auto attr = mlir::dyn_cast<mlir::IntegerAttr>(a)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
DataType dtype; TF_RETURN_IF_ERROR(ConvertToDataType(subtype.getElementType(), &dtype)); handle_dtypes_attr.mutable_list()->add_type(dtype); SetTensorShapeProto(subtype, handle_shapes_attr.mutable_list()->add_shape()); } (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
DataType dtype; TF_RETURN_IF_ERROR(ConvertToDataType(subtype.getElementType(), &dtype)); handle_dtypes_attr.mutable_list()->add_type(dtype); SetTensorShapeProto(subtype, handle_shapes_attr.mutable_list()->add_shape()); } (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/c/kernels_test.cc
TF_DeleteTensor(values[1]); return static_cast<void*>(s); }; AttrValue v; ::tensorflow::TensorProto* tensor_proto1 = v.mutable_list()->add_tensor(); *tensor_proto1 = TensorProtoHelpers::GenerateTensorProto1(); ::tensorflow::TensorProto* tensor_proto2 = v.mutable_list()->add_tensor(); *tensor_proto2 = TensorProtoHelpers::GenerateTensorProto2();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 50.4K bytes - Viewed (0) -
tensorflow/compiler/jit/compilability_check_util_test.cc
#include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { AttrValue FuncListAttr(const absl::Span<const char* const> names) { AttrValue attr; for (const char* name : names) { attr.mutable_list()->add_func()->set_name(name); } return attr; } constexpr char kFunctionalIfNodeName[] = "If"; constexpr char kFunctionalCaseNodeName[] = "Case"; constexpr char kFunctionalWhileNodeName[] = "While";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 10 12:32:39 UTC 2022 - 22.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
TFE_OpAddInput(op, tensor_handle, status); TF_DeleteTensor(tensor); TFE_DeleteTensorHandle(tensor_handle); tensorflow::AttrValue i_list_values; for (int i = 0; i < 4; ++i) { i_list_values.mutable_list()->add_i(1); } SetOpAttrValueScalar(ctx, op, i_list_values, "ksize", status); SetOpAttrValueScalar(ctx, op, i_list_values, "strides", status); tensorflow::AttrValue padding_value;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0)