Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for addAttributes (0.12 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

        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);
        op_state.addAttributes(attr);
        auto stablehlo_op = builder.create(op_state);
        custom_op.replaceAllUsesWith(stablehlo_op);
        custom_op.erase();
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

                          << ". Please make sure the op library for "
                          << parsed_op_name << " is linked properly";
          return failure();
        }
        op_state.addAttributes(attrs);
    
        Operation* tf_op = rewriter.create(op_state);
        rewriter.replaceOp(op, tf_op->getResults());
    
        // Special type fixes for TF Resource Tensors that are casted to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

        private MyToken prevToken;
    
        private final List<MyToken> synonyms;
    
        private final CharTermAttribute termAttr = addAttribute(CharTermAttribute.class);
    
        private final OffsetAttribute offsetAttr = addAttribute(OffsetAttribute.class);
    
        private final PositionIncrementAttribute posIncAttr = addAttribute(PositionIncrementAttribute.class);
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        llvm::ArrayRef<std::pair<ValueRange, Type>> replicated_inputs,
        ValueRange packed_inputs, TypeRange replica_output_types) {
      DCHECK_GE(n, 2);
      state->addAttribute("n", builder->getI32IntegerAttr(n));
    
      if (devices.has_value()) state->addAttribute("devices", devices.value());
    
      Region* region = state->addRegion();
      region->push_back(new Block);
      Block& block = region->front();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
          $_state.addAttribute("device", device);
          $_state.addTypes(result_types);
          $_state.addRegion();
        }]>
      ];
    
      let hasCanonicalizer = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

            if (trimSpaceEnabled) {
                final Matcher matcher = SPACE_PATTERN.matcher(value);
                return matcher.replaceAll(" ").trim();
            }
            return value;
        }
    
        public void addAttribute(final String name, final Object value) {
            attributeMap.put(name, value);
        }
    
        public void addFeature(final String key, final String value) {
            featureMap.put(key, value);
        }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

                                result.attributes))
        return failure();
    
      Type i64 = parser.getBuilder().getIntegerType(64);
      if (parser.parseOptionalKeyword("parallel_iterations")) {
        result.addAttribute("parallel_iterations",
                            IntegerAttr::get(i64, kDefaultParallelIterations));
      } else {
        IntegerAttr parallel_iterations;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let results = (outs TFR_AttrType:$out);
    
      let hasFolder = 1;
    
      let builders = [
        OpBuilder<(ins "Attribute":$value),
        [{
          auto* ctx = value.getContext();
          $_state.addAttribute("value", value);
          $_state.addTypes(TFRAttrType::get(ctx));
        }]>
      ];
    
      let assemblyFormat = [{
        $value attr-dict `->` type($out)
      }];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

            Type output_type;
            TF_RETURN_IF_ERROR(AddRef(type, &output_type));
            type = output_type;
          }
        }
      }
      for (auto& it : attrs_) state_->addAttribute(it.first(), it.second);
      *state = state_.get();
      return absl::OkStatus();
    }
    
    const string& MlirAbstractOp::Name() const { return tf_op_type_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top