Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 175 for Operands (0.13 sec)

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

                                    llvm::SmallVector<Attribute>& results) {
      // If any operand is nullptr returns true for a failure.
      // TODO(b/120678030): remove this constraint if we find operators can be
      // evaluated with some unknown operands.
      if (std::any_of(operands.begin(), operands.end(),
                      [](Attribute operand) { return !operand; })) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.td

      let description = [{
        cond: The boolean to control whether the first iteration should be
          executed.
        operands: The arguments to the first iteration.
        results: The results of the last iteration. The number and types of results
          excluding the last one are the same as the number and types of operands. The
          last element of results is an I1 value that is false.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

      llvm::SmallVector<mlir::Type, 4> operand_types;
      if (options.has_chain) operand_types.push_back(chain_type);
      if (parser.resolveOperands(in_chains, operand_types, loc, result.operands) ||
          parser.resolveOperands(operands, tensor_type, result.operands))
        return mlir::failure();
    
      if (options.has_chain) result.types.push_back(chain_type);
      result.types.append(num_results, tensor_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

        Interface for ops potentially have same operands and results scales.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns whether same operands and results scales are required.}],
          "bool", "RequiredSameOperandsAndResultsScale",
          (ins "bool":$sign, "int":$bit_width), [{}], [{return true;}]
        >,
        InterfaceMethod<
          [{Returns whether operands and results must have the same quantized axis.}],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.td

        Example:
          %device_tensor = gpurt.transfer_to_device %cpu_tensor
      }];
    
      let arguments = (ins TFTensorType);
      let results = (outs TFTensorType);
      let assemblyFormat = "operands attr-dict";
    }
    
    // TODO(b/260267885): We may add a device argument when we want to support
    // GPU MIG.
    def TransferFromDeviceOp: Gpu_Op<"transfer_from_device"> {
      let summary = "Transfer a tensor from device.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.td

      let arguments = (ins
        Variadic<TFTensorType>,
        StrAttr:$node_def,
        I32Attr:$op_key
      );
    
      let results = (outs Variadic<TFTensorType>);
    
      let assemblyFormat = "`(`operands`)` attr-dict `:` functional-type(operands, results)";
    }
    
    
    def ConvertDhtToFallbackTensorOp : FallbackSync_Op<"convert_dht_to_fallback_tensor",
        [CoreRT_TypedAttributeTrait]> {
      let summary = "convert a DHT to a fallback tensor";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 07 21:12:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

      }
    }
    
    // Visits all operands of an op where each operand is an output of an Operation
    // in the same tf_executor.graph.
    void VisitOpOperands(GraphOp graph, Operation* op,
                         llvm::SmallPtrSetImpl<Operation*>* reachable_ops,
                         llvm::SmallVectorImpl<Operation*>* ops_to_visit) {
      for (Value operand : op->getOperands())
        VisitOpOperand(graph, operand, reachable_ops, ops_to_visit);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h

    // TODO(fengliuai): supports a configurable accumulator bit width.
    template <int Bias, int... Operands>
    class AccumulatorUniformScale {
     public:
      template <typename ConcreteType>
      class Impl
          : public QuantizationSpecTraitBase<
                ConcreteType, AccumulatorUniformScale<Bias, Operands...>::Impl> {
       public:
        // Whether the index-th operand is a bias.
        static bool IsBias(int index) { return index == Bias; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/test_cluster_ops_by_policy.cc

          if (is_op_a && *result_constraint == ValueConstraint::kShape)
            operands.Insert(op->getOperand(0), ValueConstraint::kRank);
    
          // `test.OpB` converts value constraint to shape constraint.
          if (*result_constraint == ValueConstraint::kValue)
            operands.Insert(op->getOperand(0), ValueConstraint::kShape);
        }
    
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/resource_dataflow.cc

     public:
      using TensorflowDataflowAnalysis<
          ResourceConstructingOps>::TensorflowDataflowAnalysis;
      void visitOperation(Operation *op, ArrayRef<const StateT *> operands,
                          ArrayRef<StateT *> results) override {
        if (ForwardThroughTFOperation(op, operands, results)) return;
        setAllToEntryStates(results);
      }
      ~ResourceDataflowAnalysis() override = default;
    };
    
    class IsCompositeDataflowAnalysis
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top