Skip to content

Add logical AND/OR/NOT/XOR operations #104

@fmassa

Description

@fmassa

Not super important, but might be useful to have those logical operators in the core.

As a workaround implementation, they can be simulated with current functions. For example

-- t1 and t2 are ByteTensors with 0 or 1 only
function tensor_and(t1, t2)
  return (t1 + t2):eq(2)
end

Metadata

Metadata

Assignees

Labels

todoNot as important as medium or high priority tasks, but we will work on these.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions