SwiftTensorFlowSimulation:Swift TensorFlow模拟

时间:2024-06-06 18:03:36
【文件属性】:

文件名称:SwiftTensorFlowSimulation:Swift TensorFlow模拟

文件大小:5KB

文件格式:ZIP

更新时间:2024-06-06 18:03:36

Swift

Swift TensorFlow模拟 使用Swift NumPy等效类( )并在Swift中创建一个模拟的TensorFlow Graph来演示TensorFlow Graph的构建和延迟执行如何与如下代码一起工作: var tf = TensorFlow() let a = tf.constant(NDArray(shape: [3], elements: [5, 7, 10])) let b = tf.constant(NDArray(shape: [3], elements: [2, 3, 21])) let c = tf.constant(NDArray(shape: [3], elements: [3, 5, 7])) //var d = tf.multiply(a,b) //var e = tf.add(c,b) //var f


【文件预览】:
SwiftTensorFlowSimulation-master
----.gitignore(1KB)
----Package.swift(740B)
----README.md(664B)
----Sources()
--------SwiftTensorFlow()
----.swift-version(4B)
----Package.resolved(324B)

网友评论