- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 119 for getRand (0.18 sec)
-
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc
if (!mlir::isa<FloatType>(layerStatsType.getElementType())) { return emitOpError("layerStats must have a floating point element type"); } if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) { return emitOpError("layerStats must have shape [2]"); } } // Verify axisStats (optional) attribute. if (getAxisStats()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
security/pkg/util/jwtutil.go
case float64: expiration = time.Unix(int64(exp), 0) case json.Number: v, _ := exp.Int64() expiration = time.Unix(v, 0) } return expiration, nil } // GetAud returns the claim `aud` from the token. Returns nil if not found. func GetAud(token string) ([]string, error) { claims, err := parseJwtClaims(token) if err != nil { return nil, err } rawAud := claims["aud"] if rawAud == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
// If the original type doesn't have a rank, then refine as the updated type // has a rank. if (!original.hasRank()) return true; // Both types must have the same rank. if (original.getRank() != updated.getRank()) return false; // Refine if the updated type is bounded. return IsBounded(updated); } // Propagates more refined type by cloning op using the new operands. This
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
} // Currently we only support compressing weights of ops: // Conv, DepthwiseConv, TransposeConv, whose filter has rank 4, and // FullyConnected, whose filter has rank 2. if (type.getRank() != 2 && type.getRank() != 4) { result.can_compress = false; return result; } float random_sparsity = CalculateRandomSparsity(attr, type); if (random_sparsity < kMinSparsityLevel) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
security/pkg/util/jwtutil_test.go
}, "two audiences list": { jwt: twoAudList, aud: []string{"abc", "xyz"}, }, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { if got, _ := GetAud(tc.jwt); !reflect.DeepEqual(tc.aud, got) { t.Errorf("want audience %v but got %v", tc.aud, got) } }) } } func TestBase64UrlPartDecoding(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0) -
pilot/pkg/model/policyattachment.go
targetRef.GetKind() == gvk.KubernetesGateway.Kind && target.Name == gatewayName && (targetRef.GetNamespace() == "" || targetRef.GetNamespace() == p.Namespace) { return true } // Service attached if p.IsWaypoint && config.CanonicalGroup(targetRef.GetGroup()) == gvk.Service.CanonicalGroup() && targetRef.GetKind() == gvk.Service.Kind &&
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.h
inline Type TransposeLastTwoDims(Type type) { auto shaped_type = type.dyn_cast<ShapedType>(); if (!shaped_type.hasStaticShape() || shaped_type.getRank() < 2) { return nullptr; } int rank = shaped_type.getRank(); if (rank < 2) { return nullptr; } SmallVector<int64_t> new_shape(shaped_type.getShape().begin(), shaped_type.getShape().end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return lhs.hasRank() && rhs.hasRank() && lhs.getRank() == rhs.getRank(); } // Creates a compatible RankedTensorType where mismatched dimensions are // replaced with dynamic sizes. RankedTensorType GetCompatibleRankedTensorType(RankedTensorType lhs, RankedTensorType rhs) { assert(lhs.getRank() == rhs.getRank()); llvm::SmallVector<int64_t, 4> dims;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
// Output type is unranked if input type is not ranked. auto ranked_ty = mlir::dyn_cast<RankedTensorType>(input_ty); if (!ranked_ty) return UnrankedTensorType::get(element_ty); int64_t rank = ranked_ty.getRank(); DenseIntElementsAttr indices; if (!matchPattern(reduction_indices, m_Constant(&indices))) { // Output type is unranked if reduction indices are not constant and reduced // dimensions are not kept.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
// Compute mean int64_t input_last_dim = input_type.getRank() - 1; auto dims_type = RankedTensorType::get(/*shape=*/{input_last_dim}, rewriter.getIntegerType(32)); ::mlir::SmallVector<int32_t> reduce_dim_axes; for (int i = 0; i < input_type.getRank(); ++i) { if (i != feature_index) { reduce_dim_axes.push_back(i); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0)