Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,047 for OP (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc

    }
    
    bool ShouldMoveOutOfRegion(
        Operation *op, Region *region,
        const llvm::DenseSet<ResourceHandle> &read_only_vars) {
      return ResourceOpCanBeHoisted(op, region, read_only_vars) ||
             (isMemoryEffectFree(op) && isSpeculatable(op));
    }
    
    bool OnlyHasReadEffect(Operation *op) {
      auto interface = llvm::dyn_cast<MemoryEffectOpInterface>(op);
      if (!interface) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

          return failure();
        }
        element_type = getElementTypeOrSelf(op->getOperand(1).getType());
      }
      if (attr == "output_quantization") {
        if (op->getNumResults() < 1) {
          return failure();
        }
        element_type = getElementTypeOrSelf(op->getOpResult(0).getType());
      }
      if (element_type) {
        is_8_bit = mlir::isa<TF::Qint8Type>(element_type);
        return success();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils_test.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      for (auto& op : *block) {
        EvaluateCost(&op);
      }
    }
    
    void CostAnalysis::EvaluateCost(mlir::Operation* op) {
      if (auto cost_function =
              mlir::dyn_cast<tfrt::compiler::CostFunctionInterface>(op)) {
        cost_map_[op] = cost_function.cost();
        return;
      }
    
      if (!llvm::isa<mlir::TF::TensorFlowDialect>(op->getDialect())) {
        cost_map_[op] = max_arg_size_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc

    };
    
    void MarkCompilationOps(Operation* func) {
      func->walk([&](Operation* op) {
        if (llvm::isa<TF::_TPUCompileMlirOp>(op)) {
          op->setAttr("_is_compilation", UnitAttr::get(func->getContext()));
          op = op->getParentOp();
          while (op && op != func) {
            op->setAttr("_wraps_compilation", UnitAttr::get(func->getContext()));
            op = op->getParentOp();
          }
        }
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 00:26:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

      builder->setInsertionPoint(op);
      auto operands = llvm::to_vector<4>(op->getOperands());
      operands.push_back(operand);
      auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(),
                                         operands, attr.getAttrs());
      op->replaceAllUsesWith(new_op.getOperation()->getResults());
      op->erase();
      return new_op;
    }
    
    // Returns success if the function has at most one op of the template type and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

        }
        auto arg_type = cast<func::FuncOp>(op).getArgument(arg_index).getType();
        return VerifyBoundInputArgType(op, arg_type, symbol_op);
      }
      if (named_attr.getName() == kTfSavedModelIndexPathAttr) {
        return VerifyIndexPath(op, named_attr);
      }
    
      return op->emitError() << "unknown tf_saved_model dialect arg attribute '"
                             << named_attr.getName().getValue() << "'";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

          return states_[operand_states_[{op, index}]];
        }
    
        // Returns the state of the index-th result of the op.
        QuantState &GetResultQuantState(Operation *op, int index) {
          return states_[result_states_[{op, index}]];
        }
    
        // Returns the state of the index-th operand of the op.
        RequantizeState &GetOperandRequantizeState(Operation *op, int index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

              op->getLoc(), op.getOperand().getType(), adaptor.getOperand());
          rewriter.replaceOpWithNewOp<mlir::stablehlo::BitcastConvertOp>(
              op, op.getResult().getType(), output);
        } else {
          // Both input/output are f32. Convert to no-op.
          rewriter.replaceOp(op, adaptor.getOperand());
        }
        return success();
      }
    };
    }  // namespace
    
    #define GEN_PASS_DEF_CONVERTFUNCTOBFLOAT16PASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

            op.getLoc(), op.getType(), op.getOperands(),
            builder.getI64ArrayAttr(partition_dims), builder.getBoolAttr(false),
            op.get_XlaShardingAttr());
        op->replaceAllUsesWith(pi);
      } else {
        auto po = builder.create<TF::TPUPartitionedOutputV2Op>(
            op.getLoc(), op.getResultTypes(), op.getOperand(),
            builder.getI64ArrayAttr(partition_dims), op.get_XlaShardingAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top