Sha256: 7048dd61b357642c03dac2a246386857f442f949fd9f2ca0c60b5f46ce9ebb59
Contents?: true
Size: 170 Bytes
Versions: 3
Compression:
Stored size: 170 Bytes
Contents
module TensorStream module PyPorts def floor_div(a, b) if (a.is_a?(Float)) (a.to_i / b.to_i).to_f else a / b end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tensor_stream-1.0.9 | lib/tensor_stream/utils/py_ports.rb |
tensor_stream-1.0.8 | lib/tensor_stream/utils/py_ports.rb |
tensor_stream-1.0.7 | lib/tensor_stream/utils/py_ports.rb |