Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 135 of 135 for getAttrOfType (0.31 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        const std::vector<std::unique_ptr<tflite::TensorT>>& tensors) {
      auto* context = func->getContext();
      static const char kEntryFunctionAttributes[] = "tf.entry_function";
    
      auto dict_attr =
          func->getAttrOfType<mlir::DictionaryAttr>(kEntryFunctionAttributes);
      if (!dict_attr) return;
    
      // Get Input and output tensor names from attribute.
      llvm::SmallVector<llvm::StringRef, 2> input_names =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      return success();
    }
    
    void BatchFunctionOp::eraseArguments(const BitVector& erase_indices) {
      const StringRef operand_segment_size_attr = getOperandSegmentSizeAttr();
      auto operandSegmentSizes = getOperation()->getAttrOfType<DenseI32ArrayAttr>(
          operand_segment_size_attr);
    
      // `operandSegmentSizes` attribute indicates the sizes of the two
      // variadic operands of `BatchFunctionOp`: `in_tensors` and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    // For `NcclAllReduceOp` ops the `device` attribute corresponds to the resource
    // instance.
    std::optional<std::string> NcclAllReduceOp::GetResourceInstanceStr() {
      auto device_attr = (*this)->getAttrOfType<StringAttr>("device");
      // Treat missing device attribute like unspecified (= empty string) attribute.
      // Note that different op instances with the same string (including empty
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    //===----------------------------------------------------------------------===//
    
    // Return true if the op has non-empty "minmax" attribute.
    static inline bool HasValidMinMaxAttribute(Operation* op) {
      auto minmax = op->getAttrOfType<ArrayAttr>("minmax");
      return minmax && minmax.getValue().size() == 2;
    }
    
    namespace {
    
    /// This pattern matches and remove a tfl.fake_quant if all the users of this op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

          // variadic arguments). Attributes like `batch_timeout_micros` will not
          // make it to the return array.
          auto segment_sizes = getOperation()->getAttrOfType<DenseI32ArrayAttr>(getOperandSegmentSizeAttr());
          return OperandRangeRange(getOperands(), segment_sizes).join();
        }
      }];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top