- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 169 for Dtype (0.04 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
return mlir::TF::ShapeAttr::get(type.getContext(), tensor_type.getShape()); } // If type is not a RankedTensor or UnrankedTensor, it must be a scalar. // Empty TensorShape indicates a scalar. return mlir::TF::ShapeAttr::get(type.getContext(), ArrayRef<int64_t>()); } absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto( const mlir::Type& type) { DataType dtype;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/debuginfo/v1_1.0_224_frozen.wrong_attr.stack.part.pbtxt
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 27 18:59:05 UTC 2023 - 16.4K bytes - Viewed (0) -
tensorflow/cc/tools/freeze_saved_model.cc
// Identity node that is forwarding the value of a frozen // VarhandleOp. We ensure that the dtype matches of the variable dtype. NodeDef* new_node = frozen_graph_def->add_node(); *new_node = node; (*new_node->mutable_attr())["T"] = name_to_node_map.at(*handle_name)->attr().at("dtype"); continue; } } // If the node isn't a variable, just copy the node as-is.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 11 08:05:36 UTC 2023 - 11.9K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
AllocatorAttributes attr; if (cc_input.dtype() == ::tensorflow::DT_VARIANT) { attr.set_on_host(true); } TF_RETURN_IF_ERROR(cc_ctx->allocate_temp(cc_input.dtype(), cc_input.shape(), cc_out, attr)); switch (cc_input.dtype()) { case ::tensorflow::DT_INVALID: { *cc_out = Tensor(::tensorflow::DT_INVALID);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc
absl::StrSplit(type, absl::ByAnyChar("()")); // If type has subtypes then parts[0] = type, parts[1] = subtypes, // parts[2] = "" if (parts.size() != 3 && parts.size() != 1) { return errors::InvalidArgument("Invalid type '", type, "'"); } else if (parts.size() == 3) { // First part is the type, second is the subtype ArrayInfo::SubTypeInfo subtype;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 10.4K 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/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/c/eager/parallel_device/parallel_device_lib.cc
} if (TFE_TensorHandleDataType(component.get()) != dtype) { TF_SetStatus(status, TF_INTERNAL, "Components of a ParallelTensor must all have " "the same dtype"); return nullptr; } } return std::unique_ptr<ParallelTensor>( new ParallelTensor(parallel_device, std::move(components), shape, dtype)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 07:47:20 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc
class ConvertTensorTest : public ::testing::Test { protected: template <typename T> void VerifyConversion(std::initializer_list<T> values, DataType dtype, mlir::Type expected_ty) { mlir::Builder b(expected_ty.getContext()); Tensor tensor(dtype, TensorShape({static_cast<int64_t>(values.size())})); tensor.flat<T>().setValues(values); auto value_or = ConvertTensor(tensor, &b);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
shape_determination_fns.layout_preference_fn( cpu_tensor->shape(), cpu_tensor->dtype(), std::nullopt); TF_ASSIGN_OR_RETURN(xla::Shape shape, shape_determination_fns.shape_representation_fn( cpu_tensor->shape(), cpu_tensor->dtype(), /*fast_mem=*/false, layout_preference)); const xla::Layout* device_layout = &(shape.layout());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0)