This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
def _is_list_like_excluding_str(x): | |
if isinstance(x, str): | |
return False | |
try: | |
iter(x) | |
except TypeError: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo -n "." | |
sleep 1 | |
echo -n "." | |
sleep 1 | |
echo "." | |
sleep 1 |