Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for attr_ (0.06 sec)

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

      std::vector<Item> attrs(node_def.attr().begin(), node_def.attr().end());
      std::sort(attrs.begin(), attrs.end(),
                [](Item& p1, Item& p2) -> bool { return p1.first < p2.first; });
      for (const Item& pair : attrs) {
        const char* key = pair.first.c_str();
        const ::tensorflow::AttrValue& attr = pair.second;
        switch (attr.value_case()) {
          case ::tensorflow::AttrValue::kS:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // Return operand as a constant attribute.
      auto operand_as_constant_fn = [&](Value operand) {
        ValuePort vp(operand);
        Attribute attr = ComputeOutputComponent(vp);
        if (!attr && matchPattern(operand, m_Constant(&attr)))
          RecordValue(vp, attr);
        return attr;
      };
    
      // Return op result as a shape.
      auto op_result_as_shape_fn = [&](InferenceContext& context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func GetFileAttributes(name *uint16) (attrs uint32, err error) {
    	r0, _, e1 := syscall.Syscall(procGetFileAttributesW.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0)
    	attrs = uint32(r0)
    	if attrs == INVALID_FILE_ATTRIBUTES {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet.go

    			otherPods = append(otherPods, op)
    		}
    		attrs.OtherPods = otherPods
    	}
    	for _, podAdmitHandler := range kl.admitHandlers {
    		if result := podAdmitHandler.Admit(attrs); !result.Admit {
    			return false, result.Reason, result.Message
    		}
    	}
    
    	return true, "", ""
    }
    
    func (kl *Kubelet) canRunPod(pod *v1.Pod) lifecycle.PodAdmitResult {
    	attrs := &lifecycle.PodAdmitAttributes{Pod: pod}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    	podsToReject []*v1.Pod
    }
    
    // Admit rejects all pods in the podsToReject list with a matching UID.
    func (a *testPodAdmitHandler) Admit(attrs *lifecycle.PodAdmitAttributes) lifecycle.PodAdmitResult {
    	for _, podToReject := range a.podsToReject {
    		if podToReject.UID == attrs.Pod.UID {
    			return lifecycle.PodAdmitResult{Admit: false, Reason: "Rejected", Message: "Pod is rejected"}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      Returns:
        A mapping of `shared_name` -> `NodeDef` corresponding to a variable op.
      """
      variable_nodes = {}
    
      for var_node in filter(_is_variable, graph_def.node):
        shared_name = str(var_node.attr['shared_name'].s, encoding='utf-8')
        variable_nodes[shared_name] = var_node
    
      for func in graph_def.library.function:
        for var_node in filter(_is_variable, func.node_def):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

          %2 = "tf.Const"() {device = "baz", value = dense<[[42.0]]> : tensor<1x1xf32>} : () -> tensor<1x1xf32>
        ```
      }];
    }
    
    def TFDeviceAssignmentByFuncAttrPass : Pass<"tf-device-assignment-by-func-attr", "mlir::func::FuncOp"> {
      let summary = "Device assignment in TF dialect using the device specified in the function attribute.";
      let constructor = "TF::CreateTFDeviceAssignmentByFuncAttrPass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/data.go

    			continue
    		}
    
    		st := state.symType(s)
    
    		if st <= sym.STEXT || st >= sym.SXREF {
    			continue
    		}
    		state.data[st] = append(state.data[st], s)
    
    		// Similarly with checking the onlist attr.
    		if ldr.AttrOnList(s) {
    			log.Fatalf("symbol %s listed multiple times", ldr.SymName(s))
    		}
    		ldr.SetAttrOnList(s, true)
    	}
    
    	// Now that we have the data symbols, but before we start
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        this op outputs a copy of the input tensor where values from the `depth`
        dimension are moved in spatial blocks to the `height` and `width`
        dimensions. The attr `block_size` indicates the input block size and how
        the data is moved.
       }];
    
      let arguments = (ins
        TFL_TensorOf<[F32, I8, I32, I64, TFL_Quint8, UI8, QI8, QUI8]>:$input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top