Skip to content

Conversation

@copybara-service
Copy link

Share PrimitiveTypeToNbDLDataType with xla.

PrimitiveTypeToNbDLDataType is used in LiteralToNdarray in xla_compiler (jaxlib) which has python bindings for xla types. Create xla_literal which only contains bindings for xla::Literal.

  • Moving dlpack_support out of jaxlib to third_party/tensorflow/compiler/xla/python
  • Branched dlpack in jaxlib to third_party/tensorflow/compiler/xla/python so that the new xla dlpack target does not depend on pyclient.

`PrimitiveTypeToNbDLDataType` is used in `LiteralToNdarray` in `xla_compiler` (jaxlib) which has python bindings for xla types. Create `xla_literal` which only contains bindings for `xla::Literal`.
- Moving `dlpack_support` out of jaxlib to third_party/tensorflow/compiler/xla/python
- Branched `dlpack` in jaxlib to third_party/tensorflow/compiler/xla/python so that the new xla dlpack target does not depend on pyclient.

PiperOrigin-RevId: 815912796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant