Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for int8_input (0.44 sec)

  1. tensorflow/c/kernels/bitcast_op_test.cc

      }
    }
    
    TEST(BitcastOpTest, TestUpcast) {
      Tensor int8_input(DT_UINT8, {8});
      for (int i = 0; i < 8; i++) {
        int8_input.vec<uint8>()(i) = static_cast<uint8>(1);
      }
      TestBitcastOp(&int8_input, DT_UINT64, TensorShape(), error::OK);
    }
    
    TEST(BitcastOpTest, TestDowncast) {
      Tensor int64_input(static_cast<uint64>(1));
      TestBitcastOp(&int64_input, DT_UINT8, TensorShape({8}), error::OK);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top