- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for value_or (0.16 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
converted_attrs.push_back(attr); } else if (attr.getName() == op.getPaddingAttrName()) { auto value_or = ConvertPaddingAttr(op, dnums, rewriter); if (failed(value_or)) { return failure(); } attr.setValue(*value_or); converted_attrs.push_back(attr); } else if (attr.getName() == op.getWindowStridesAttrName() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_tfl_passes.cc
quant_specs.default_ranges.second.has_value()) { pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateDefaultQuantParamsPass( quant_specs.default_ranges.first.value_or(0.0), quant_specs.default_ranges.second.value_or(0.0), quant_specs.IsSignedInferenceType())); } pass_manager.addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateQuantizePass(quant_specs));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 25.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
auto op_name = op->getName(); auto action = target.getOpAction(op_name); if (!action.has_value()) { return "Unknown"; } switch (action.value_or(ConversionTarget::LegalizationAction::Legal)) { case ConversionTarget::LegalizationAction::Legal: return "Legal"; case ConversionTarget::LegalizationAction::Dynamic: return "Dynamic";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
: nullptr; se::Stream* const dst_device_to_device_stream = should_use_substream ? device_to_device_master_stream->GetOrCreateSubStream().value_or( nullptr) : dst_xla_context->GetDeviceToDeviceStream(); TF_RET_CHECK(dst_device_to_device_stream != nullptr); auto return_substream = gtl::MakeCleanup(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
std::make_unique<xla::PjRtStreamExecutorBuffer>( device_shape, std::move(device_buffer), pjrt_client, pjrt_device, pjrt_device->default_memory_space().value_or(nullptr)); owned_args->push_back(std::move(pjrt_buffer)); args->push_back(owned_args->back().get()); } } else { if (av_tensor->GetBuffer() == nullptr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java
@GwtIncompatible public void testRoundToDouble_smallPositive() { new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test(); } @J2ktIncompatible @GwtIncompatible public void testRoundToDouble_maxPreciselyRepresentable() { new RoundToDoubleTester(BigInteger.valueOf(1L << 53)) .setExpectation(Math.pow(2, 53), values()) .test(); } @J2ktIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 17:58:33 UTC 2024 - 27.8K bytes - Viewed (0) -
src/database/sql/convert.go
if dpv.Kind() != reflect.Pointer { return errors.New("destination not a pointer") } if dpv.IsNil() { return errNilPtr } if !sv.IsValid() { sv = reflect.ValueOf(src) } dv := reflect.Indirect(dpv) if sv.IsValid() && sv.Type().AssignableTo(dv.Type()) { switch b := src.(type) { case []byte: dv.Set(reflect.ValueOf(bytes.Clone(b))) default: dv.Set(sv) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 16.2K bytes - Viewed (0) -
schema/schema.go
return nil, fmt.Errorf("%w: %+v", ErrUnsupportedDataType, dest) } value := reflect.ValueOf(dest) if value.Kind() == reflect.Ptr && value.IsNil() { value = reflect.New(value.Type().Elem()) } modelType := reflect.Indirect(value).Type() if modelType.Kind() == reflect.Interface { modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type() }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 13.7K bytes - Viewed (0) -
association.go
if association.Relationship == nil { association.Error = fmt.Errorf("%w: %s", ErrUnsupportedRelation, column) } db.Statement.ReflectValue = reflect.ValueOf(db.Statement.Model) for db.Statement.ReflectValue.Kind() == reflect.Ptr { db.Statement.ReflectValue = db.Statement.ReflectValue.Elem() } } else { association.Error = err } return association }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 21.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InetAddressesTest.java
checkBigIntegerConversion("0.0.0.1", BigInteger.ONE); checkBigIntegerConversion("127.255.255.255", BigInteger.valueOf(Integer.MAX_VALUE)); checkBigIntegerConversion( "255.255.255.254", BigInteger.valueOf(Integer.MAX_VALUE).multiply(BigInteger.valueOf(2))); checkBigIntegerConversion( "255.255.255.255", BigInteger.ONE.shiftLeft(32).subtract(BigInteger.ONE)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0)