MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CopyBit

Function CopyBit

tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc:2603–2609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2601// Copy the `src_index` bit of `src` to `dst_index` bit of `dst`.
2602template <class T>
2603constexpr void CopyBit(const T &src, unsigned src_index, T &dst,
2604 unsigned dst_index) {
2605 if (IsSet(src, src_index))
2606 Set(dst, dst_index);
2607 else
2608 Unset(dst, dst_index);
2609}
2610
2611// The sparse spec of strided slice does not correspond to the number of
2612// dimensions. For example, sparse spec for foo[..., 3:10] for foo of shape (2,

Callers 1

BuildDenseSliceSpecFunction · 0.85

Calls 3

UnsetFunction · 0.85
IsSetFunction · 0.70
SetFunction · 0.70

Tested by

no test coverage detected