Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for attrName (0.21 sec)

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

          }
        }
    
        auto check_i64_attr =
            [&](const std::string& attr_name) -> mlir::LogicalResult {
          if (!backend_config.contains(attr_name)) {
            return op.emitOpError()
                   << "Missing " << attr_name << " attribute in backend_config";
          }
          auto attr = backend_config.getAs<IntegerAttr>(attr_name);
          if (!attr || !attr.getType().isInteger(64)) {
            return op.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          auto sizes = mlir::DenseI32ArrayAttr::get(context, {1, 1, 1, 0});
          auto attr_name =
              StringAttr::get(context, mlir::OpTrait::AttrSizedOperandSegments<
                                           void>::getOperandSegmentSizeAttr());
          attrs.push_back(NamedAttribute(attr_name, sizes));
        }
    
        // Insert fused operation right before the BiasAdd operation to guarantee
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        } else if (n->IsIfNode()) {
          for (const string& attr_name :
               std::vector<string>{"then_branch", "else_branch"}) {
            NameAttrList branch_func;
            TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), attr_name, &branch_func));
            (*branch_func.mutable_attr())["_device_ordinal"] = device_ordinal_value;
            n->ClearAttr(attr_name);
            n->AddAttr(attr_name, branch_func);
          }
        } else if (n->IsWhileNode()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

            all_attrs.insert(attr.getName().strref());
          }
          for (const auto& operand : llvm::enumerate(getArgumentTypes())) {
            if (auto attr_name = getArgAttrOfType<StringAttr>(
                operand.index(), kAttrArgumentNameAttr)) {
              all_attrs.insert(attr_name.getValue());
            }
          }
          return all_attrs;
        }
      }];
    
      let hasVerifier = 1;
      let hasCustomAssemblyFormat = 1;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

                                 llvm::StringRef attr_name) {
      return attr_name.compare(kOutputShapesAttrName) == 0 &&
             attr_value.value_case() == AttrValue::kList;
    }
    
    bool IsResourceOutputShapesAttribute(const AttrValue& attr_value,
                                         llvm::StringRef attr_name) {
      if (attr_name == "_handle_dtypes" || attr_name == "_handle_shapes")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  6. tensorflow/c/kernels_experimental.cc

                                                    const char* attr_name,
                                                    int64_t* dims, size_t num_dims,
                                                    TF_Status* status) {
      ::tensorflow::TensorShape shape;
      auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx);
      ::tensorflow::Status s = cc_ctx->GetAttr(attr_name, &shape);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

              kEmbeddingPipelining, "_xla_outside_compilation", "device"};
          for (const auto& attr_name : attr_names) {
            if (!global_iter_id_op->hasAttr(attr_name)) continue;
            offset->setAttr(attr_name, global_iter_id_op->getAttr(attr_name));
            new_global_iter_id->setAttr(attr_name,
                                        global_iter_id_op->getAttr(attr_name));
          }
          // Make the next function to get inlined use a different offset.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/kernels/xla_ops.cc

      return *func;
    }
    
    std::vector<int> VectorAttr(OpKernelConstruction* ctx,
                                absl::string_view attr_name) {
      std::vector<int> vec;
      OP_REQUIRES_OK_RETURN(ctx, std::vector<int>(), ctx->GetAttr(attr_name, &vec));
      return vec;
    }
    
    bool MustCompileAttr(OpKernelConstruction* ctx) {
      bool must_compile;
      OP_REQUIRES_OK_RETURN(ctx, false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/mark_for_compilation_pass.cc

      return std::nullopt;
    }
    
    // Returns true iff the attribute `attr_name` is attached to either the node or
    // to it's callee.
    static bool GetNodeOrFuncAttr(Node* node, FunctionLibraryDefinition* flib_def,
                                  const char* attr_name) {
      bool out = false;
      bool attr_value;
      if (TryGetNodeAttr(node->attrs(), attr_name, &attr_value)) {
        out |= attr_value;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        # Convolution ouside the while op is quantized.
        self.assertTrue(
            self._contains_op(
                output_graphdef,
                op_name='XlaConvV2',
                attr_name='RhsT',
                attr_val=attr_value_pb2.AttrValue(type=types_pb2.DT_INT8),
            )
        )
        # TODO: b/294783597 - [Converter][TF-Quantizer] Support quantization for the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top