- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 248 for getRand (0.22 sec)
-
src/testing/quick/quick.go
// If nil, the top-level Value function is used to generate them. Values func([]reflect.Value, *rand.Rand) } var defaultConfig Config // getRand returns the *rand.Rand to use for a given Config. func (c *Config) getRand() *rand.Rand { if c.Rand == nil { return rand.New(rand.NewSource(time.Now().UnixNano())) } return c.Rand }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
data_rank = then_tensor.getRank(); if (then_tensor.getRank() > 0) data_first_dim = then_tensor.getShape().front(); if (else_tensor.getRank() > 0) data_first_dim = std::max(else_tensor.getShape().front(), data_first_dim); } else if (then_has_rank) { data_rank = then_tensor.getRank(); if (then_tensor.getRank() > 0) data_first_dim = then_tensor.getShape().front();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
if (!output_ty) return success(); int64_t expected_output_rank = std::max(x_ty.getRank(), y_ty.getRank()); if (output_ty.getRank() != expected_output_rank) { return op.emitOpError() << "found invalid output rank, expected " << expected_output_rank << " but got " << output_ty.getRank(); } // Check output batch dim with potential broadcasting.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
auto reshape_input_ty = mlir::dyn_cast<ShapedType>(reshape_input.getType()); if (!reshape_input_ty.hasStaticShape() || input_ty.getRank() == 0 || reshape_input_ty.getRank() == 0 || input_ty.getDimSize(input_ty.getRank() - 1) != reshape_input_ty.getDimSize(reshape_input_ty.getRank() - 1)) { return failure(); } // Connect the input to the one of reshape.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
// Converts the condition for an IfOp/WhileOp to a boolean value. Value ConvertConditionToBoolean(Operation* op, Value cond) { if (auto ranked_type = mlir::dyn_cast<RankedTensorType>(cond.getType())) if (ranked_type.getRank() == 0 && ranked_type.getElementType().isSignlessInteger(1)) return cond; OpBuilder builder(op); Value to_bool = builder.create<TF::ToBoolOp>(op->getLoc(), cond);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
t.Fatalf("expected mytest, got %s", obj.GetName()) } if obj.GetAPIVersion() != apiVersion { t.Fatalf("expected %s, got %s", apiVersion, obj.GetAPIVersion()) } if obj.GetKind() != kind { t.Fatalf("expected %s, got %s", kind, obj.GetKind()) } if v, ok, err := unstructured.NestedFloat64(obj.Object, "values", "numVal"); v != 1 || !ok || err != nil { t.Fatal(v, ok, err, string(result)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/JavadocUtils.java
String callableNameForDocComment = interceptedCallable.getKind() == CallableKindInfo.AFTER_CONSTRUCTOR ? className.simpleName() : interceptedCallable.getCallableName(); List<ParameterInfo> params = request.getInterceptedCallable().getParameters(); List<ParameterInfo> methodParameters = params.stream().filter(parameter -> parameter.getKind().isSourceParameter()).collect(Collectors.toList());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 02 15:44:14 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_internal.h
: AbstractTensorHandle(kind) {} public: // For LLVM style RTTI. static bool classof(const AbstractTensorHandle* ptr) { return ptr->getKind() == kGraph || ptr->getKind() == kMlir; } }; // An abstract operation describes an operation by its type, name, and // attributes. It can be "executed" by the context with some input tensors.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 13 22:20:40 UTC 2020 - 5.2K bytes - Viewed (0) -
tests/fuzz/pilot_security_fuzzer.go
func FuzzHeaderMatcher(data []byte) int { k, v, err := getKandV(data) if err != nil { return 0 } _ = matcher.HeaderMatcher(k, v) return 1 } func FuzzHostMatcherWithRegex(data []byte) int { k, v, err := getKandV(data) if err != nil { return 0 } _ = matcher.HostMatcherWithRegex(k, v) return 1 } func FuzzHostMatcher(data []byte) int { k, v, err := getKandV(data) if err != nil { return 0 }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 20 22:15:12 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java
} } private static boolean hasGroovyPropertyRequests(List<CallInterceptionRequest> requests) { return requests.stream().anyMatch(it -> it.getInterceptedCallable().getKind() == GROOVY_PROPERTY_GETTER || it.getInterceptedCallable().getKind() == GROOVY_PROPERTY_SETTER); } @SuppressWarnings("ReturnValueIgnored") private static CodeBlock interceptorClassJavadoc(Collection<CallInterceptionRequest> requests) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 16.4K bytes - Viewed (0)