Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DstT (0.03 sec)

  1. tensorflow/cc/ops/const_op.h

      auto orig_const_output = Const(scope, val);
      if (!scope.ok()) return Output();
    
      typedef typename Input::Initializer::RealType<T>::type DstT;
    
      if (val.tensor.dtype() == DataTypeToEnum<DstT>::v()) {
        return orig_const_output;
      }
      if (val.tensor.NumElements() == 0) {
        Tensor t(DataTypeToEnum<DstT>::v(), val.tensor.shape());
        return Const(scope, Input::Initializer(t));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 17 09:17:01 UTC 2020
    - 2.8K bytes
    - Viewed (0)
Back to top