Lines Matching defs:tid

67   // Map from [tid, lvl] to a list of dependent [LoopId, coeffecient] for
73 // expression on the input [tid, lvl].
227 SmallVector<Value> getValPosits(TensorId tid) const {
230 return {spIterVals[tid].back()};
233 SmallVector<Value> batchCrds = iters[tid].back().back()->getBatchCrds();
234 Value lastLvlPos = iters[tid].back().back()->getCurPosition().front();
238 Value getCoord(TensorId tid, Level lvl) const {
239 return getCurIterator(tid, lvl).getCrd();
285 /// Generates instructions to compute the coordinate of tensors[tid][lvl]
289 Value genSparseCrd(OpBuilder &builder, Location loc, TensorId tid,
292 bool isSynTensor(TensorId tid) const { return tid == getSynTensorId(); }
294 bool isOutputTensor(TensorId tid) const {
295 return hasOutput && tid == getOutTensorId();
298 bool isSparseOutput(TensorId tid) const {
299 return isOutputTensor(tid) && isSparseOut;
302 bool isValidLevel(TensorId tid, Level lvl) const {
303 return tid < lvls.size() && lvl < lvls[tid].size();
309 TensorId tid, Level lvl);
370 /// Get the reduced number of contraints on tensor[tid][lvl].
371 unsigned redDepOnLevel(TensorId tid, Level lvl) const {
372 return levelReducedDep[tid][lvl];
375 SparseIterator &getCurIterator(TensorId tid, Level lvl) const {
376 if (dependentLvlMap[tid][lvl].empty())
377 return *iters[tid][lvl].back();
379 assert(redDepOnLevel(tid, lvl) >= 1);
380 return *iters[tid][lvl][redDepOnLevel(tid, lvl) - 1];
384 makeLevelIterator(OpBuilder &builder, Location loc, TensorId tid, Level l);
407 // Map from [tid, level] to a list of dependent [tidlevel, coefficient].
428 // sequence. and a list of tid level that the loop sequence traverse.