- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 54 for Dtype (0.08 sec)
-
tensorflow/compiler/jit/xla_tensor.cc
} else { return se::DeviceMemoryBase(const_cast<char*>(tensor.tensor_data().data()), tensor.tensor_data().size()); } } Status XlaTensor::AllocateShapedBuffer(DataType dtype, const xla::Shape& on_device_shape, xla::LocalClient* client, int device_ordinal) { xla::Shape on_host_shape =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/c/kernels/histogram_summary_op.cc
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, /*len=*/sizeof(tensorflow::tstring), status.get())); if (TF_GetCode(status.get()) != TF_OK) {
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/jit/xla_kernel_creator_test.cc
"XTimesY", // Args {"x: float", "y: resource"}, // Return values {"z: float"}, // Attr def {}, // Nodes { {{"y0"}, "ReadVariableOp", {"y"}, {{"dtype", DT_FLOAT}}}, {{"z"}, "Mul", {"x", "y0"}, {{"T", DT_FLOAT}}}, }); } class XlaKernelCreatorTest : public ::testing::Test { protected: void Init(const std::vector<FunctionDef>& flib) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 01:39:55 UTC 2023 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc
auto build_result = BuildHloFromGraph(*graph, /*use_output_shapes=*/true); ASSERT_FALSE(build_result.ok()); EXPECT_THAT(build_result.message(), HasSubstr("op operand type 'tensor<2x3x4x5xi32>' and result type " "'tensor<1xi32>' are cast incompatible")); } } // namespace
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/transforms/lift_variables.cc
// If the arg type already matches the global_tensor type, we don't need // to do anything. if (!underlying_type.empty() && underlying_type[0] == global_tensor.getType()) { assert(underlying_type.size() == 1); continue; } // Otherwise, set this argument's type to the global_tensor's type. auto new_arg_type = mlir::RankedTensorType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
for (auto var_and_tensor : llvm::zip(var_ops, resource_tensors_or.value())) { auto& var_op = std::get<0>(var_and_tensor); auto& resource_tensor = std::get<1>(var_and_tensor); if (resource_tensor.dtype() != tensorflow::DT_RESOURCE) { InitializeVariable(var_op, &resource_tensor, session_init_func, builder); continue; } auto handle = resource_tensor.scalar<tensorflow::ResourceHandle>()();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/jit/variable_info_util.cc
} return absl::OkStatus(); } std::vector<int> GetResourceVariableIndicesFromContext(OpKernelContext* ctx) { std::vector<int> out; for (int64 i = 0; i < ctx->num_inputs(); i++) { if (ctx->input(i).dtype() == DT_RESOURCE) { out.push_back(i); } } return out; } Status CreateVariableInfoLookup( absl::Span<VariableInfo const> variable_args,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/cc/saved_model/bundle_v2.cc
"SavedModel checkpoint does not contain object graph."); if (object_graph_tensor.dtype() != DT_STRING || object_graph_tensor.dims() != 0 || object_graph_tensor.NumElements() != 1) { return absl::Status( absl::StatusCode::kFailedPrecondition, "SavedModel checkpoint object graph was not the correct type."); } const tstring* object_graph_string = reinterpret_cast<const tstring*>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 18:28:37 UTC 2023 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/constant_utils.cc
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/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)