Suchergebnisse für Anfrage "int64"

3 die antwort

Go: konvertiere uint64 nach int64 ohne Informationsverlust

Das Problem mit dem folgenden Code: var x uint64 = 18446744073709551615 var y int64 = int64(x)ist dassy ist-1. Ist die einzige Möglichkeit, ohne Informationsverlust zwischen diesen beiden Zahlentypen zu konvertieren, um einen Codierer und einen ...

4 die antwort

Swift - Umwandeln von Int64 in AnyObject für NSMutableArray

Hi, ich habe ein NSMutableArray und versuche Folgendes: var ma = NSMutableArray() let number:Int64 = 8345834344 ma.addObject(number)// Error "Type Int64 does not conform to protocol AnyObject"Wie füge ich eine Int64-Variable zu NSMutableArray ...

8 die antwort

Wie konvertiere ich tf.int64 nach tf.float32?

Ich habe es versucht test_image = tf.convert_to_tensor(img, dtype=tf.float32) Dann erscheint folgender Fehler: ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int64: 'Tensor("test/ArgMax:0", ...

TOP-Veröffentlichungen

4 die antwort

Swift: Beliebiges Objekt in Int64 = nil @ umwande

Ich habe eine Frage. Ich habe mich gefragt, warum das passiert ist? var dict : [String : Any] = ["intValue": 1234, "stringValue" : "some text"] dict["intValue"] as? Int64 // = nil (why) dict["intValue"] as? Int // = 1234kann mir jemand sagen, ...

2 die antwort

Wie konvertiere ich einen int64 in einen int in Go?

In Go, was ist die beste Strategie zum Konvertieren vonint64 zuint? Ich habe Schwierigkeiten, die beiden zu vergleichen package main import ( "math" "strings" "strconv" ) type largestPrimeFactor struct { N int Result int } func main() { base := ...