- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 236 for getRand (0.13 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) -
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) -
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) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGenerator.java
CodeBlock result = interceptedCallable.getKind() == CallableKindInfo.STATIC_METHOD ? CodeBlock.of("opcode == $T.INVOKESTATIC", Opcodes.class) : interceptedCallable.getKind() == CallableKindInfo.INSTANCE_METHOD ? CodeBlock.of("(opcode == $1T.INVOKEVIRTUAL || opcode == $1T.INVOKEINTERFACE)", Opcodes.class) :
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 18:50:01 UTC 2024 - 27.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
for (auto idx : val1_indices) { if (idx < 0) idx = idx + val1_shape.getRank(); if (idx >= val1_shape.getRank() || val1_shape.isDynamicDim(idx)) { return false; } val1_result *= val1_shape.getDimSize(idx); } for (auto idx : val2_indices) { if (idx < 0) idx = idx + val2_shape.getRank(); if (idx >= val2_shape.getRank() || val2_shape.isDynamicDim(idx)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0)