Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _value_to_tensor (0.1 sec)

  1. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

          self._emit_with_loc('\n{} = arith.index_cast {} : i64 to index'.format(
              casted, value))
          return casted, TFRTypes.INDEX
        else:
          return value, ty
    
      def _value_to_tensor(self, value, ty, node):
        value, ty = self._index_to_I64(value, ty)
        cst_tensor = self._ssa_name('cst')
        self.emit('\n{} = "tfr.constant_tensor"({})'.format(cst_tensor, value))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top