Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 29, 2022
1 parent b219e8d commit a249646
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
10 changes: 5 additions & 5 deletions python/taichi/lang/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,9 @@ def get_compute_stream_device_time_elapsed_us() -> float:

__all__ = [
'i', 'ij', 'ijk', 'ijkl', 'ijl', 'ik', 'ikl', 'il', 'j', 'jk', 'jkl', 'jl',
'k', 'kl', 'l', 'x86_64', 'x64', 'dx11', 'dx12', 'wasm', 'arm64', 'cc', 'cpu',
'cuda', 'gpu', 'metal', 'opengl', 'vulkan', 'extension', 'loop_config',
'global_thread_idx', 'assume_in_range', 'block_local', 'cache_read_only',
'init', 'mesh_local', 'no_activate', 'reset', 'mesh_patch_idx',
'get_compute_stream_device_time_elapsed_us'
'k', 'kl', 'l', 'x86_64', 'x64', 'dx11', 'dx12', 'wasm', 'arm64', 'cc',
'cpu', 'cuda', 'gpu', 'metal', 'opengl', 'vulkan', 'extension',
'loop_config', 'global_thread_idx', 'assume_in_range', 'block_local',
'cache_read_only', 'init', 'mesh_local', 'no_activate', 'reset',
'mesh_patch_idx', 'get_compute_stream_device_time_elapsed_us'
]
33 changes: 17 additions & 16 deletions tests/python/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,23 @@ def _get_expected_matrix_apis():
'atomic_sub', 'atomic_xor', 'axes', 'bit_cast', 'bit_shr', 'block_local',
'cache_read_only', 'cast', 'cc', 'ceil', 'cos', 'cpu', 'cuda',
'data_oriented', 'dataclass', 'deactivate', 'deactivate_all_snodes',
'dx11', 'dx12', 'eig', 'exp', 'experimental', 'extension', 'f16', 'f32', 'f64',
'field', 'float16', 'float32', 'float64', 'floor', 'func', 'get_addr',
'get_compute_stream_device_time_elapsed_us', 'global_thread_idx', 'gpu',
'graph', 'grouped', 'hex_to_rgb', 'i', 'i16', 'i32', 'i64', 'i8', 'ij',
'ijk', 'ijkl', 'ijl', 'ik', 'ikl', 'il', 'init', 'int16', 'int32', 'int64',
'int8', 'is_active', 'is_logging_effective', 'j', 'jk', 'jkl', 'jl', 'k',
'kernel', 'kl', 'l', 'lang', 'length', 'linalg', 'log', 'loop_config',
'math', 'max', 'mesh_local', 'mesh_patch_idx', 'metal', 'min', 'ndarray',
'ndrange', 'no_activate', 'one', 'opengl', 'polar_decompose', 'pow',
'profiler', 'randn', 'random', 'raw_div', 'raw_mod', 'ref',
'rescale_index', 'reset', 'rgb_to_hex', 'root', 'round', 'rsqrt', 'select',
'set_logging_level', 'simt', 'sin', 'solve', 'sparse_matrix_builder',
'sqrt', 'static', 'static_assert', 'static_print', 'stop_grad', 'svd',
'swizzle_generator', 'sym_eig', 'sync', 'tan', 'tanh', 'template', 'tools',
'types', 'u16', 'u32', 'u64', 'u8', 'ui', 'uint16', 'uint32', 'uint64',
'uint8', 'vulkan', 'wasm', 'x64', 'x86_64', 'zero'
'dx11', 'dx12', 'eig', 'exp', 'experimental', 'extension', 'f16', 'f32',
'f64', 'field', 'float16', 'float32', 'float64', 'floor', 'func',
'get_addr', 'get_compute_stream_device_time_elapsed_us',
'global_thread_idx', 'gpu', 'graph', 'grouped', 'hex_to_rgb', 'i', 'i16',
'i32', 'i64', 'i8', 'ij', 'ijk', 'ijkl', 'ijl', 'ik', 'ikl', 'il', 'init',
'int16', 'int32', 'int64', 'int8', 'is_active', 'is_logging_effective',
'j', 'jk', 'jkl', 'jl', 'k', 'kernel', 'kl', 'l', 'lang', 'length',
'linalg', 'log', 'loop_config', 'math', 'max', 'mesh_local',
'mesh_patch_idx', 'metal', 'min', 'ndarray', 'ndrange', 'no_activate',
'one', 'opengl', 'polar_decompose', 'pow', 'profiler', 'randn', 'random',
'raw_div', 'raw_mod', 'ref', 'rescale_index', 'reset', 'rgb_to_hex',
'root', 'round', 'rsqrt', 'select', 'set_logging_level', 'simt', 'sin',
'solve', 'sparse_matrix_builder', 'sqrt', 'static', 'static_assert',
'static_print', 'stop_grad', 'svd', 'swizzle_generator', 'sym_eig', 'sync',
'tan', 'tanh', 'template', 'tools', 'types', 'u16', 'u32', 'u64', 'u8',
'ui', 'uint16', 'uint32', 'uint64', 'uint8', 'vulkan', 'wasm', 'x64',
'x86_64', 'zero'
]
user_api[ti.ad] = [
'FwdMode', 'Tape', 'clear_all_gradients', 'grad_for', 'grad_replaced',
Expand Down

0 comments on commit a249646

Please sign in to comment.