- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 204 for dim2 (0.07 sec)
-
src/math/dim.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math // Dim returns the maximum of x-y or 0. // // Special cases are: // // Dim(+Inf, +Inf) = NaN // Dim(-Inf, -Inf) = NaN // Dim(x, NaN) = Dim(NaN, x) = NaN func Dim(x, y float64) float64 { // The special cases result in NaN after the subtraction: // +Inf - +Inf = NaN // -Inf - -Inf = NaN
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 15 19:45:12 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/c/kernels/bitcast_op.cc
} } if (TF_GetCode(status) == TF_OK) { auto* dims = new int64_t[dim_count + 1]; int new_dim_count = dim_count; for (int dim = 0; dim < dim_count; ++dim) { dims[dim] = TF_Dim(tensor, dim); } if (k->out_size < k->in_size) { dims[new_dim_count++] = static_cast<int64_t>(k->in_size / k->out_size); } else if (k->out_size > k->in_size) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 31 03:28:11 UTC 2021 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type_test.cc
namespace tensorflow { namespace { std::string ConvertToMlirString(const std::vector<int64_t>& dims, bool unknown_rank, DataType dtype) { TensorShapeProto shape; shape.set_unknown_rank(unknown_rank); for (int64_t dim : dims) { shape.add_dim()->set_size(dim); } mlir::MLIRContext context; mlir::Builder b(&context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/array_ops.cc
// ``` // // This operation requires that: // // `-1-input.dims() <= dim <= input.dims()` // // This operation is related to `squeeze()`, which removes dimensions of // size 1. Status ExpandDims(AbstractContext* ctx, AbstractTensorHandle* const input, AbstractTensorHandle* const dim, AbstractTensorHandle** output, const char* name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/c/tf_tensor.h
// // May return NULL (and invoke the deallocator) if the provided data buffer // (data, len) is inconsistent with a tensor of the given TF_DataType // and the shape specified by (dima, num_dims). TF_CAPI_EXPORT extern TF_Tensor* TF_NewTensor( TF_DataType, const int64_t* dims, int num_dims, void* data, size_t len, void (*deallocator)(void* data, size_t len, void* arg), void* deallocator_arg);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 06 16:40:30 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
return shaped_type.hasStaticShape(); } bool HasStaticShapeAtDims(Value value, const ArrayRef<int> dims) { auto shaped_type = mlir::dyn_cast<ShapedType>(value.getType()); if (!shaped_type || !shaped_type.hasRank()) return false; for (auto dim : dims) { if (shaped_type.isDynamicDim(dim)) return false; } return true; } Type CloneTypeWithNewElementType(Type old_type, Type element_type) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc
// Collect non-unit dims and corresponding dim in the input shape. SmallVector<int64_t, 4> input_carryover_dims; SmallVector<int64_t, 4> non_unit_dims; for (int i = 0; i < input_shape_extended.size(); i++) { int64_t dim = broadcast_shape[i]; if (dim != 1) { non_unit_dims.push_back(dim); input_carryover_dims.push_back(input_shape_extended[i]); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/constant_loading_test.cc
EXPECT_EQ(revived_tensor->Type(), expected.dtype()); EXPECT_EQ(revived_tensor->NumElements(), expected.NumElements()); EXPECT_EQ(revived_tensor->NumDims(), expected.dims()); for (int i = 0; i < expected.dims(); ++i) { EXPECT_EQ(revived_tensor->Dim(i), expected.dim_size(i)); } testing::CheckBufferDataIsEqual(expected.dtype(), expected.NumElements(), revived_tensor->Data(), expected.data());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc
shape->reserve(input_shape.dims()); for (const auto& d : input_shape) { shape->push_back(d.size == kTFDynamicSize ? ShapedType::kDynamic : d.size); } } Status ConvertToMlirShape(const TensorShapeProto& input_shape, llvm::SmallVectorImpl<int64_t>* shape) { shape->reserve(input_shape.dim_size()); auto& dims = input_shape.dim(); for (auto& d : dims) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 7.5K bytes - Viewed (0) -
pkg/util/removeall/removeall_test.go
"dir/", "dir/file", "dir2/", "file2", }, false, }, { "mount", []string{ "dir/", "dir/file", "dir2/", "file2", "mount/", "mount/file3", }, true, }, { "innermount", []string{ "dir/", "dir/file", "dir/dir2/", "dir/dir2/file2", "dir/dir2/mount/", "dir/dir2/mount/file3", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 20:35:13 UTC 2024 - 5.2K bytes - Viewed (0)