Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for SetAttr (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

          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.
          ++offset_value;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      // use it in exports or if there are breaking changes
      module->setAttr("tfl.schema_version",
                      builder.getI32IntegerAttr(model->version));
      if (!model->description.empty()) {
        module->setAttr("tfl.description",
                        builder.getStringAttr(model->description));
      }
    
      if (!metadata_attrs.empty()) {
        module->setAttr("tfl.metadata", builder.getDictionaryAttr(metadata_attrs));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      Operation* parent_op = op->getParentOp();
      if (!parent_op) return false;
      return HasOutsideCompilationAncestor(parent_op);
    }
    
    Operation* ApplyXlaHostTransferAttr(Operation* op, OpBuilder& builder) {
      op->setAttr("_xla_has_host_transfer", builder.getBoolAttr(true));
      return op;
    }
    
    // Creates a tf._XlaSendFromHost or tf._XlaSendFromHostV2 op. If device ordinal
    // is present, a tf._XlaSendFromHostV2 op is created instead.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

            float_func.emitError("The attr_map attribute is malformed");
            return failure();
          }
          identifier_to_attr.insert(
              {llvm::StringRef(std::string(key_and_value_pair[1])),
               inner_op.getAttr(
                   llvm::StringRef(std::string(key_and_value_pair[1])))});
        }
      }
    
      // Set the attributes for ops with the attr_map attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      auto new_call = builder.create<CallOpType>(
          call_op.getLoc(),
          lifting_info.lifted_callee.getFunctionType().getResults(), new_operands,
          call_op->getAttrs());
      new_call->setAttr("f",
                        SymbolRefAttr::get(builder.getContext(),
                                           lifting_info.lifted_callee.getName()));
      AddLoadsStoresOutsideControlFlowOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    }
    
    // KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This
    // command limits the set of keys that can be linked to the keyring, regardless
    // of keyring permissions. The command requires the "setattr" permission.
    //
    // When called with an empty keyType the command locks the keyring, preventing
    // any further keys from being linked to the keyring.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    	a.Atr = attr
    	a.Cls = uint8(cls)
    	a.Value = value
    	a.Data = data
    }
    
    // Each DIE (except the root ones) has at least 1 attribute: its
    // name. getattr moves the desired one to the front so
    // frequently searched ones are found faster.
    func getattr(die *dwarf.DWDie, attr uint16) *dwarf.DWAttr {
    	if die.Attr.Atr == attr {
    		return die.Attr
    	}
    
    	a := die.Attr
    	b := a.Link
    	for b != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Get attr
      AttrValue read_attr;
      GetAttr("test_attr_name", &read_attr);
      ASSERT_EQ(attr.DebugString(), read_attr.DebugString());
    
      // Retrieve the same attr after save/restore
      Reincarnate();
      AttrValue read_attr2;
      GetAttr("test_attr_name", &read_attr2);
      ASSERT_EQ(attr.DebugString(), read_attr2.DebugString());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

            # skip a non-composition function
            if optional:
              return (None, None)
            else:
              raise KeyError('OpDef does not exist: ' + f_name)
          op_name = getattr(func_def, '_tfr_op_name')
        elif not func_def:
          op_name = f_name
        else:
          # TODO(fengliuai): create one utility method to match different APIs.
          compose_dec = []
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

                                  const char* attr_name) {
      bool out = false;
      bool attr_value;
      if (TryGetNodeAttr(node->attrs(), attr_name, &attr_value)) {
        out |= attr_value;
      }
    
      if (flib_def->GetAttr(*node, attr_name, &attr_value).ok()) {
        out |= attr_value;
      }
      return out;
    }
    
    Status MarkForCompilationPassImpl::BuildInitialClusterSet() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top