Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for getOperands (0.17 sec)

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

          DCHECK_EQ(def->getParentOp(), graph);
          try_update_current_candidate(def);
        }
    
        // Check island data operands.
        island.walk([&](Operation* op) {
          for (Value input : op->getOperands()) {
            Operation* def = input.getDefiningOp();
            if (!def || def->getParentOp() != graph) continue;
    
            try_update_current_candidate(def);
          }
        });
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

      // Replace replicate terminator with YieldOp.
      builder.setInsertionPoint(&terminator);
      builder.create<tf_executor::YieldOp>(terminator.getLoc(),
                                           terminator.getOperands());
      terminator.erase();
    
      builder.setInsertionPoint(island_op);
      IRMapping mapping;
      for (int i : llvm::seq<int>(0, num_replicas)) {
        // Create new island for replica.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          // inputs.
          SmallVector<Value, 4> inputs;
          inputs.reserve(candidate_op->getNumOperands());
          for (auto operand : candidate_op->getOperands()) {
            Type operand_type = operand.getType();
            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
              continue;
            }
    
            auto ele_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc

      mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back());
      if (!return_op) return failure();
      if (return_op.getNumOperands() != 1) return failure();
      if (return_op.getOperands().front() != body.getArgument(1)) return failure();
      return success();
    }
    
    bool NeedsReformatTypeAndPermutation(int batch_dim, int feature_dim,
                                         int spatial_dim_start,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

            ReadAttr(flex_buffer_map, &builder, custom_op.getCustomCode().str());
        OperationState op_state(custom_op.getLoc(),
                                custom_op.getCustomCode().str());
        op_state.addOperands(custom_op.getOperands());
        llvm::SmallVector<mlir::Type, 4> output_tys;
        for (int i = 0; i < custom_op.getNumResults(); i++) {
          output_tys.push_back(custom_op.getType(i));
        }
        op_state.addTypes(output_tys);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      return wrapped_op.getNumResults() == terminator->getNumOperands() &&
             std::equal(wrapped_op.getResults().begin(),
                        wrapped_op.getResults().end(),
                        terminator->getOperands().begin());
    }
    }  // end anonymous namespace
    
    TensorFlowDeviceDialect::TensorFlowDeviceDialect(MLIRContext* context)
        : Dialect(/*name=*/"tf_device", context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

          // inputs.
          SmallVector<Value, 4> inputs;
          inputs.reserve(quantizing_op->getNumOperands());
          for (const auto& operand : quantizing_op->getOperands()) {
            Type operand_type = operand.getType();
            if (operand_type.isa<NoneType>()) {
              inputs.push_back(operand);
              continue;
            }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        const std::string tf_op_full_name = llvm::Twine("tf.", tf_op_name).str();
    
        // Create the TF op
        OperationState op_state(op.getLoc(), tf_op_full_name);
        op_state.addOperands(op.getOperands());
        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

        return mlir::isa<mlir::TF::StringType>(type.getElementType());
      });
      return has_string;
    }
    
    bool HasStringOperand(Operation& op) {
      for (auto operand : op.getOperands()) {
        auto operand_type = getElementTypeOrSelf(operand);
        if (IsStringType(operand_type)) return true;
      }
      return false;
    }
    
    bool HasStringResult(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
      };
      const SmallVector<Value> operands(dot_general_op->getOperands());
      const SmallVector<Value> results(dot_general_op->getResults());
      Operation* lifted_op =
          LiftAsFunctionCall(builder_, dot_general_op->getLoc(),
                             FunctionCallOpType::TFXlaCallModuleOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top