Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for is_variable (0.22 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

        )
        return model
    
      def _create_gather_model(self, input_type, use_variable) -> module.Module:
        class GatherModel(module.Module):
          """A simple model with a single gather."""
    
          def __init__(self, use_variable):
            """Initializes a GatherModel.
    
            Args:
              use_variable: If True, creates a variable for weight.
            """
            super().__init__()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/java/source/JavaElementSourceWithSmartPointerFactory.kt

            return JavaElementTypeSourceWithSmartPointer(smartTypePointerManager.createSmartTypePointer(type), this)
        }
    
        override fun <TYPE : PsiType> createVariableReturnTypeSource(psiVariableSource: JavaElementPsiSource<out PsiVariable>): JavaElementTypeSource<TYPE> {
            require(psiVariableSource is JavaElementPsiSourceWithSmartPointer)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 14 09:25:26 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      """
      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):
          variable_nodes[shared_name] = var_node
    
      return variable_nodes
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          )
    
          return in_placeholder
    
      def _create_gather_model(self, input_type, use_variable):
        class GatherModel(autotrackable.AutoTrackable):
          """A simple model with a single gather."""
    
          def __init__(self, use_variable):
            """Initializes a GatherModel.
    
            Args:
              use_variable: If True, creates a variable for weight.
            """
            super(GatherModel, self).__init__()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/testdata/generate_saved_models.py

    
    class ReferencesParent(module.Module):
    
      def __init__(self, parent):
        super(ReferencesParent, self).__init__()
        self.parent = parent
        self.my_variable = variables.Variable(3., name="MyVariable")
    
    
    # Creates a cyclic object graph.
    class CyclicModule(module.Module):
    
      def __init__(self):
        super(CyclicModule, self).__init__()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 18:06:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

          ('use_constant_with_int64_input', np.int64, False),
          ('use_variable_with_int64_input', np.int64, True),
      )
      @test_util.run_v2_only
      def test_gather_model(self, input_type, use_variable):
        model = self._create_gather_model(input_type, use_variable)
    
        save.save(model, self._input_saved_model_path)
    
        rng = np.random.default_rng(seed=42)
        static_input_shape = [6]
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

                    }
                }
            }
    
            if (descriptor is IrBasedVariableDescriptor && owner is IrVariable) {
                val name = owner.name
                val isMutated = false // TODO capture the usage somehow
    
                if (owner.origin == IrDeclarationOrigin.PROPERTY_DELEGATE) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 08:42:45 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		return true
    	}
    	return st.Sel.Name == "StringData"
    }
    
    // isVariable reports whether x is a variable, possibly with field references.
    func (p *Package) isVariable(x ast.Expr) bool {
    	switch x := x.(type) {
    	case *ast.Ident:
    		return true
    	case *ast.SelectorExpr:
    		return p.isVariable(x.X)
    	case *ast.IndexExpr:
    		return true
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top