- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for set_tensor_content (0.46 sec)
-
tensorflow/compiler/mlir/lite/utils/constant_utils.cc
auto complex_value = std::complex<float>(static_cast<float>(value), 0.0f); content.assign(reinterpret_cast<const char*>(&complex_value), sizeof(complex_value)); repr.set_tensor_content(content); std::string mangled = tensorflow::mangling_util::MangleTensor(repr); return mlir::TF::TensorProtoAttr::get(shaped_type, mangled); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
ret.add_string_val(str.str, str.len); } return ret; } std::string content; content.assign(reinterpret_cast<const char*>(buffer.data()), buffer.size()); ret.set_tensor_content(content); return ret; } } // namespace TFL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
using mlir::RankedTensorType; using mlir::ShapedType; using mlir::Type; using tensorflow::errors::InvalidArgument; static TensorProto ConvertToProto(const Tensor& input_tensor, bool use_tensor_content = true) { TensorProto tensor_proto; // Using tensor content (mostly*) reduces serialization overhead during RPC // calls, but is less human reader friendly. People reading protobufs are less
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0)