Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/BladeDISC
/ functions
Functions
6,088 in github.com/alibaba/BladeDISC
⨍
Functions
6,088
◇
Types & classes
1,279
↳
Endpoints
6
↓ 12 callers
Method
_test_reduction
(self, reduce_func, dtype=None)
pytorch_blade/tests/disc/ops/test_reduction.py:20
↓ 12 callers
Function
bitonicMerge
tao_compiler/mlir/xla/ral/context/custom_library/bitonic_sort.cu.h:171
↓ 12 callers
Function
bitonicMergePair
tao_compiler/mlir/xla/ral/context/custom_library/bitonic_sort.cu.h:152
↓ 12 callers
Function
buildFuseIntoContainingOp
tao_compiler/mlir/disc/transforms/disc_transform_schedule.cc:121
↓ 12 callers
Function
buildGetProducerOfOperand
tao_compiler/mlir/disc/transforms/disc_transform_schedule.cc:154
↓ 12 callers
Method
calib
(self, model: nn.Module, act_ob_ctr: Optional[Callable[..., Observer]] = None, w_o
tools/torch_quant/torch_quant/quantizer.py:129
↓ 12 callers
Method
configure
tao_compiler/mlir/xla/ral/context/common_context_impl_acl.cc:195
↓ 12 callers
Method
getNumBits
Returns the num of bits of the element type of the dense attr.
tao_compiler/mlir/xla/ral/context/pdll_util.h:103
↓ 12 callers
Function
isFusible
Returns true if the op is supported by the downstreaming fusion codegen engine.
tao_compiler/mlir/disc/transforms/fusion_utils.cc:499
↓ 12 callers
Function
makeNewPlacementAwareFusionStrategy
tao_compiler/mlir/disc/transforms/fusion_utils.cc:1680
↓ 12 callers
Function
reportErrorIfAny
tao_compiler/mlir/xla/ral/test/raw_cuda_test.cc:49
↓ 12 callers
Function
reportErrorIfAny
tao_compiler/mlir/disc/tests/mlir_test.cc:168
↓ 12 callers
Method
run
tao_compiler/mlir/xla/ral/context/common_context_impl_acl.cc:288
↓ 12 callers
Method
setFusionType
Sets the fusion type to the the type provided.
tao_compiler/mlir/disc/transforms/fusion_utils.h:327
↓ 12 callers
Method
validate
tao_compiler/mlir/xla/ral/context/common_context_impl_acl.cc:248
↓ 11 callers
Method
IsDead
tao/tao_bridge/passes/functionalize_cond.cc:130
↓ 11 callers
Method
SetChannelAction
tao/tao_bridge/tf/subprocess.cc:112
↓ 11 callers
Method
_test_permute
(self, reshape_func, dtype=None, x=None)
pytorch_blade/tests/disc/ops/test_permutation.py:21
↓ 11 callers
Method
add_chunking_module
(self, module_type, chunk_func_name, trace_func, script_func)
examples/PyTorch/Inference/CUDA/AlphaFold/FoldAcc/foldacc/foldacc.py:70
↓ 11 callers
Method
apply
tao_compiler/mlir/disc/tools/disc-transform/TransformOps/TransformOpsExt.cc:179
↓ 11 callers
Function
build
(args)
tensorflow_blade/build.py:246
↓ 11 callers
Function
check_env_flag
(name, default=None)
pytorch_blade/torch_blade_build.py:21
↓ 11 callers
Method
check_output
(model, opt_model, shape)
pytorch_blade/tests/tensorrt/test_holder_serialize.py:65
↓ 11 callers
Function
createLoopAndSetInsPt
tao_compiler/mlir/disc/transforms/lhlo_elemental_utils.cc:1130
↓ 11 callers
Method
cycles_graph_node_id
The ID of the cluster as represented in `cycles_graph_`.
tao/tao_bridge/passes/tao_mark_for_compilation_pass.cc:183
↓ 11 callers
Method
dealloc
tao_compiler/mlir/xla/ral/context/base/base_context.cc:123
↓ 11 callers
Function
export
Given a PyTorch model, we first replace submodules (specified in allow_tracing) with a tracing torchscript. Then we export torchscript throug
pytorch_blade/torch_blade/exporter.py:142
↓ 11 callers
Method
find
(self, group: int)
pytorch_blade/torch_blade/clustering/support_fusion_algorithm.py:31
↓ 11 callers
Function
getDimValue
tao_compiler/mlir/disc/tools/disc-transform/LinalgExt/LinalgExtOps.cc:76
↓ 11 callers
Function
getFactory
tao_compiler/mlir/disc/transforms/lhlo_elemental_utils.cc:160
↓ 11 callers
Method
getFusionType
Returns the fusion kind of the fusion pattern.
tao_compiler/mlir/disc/transforms/fusion_utils.h:321
↓ 11 callers
Method
has_path
(self, src: int, dst: int)
pytorch_blade/torch_blade/algorithm/directed_graph.py:62
↓ 11 callers
Function
isCandidateShapeTensorType
Returns true if the type is possible to be a shape tensor type. Here shape tensor type is defined as follow: - rank-1 static-shaped tensor type - elem
tao_compiler/mlir/disc/transforms/disc_shape_optimization.cc:269
↓ 11 callers
Method
merge
Returns false if failed to merge.
tao_compiler/mlir/disc/transforms/fusion_utils.cc:1869
↓ 11 callers
Function
print_logger
(log_func, text)
examples/PyTorch/Inference/CUDA/AlphaFold/FoldAcc/foldacc/optimization/utils.py:17
↓ 11 callers
Method
to_type
TODO(xpz): not a good name
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/tensor.hpp:754
↓ 10 callers
Method
Contains
tao/tao_bridge/tf/ordered_set.h:73
↓ 10 callers
Method
DebugString
tao/tao_bridge/kernels/tao_compilation_cache.cc:1498
↓ 10 callers
Method
GetNameFor
tao/tao_bridge/tf/device_util.h:119
↓ 10 callers
Method
HasEdge
tao_compiler/mlir/disc/utils/cycle_detector.cc:89
↓ 10 callers
Method
InsertEdge
tao_compiler/mlir/disc/utils/cycle_detector.cc:108
↓ 10 callers
Method
SetCustomValue
tao/tao_bridge/kernels/tao_compilation_info_collector.h:161
↓ 10 callers
Method
UpdateShapeCompileStatus
tao/tao_bridge/kernels/tao_compilation_info_collector.cc:623
↓ 10 callers
Function
gcc_env
Change the PATH and LD_LIBRARY_PATH to given GCC environment, these env vars will be restored when it's done.
scripts/python/tao_common.py:118
↓ 10 callers
Method
generate_subgraph_from_segment
Split a GraphDef to a main GraphDef and several sub GraphDef according to segments. Parameters ---------- add_function_def :
tensorflow_blade/tf_blade/util/simple_graph.py:739
↓ 10 callers
Function
getConstantLike
tao_compiler/mlir/disc/transforms/mhlo_decomp_rewriters.cc:48
↓ 10 callers
Function
getDim
tao_compiler/mlir/disc/tools/disc-transform/LinalgExt/LinalgExtOps.cc:86
↓ 10 callers
Function
getShuffleElemType
tao_compiler/mlir/disc/transforms/lhlo_legalize_roots_to_loops.cc:884
↓ 10 callers
Method
has_path_dfs
(self, x: int, y: int)
pytorch_blade/torch_blade/algorithm/directed_graph.py:121
↓ 10 callers
Function
isWeightPrePackingEnabled
tao_compiler/mlir/xla/ral/context/common_context_impl_mkldnn.cc:135
↓ 10 callers
Function
lowerHelper
tao_compiler/mlir/disc/transforms/lhlo_legalize_roots_to_loops.cc:225
↓ 10 callers
Method
name
static */
tao_compiler/mlir/xla/ral/device/gpu/gpu_driver.cc:106
↓ 10 callers
Function
padding_feat
(feat:torch.Tensor, ps1:torch.Tensor, ps2:torch.Tensor, is_mask:bool=False)
examples/PyTorch/Inference/CUDA/AlphaFold/FoldAcc/foldacc/model/modules/utils.py:25
↓ 10 callers
Method
setDominantOp
Sets the dominant op to the op provided.
tao_compiler/mlir/disc/transforms/fusion_utils.h:318
↓ 10 callers
Method
transpose
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/tensor.hpp:937
↓ 10 callers
Method
updateIfNotEqual
return true if updated.
tao_compiler/mlir/disc/transforms/fusion_utils.cc:1897
↓ 9 callers
Function
ConvertDenseIntAttr
tao_compiler/mlir/disc/transforms/disc_pdl_utils.cc:62
↓ 9 callers
Function
GetAttrString
pytorch_blade/pytorch_blade/compiler/mlir/converters/mhlo_conversion.cpp:67
↓ 9 callers
Method
HasEdge
tao/tao_bridge/tf/graphcycles.cc:149
↓ 9 callers
Method
ResetCondId
tao/tao_bridge/passes/functionalize_cond.cc:199
↓ 9 callers
Function
_config
(cfg_name, cmd="build")
tensorflow_blade/build.py:134
↓ 9 callers
Function
add_to_tar
(tar, file, dir_in_tar="", name_in_tar="")
scripts/python/tao_build.py:650
↓ 9 callers
Method
asSEStream
tao_compiler/mlir/xla/ral/device/gpu/gpu_driver.cc:247
↓ 9 callers
Function
chunk_layer
Implements the "chunking" procedure described in section 1.11.8. Layer outputs and inputs are assumed to be simple "pytrees," consisting
examples/PyTorch/Inference/CUDA/AlphaFold/FoldAcc/foldacc/model/modules/utils.py:281
↓ 9 callers
Method
clear
(self)
pytorch_blade/torch_blade/algorithm/directed_graph.py:65
↓ 9 callers
Function
createAlignMemrefWithTile
tao_compiler/mlir/disc/transforms/codegen_utils.cc:651
↓ 9 callers
Function
end
pytorch_blade/pytorch_blade/ltc/include/torch/csrc/lazy/ts_backend/view_ops/select.h:42
↓ 9 callers
Method
getShape
Returns the shape of the denseElementsAttr
tao_compiler/mlir/xla/ral/context/pdll_util.h:97
↓ 9 callers
Method
has_op_kind
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/attributes.hpp:61
↓ 9 callers
Function
isElementWise
Returns true if the op is an elementwise lmhlo op. TODO(disc): use fusibility interface
tao_compiler/mlir/disc/transforms/fusion_utils.cc:443
↓ 9 callers
Function
load_model_info
(task: Optional[str] = None, id_or_path: Optional[str] = None, config: Optional[Pretrained
examples/PyTorch/Inference/hf_transformers/blade_adapter.py:81
↓ 9 callers
Method
ndims
Returns number of dimensions
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/tensor.hpp:593
↓ 9 callers
Method
reinit_if_possible
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/tensor.hpp:538
↓ 9 callers
Method
reorder_to
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/tensor.hpp:763
↓ 8 callers
Function
DeviceNameToDeviceType
tao/tao_bridge/tf/device_util.cc:92
↓ 8 callers
Function
DumpGraph
tao/tao_bridge/passes/tao_optimization_pass.cc:37
↓ 8 callers
Method
Erase
Removes `value` from the set. Assumes `value` is already present in the set.
tao/tao_bridge/tf/ordered_set.h:50
↓ 8 callers
Function
GetContextValueFromFunctionArguments
Suppose that the first argument of the function is the ctx value
tao_compiler/mlir/disc/transforms/disc_lower_to_library_call.cc:77
↓ 8 callers
Function
GetDefaultStreamHandle
Currently we only use a single stream. Re-visit this if necessary.
tao_compiler/mlir/disc/transforms/disc_lower_to_library_call.cc:89
↓ 8 callers
Function
GetInputsForNode
tao/tao_bridge/passes/tao_partially_decluster_pass_test.cc:127
↓ 8 callers
Function
IsOpWriteValue
tao_compiler/mlir/disc/disc_util.cc:53
↓ 8 callers
Method
MakeAndPredicate
tao/tao_bridge/tf/deadness_analysis.cc:375
↓ 8 callers
Method
SetCallTimestamp
tao/tao_bridge/kernels/tao_compilation_info_collector.cc:545
↓ 8 callers
Method
Size
tao_compiler/mlir/disc/utils/cycle_detector.h:82
↓ 8 callers
Method
TensorInfo
pytorch_blade/pytorch_blade/compiler/backends/backend_input_outputs.cpp:147
↓ 8 callers
Method
_calculate_model_output
( self, model, allow_tracing=None, model_inputs=None )
pytorch_blade/tests/tensorrt/test_optimize.py:71
↓ 8 callers
Method
_test_unary_ops
(self, unary_ops_func, test_data=None)
pytorch_blade/tests/disc/ops/test_unary_ops.py:19
↓ 8 callers
Function
applyACLThreadPoolConfigIfNotSet
tao_compiler/mlir/xla/ral/context/common_context_impl_mkldnn.cc:98
↓ 8 callers
Function
bitonicSort256_256
tao_compiler/mlir/xla/ral/context/custom_library/bitonic_sort.cu.h:345
↓ 8 callers
Function
buildCacheRead
tao_compiler/mlir/disc/transforms/disc_transform_schedule.cc:192
↓ 8 callers
Function
createDiscShapeOptimizationPass
tao_compiler/mlir/disc/transforms/disc_shape_optimization.cc:2044
↓ 8 callers
Function
create_ctx
(model: nn.Module)
tools/torch_quant/tests/models.py:21
↓ 8 callers
Function
extendShuffleElemType
tao_compiler/mlir/disc/transforms/lhlo_legalize_roots_to_loops.cc:1265
↓ 8 callers
Function
fillNHWC
tao_compiler/mlir/disc/transforms/conv_rewriter.cc:136
↓ 8 callers
Function
gatherTensorTypes
for each node in the schema with type Tensor, extract the T type returns c10::nullopt if any Tensor in the schema does not have a known shape ignores
pytorch_blade/pytorch_blade/compiler/jit/torch/shape_analysis.cpp:261
↓ 8 callers
Method
getDimSize
tao_compiler/mlir/disc/IR/disc_shape_ops.cc:313
↓ 8 callers
Method
getFunc
Returns the func op this analysis object runs on.
tao_compiler/mlir/disc/transforms/disc_shape_optimization.cc:682
↓ 8 callers
Function
getFusionName
Returns the name of the fusion op
tao_compiler/mlir/disc/transforms/fusion_utils.cc:247
↓ 8 callers
Function
getFusionType
tao_compiler/mlir/disc/transforms/fusion_utils.cc:234
↓ 8 callers
Function
get_compatible_dilates
tao_compiler/mlir/xla/ral/context/mkldnn/ideep/ideep/utils.hpp:86
← previous
next →
201–300 of 6,088, ranked by callers