- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 136 for Dtype (0.04 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc
auto operand_or_result = value_shaped_type.getElementType(); std::string dtype; TypeSwitch<Type>(operand_or_result) .Case<IntegerType>([&](Type) { dtype = absl::StrCat("i", operand_or_result.getIntOrFloatBitWidth()); }) .Case<FloatType>([&](Type) { dtype = absl::StrCat("f", operand_or_result.getIntOrFloatBitWidth());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
DataType dtype, TensorShape shape, const char* raw_device_name, ImmediateTensorHandlePtr* handle) { ImmediateOpPtr varhandle_op(ctx->CreateOperation()); TF_RETURN_IF_ERROR(varhandle_op->Reset("VarHandleOp", raw_device_name)); TF_RETURN_IF_ERROR(varhandle_op->SetAttrType("dtype", dtype));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/iostream_test.cc
} TEST(OStreamTest, TestTensorSpec) { std::stringstream stream; TensorSpec tensor_spec; tensor_spec.shape = tensorflow::PartialTensorShape({2}); tensor_spec.dtype = tensorflow::DT_FLOAT; stream << tensor_spec; ASSERT_EQ(stream.str(), "TensorSpec(shape = [2], dtype = 1)"); } } // namespace impl } // namespace libtf
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 09:47:46 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_ops.cc
mutex_lock ml(*variable->mu()); OP_REQUIRES( context, !variable->is_initialized || variable->tensor()->dtype() == dtype_, errors::InvalidArgument( "Trying to assign variable with wrong dtype. Expected ", DataTypeString(variable->tensor()->dtype()), " got ", DataTypeString(dtype_))); variable->is_initialized = true; *variable->tensor() = value; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/jit/shape_inference.cc
DataType dtype = n->output_type(0); AddNodeAttr("dtype", dtype, &const_def); TensorProto value; value.set_dtype(dtype); value.mutable_tensor_shape()->add_dim()->set_size( shape_proto.dim_size()); for (const auto& dim : shape_proto.dim()) { if (dtype == DT_INT32) { value.add_int_val(dim.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_cluster_signature.cc
// Functor that compares the arg values of two different signatures. Returns // true when the args are not equal. struct SignatureNotEqual { bool operator()(const Tensor& arg, const Tensor& other) { return arg.dtype() != other.dtype() || arg.shape() != other.shape() || arg.tensor_data() != other.tensor_data(); } bool operator()(const TensorTypeAndShape& arg, const TensorTypeAndShape& other) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
// Copy XLA results to the OpOutputList. int output_num = 0; for (int i = 0, end = ctx->num_outputs(); i < end; ++i) { const DataType& type = compilation_result.outputs[i].type; VLOG(2) << "Populating output for retval " << i << " type " << DataTypeString(type); if (type == DT_VARIANT) { return absl::UnimplementedError( "Support for TensorList crossing the XLA/TF boundary "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0) -
tensorflow/compiler/jit/tests/device_compiler_test_helper.cc
*graph.add_node() = MakeNode("a", "Placeholder", {}, {{"dtype", DT_FLOAT}, {"shape", input_shape}}); *graph.add_node() = MakeNode("b", "Placeholder", {}, {{"dtype", DT_FLOAT}, {"shape", input_shape}}); *graph.add_node() = MakeNode("c", "Placeholder", {}, {{"dtype", DT_FLOAT}, {"shape", input_shape}});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 08:24:16 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc
} Status DemangleTensor(absl::string_view str, TensorProto* proto) { return ParseTextProto(str, kTensorPrefix, proto); } string MangleDataType(const DataType& dtype) { return absl::StrCat(kDataTypePrefix, DataType_Name(dtype)); } Status DemangleDataType(absl::string_view str, DataType* proto) { absl::string_view pbtxt; TF_RETURN_IF_ERROR(ConsumePrefix(str, kDataTypePrefix, &pbtxt));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/test_utils.cc
switch (dtype) { #define CASE(type) \ case DataTypeToEnum<type>::value: { \ type* typed_a = static_cast<type*>(a); \ type* typed_b = static_cast<type*>(b); \ for (int64_t i = 0; i < num_elements; ++i) { \ if (DataTypeIsFloating(dtype)) { \ EXPECT_FLOAT_EQ(static_cast<float>(typed_a[i]), \
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 20:13:32 UTC 2023 - 5.8K bytes - Viewed (0)