- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 205 for dims1 (0.04 sec)
-
tensorflow/c/eager/c_api_unified_experimental_test.cc
*/ // Build an abstract input tensor. int64_t dims[] = {2, 2}; // Matrices will be 2 x 2 int num_dims = sizeof(dims) / sizeof(dims[0]); float vals[] = {0.0f, 0.0f, 0.0f, 0.0f}; TFE_Context* eager_ctx = TF_ExecutionContextGetTFEContext(ctx, status.get()); TFE_TensorHandle* t = TestMatrixTensorHandleWithInput(eager_ctx, vals, dims, num_dims);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 39.1K bytes - Viewed (0) -
build/OWNERS
options: # make root approval non-recursive no_parent_owners: true reviewers: - bentheelder - cblecker - cpanato # SIG Technical Lead / RelEng subproject owner / Release Manager - dims - jeremyrickard # SIG Technical Lead / RelEng subproject owner #- justaugustus # SIG Chair / RelEng subproject owner / Release Manager - approvals only - liggitt - palnabarun # Release Manager
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 11 16:43:38 UTC 2023 - 866 bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
std::vector<DimensionHandle> dims; const TF_ShapeAndType& input_shape = input_shapes->items[i]; if (input_shape.num_dims == InferenceContext::kUnknownRank) { c.SetInput(i, c.UnknownShape()); continue; } dims.reserve(input_shape.num_dims); for (int j = 0; j < input_shape.num_dims; ++j) { dims.push_back(c.MakeDim(input_shape.dims[j])); } c.SetInput(i, c.MakeShape(dims));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 29.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.cc
namespace mlir { namespace TF { // Verifies an reduction op's `input` and reduction `dims`. LogicalResult VerifyReductionInputAndDims(Value input, Value dims, Location loc) { auto dims_type = mlir::dyn_cast<RankedTensorType>(dims.getType()); if (!dims_type) return success(); if (dims_type.getRank() > 1)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3K bytes - Viewed (0) -
cmd/yamlfmt/OWNERS
# See the OWNERS docs at https://go.k8s.io/owners reviewers: - bentheelder - dims approvers: - dims labels: - sig/testing
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 17 16:59:26 UTC 2023 - 162 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc
// TODO(jpienaar): Move these functions to some debug utils. static std::string TfLiteTensorDimString(const TfLiteTensor& tensor) { auto begin = tensor.dims ? tensor.dims->data : nullptr; auto end = tensor.dims ? tensor.dims->data + tensor.dims->size : nullptr; return absl::StrJoin(begin, end, ", "); } template <typename T> static std::string TfLiteTypedTensorString(const TfLiteTensor& tensor) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc
absl::string_view node_shapes_str) { std::vector<int> dims; for (absl::string_view dim_str : absl::StrSplit(node_shapes_str, ',')) { // Treats empty input shape as scalar if (dim_str.empty()) continue; if (dim_str == "?") { dims.push_back(-1); continue; } int size; TF_RET_CHECK(absl::SimpleAtoi(dim_str, &size)); dims.push_back(size); } return dims; }
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/c/c_test_util.cc
} TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) { int64_t num_values = 1; for (int i = 0; i < num_dims; ++i) { num_values *= dims[i]; } TF_Tensor* t = TF_AllocateTensor(TF_INT8, dims, num_dims, sizeof(char) * num_values); memcpy(TF_TensorData(t), values, sizeof(char) * num_values); return t; } TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
if (num_dims < 0) { proto.set_unknown_rank(true); } else { for (int d = 0; d < num_dims; ++d) { proto.add_dim()->set_size(dims[d]); } } forward_op_.attrs.Set(attr_name, proto); return parent_op_->SetAttrShape(attr_name, dims, num_dims); } Status TapeOperation::SetAttrFunction(const char* attr_name, const AbstractOperation* value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 06:16:45 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
int num_dims = output_shapes->items[0].num_dims; int64_t* dims = output_shapes->items[0].dims; if (!expected_shape.has_value()) { EXPECT_EQ(num_dims, -1); EXPECT_EQ(dims, nullptr); return; } EXPECT_EQ(num_dims, expected_shape->size()); for (size_t i = 0; i < num_dims; ++i) { EXPECT_EQ(dims[i], (*expected_shape)[i]); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0)